Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
OutputWowDisplay.hh
1 #ifndef OUTPUT_WOW_DISPLAY_HH_
2 #define OUTPUT_WOW_DISPLAY_HH_
3 
4 #include <bias_config.h>
5 
6 #ifndef BIAS_HAVE_OPENGL
7 # error You need BIAS with USE_OpenGL Please recompile BIAS.
8 #endif // BUILD_GLviewer
9 
10 #include <Gui/biasgl.h>
11 #include <Base/Debug/Debug.hh>
12 
13 #include <OpenGLFramework/Base/glfRenderTarget.hh>
14 
15 #include <GLviewer/OutputAttachments/GLProjectionOutputAttachment.hh>
16 namespace BIAS {
17 
18  /**
19  * @brief exemplary output attachment to create 2D+Depth output for Wow Displays
20  * @ingroup g_glviewer
21  * @author fkellner
22  */
23  class BIASGLviewer_EXPORT OutputWowDisplay : public GLProjectionOutputAttachment {
24  public:
25  // standards
26  OutputWowDisplay(BIAS::glfRenderTarget *out, int factor=0x40, int offset=0x80);
27 
28  virtual ~OutputWowDisplay();
29  protected:
30  /// creates strings with shader code and calls InitShader(vertex, fragment) from superclass
31  int InitShader_();
32  /// standard draw from superclass does not suffice to set the header information for wow display,
33  /// so we need to implement this here
34  int Draw_();
35 
36  private:
37  int wowFactor_, wowOffset_;
38  };
39 
40 }
41 #endif
42 
exemplary output attachment to create 2D+Depth output for Wow Displays
Class for extra rendering pass in GLProjection (for now only used in glutGLviewer) ...
Interface for render targets.