20 #ifndef EQUTIL_FRAMEBUFFEROBJECT_H 
   21 #define EQUTIL_FRAMEBUFFEROBJECT_H 
   23 #include <eq/util/texture.h>  
   24 #include <eq/util/types.h> 
   38                               const unsigned textureTarget = 0x84F5
 
   72     EQ_API Error 
init( 
const int32_t width, 
const int32_t height,
 
   73                        const unsigned colorFormat, 
const int32_t depthSize,
 
   74                        const int32_t stencilSize,
 
   75                        const int32_t samplesSize = 1 );
 
   88     EQ_API 
void bind( 
const uint32_t target = 0x8D40  );
 
   96     EQ_API 
void unbind( 
const uint32_t target = 0x8D40  );
 
  108     EQ_API Error 
resize( 
const int32_t width, 
const int32_t height );
 
  112         { LBASSERT( !_colors.empty( )); 
return _colors.front()->getWidth();}
 
  116         { LBASSERT( !_colors.empty()); 
return _colors.front()->getHeight();}
 
  136     const GLEWContext* 
const _glewContext;
 
  140     LB_TS_VAR( _thread );
 
  143     Error _checkStatus();
 
  148 #endif // EQUTIL_FRAMEBUFFEROBJECT_H 
const Textures & getColorTextures() const 
A C++ class to abstract OpenGL frame buffer objects. 
EQ_API ~FrameBufferObject()
Destruct the Frame Buffer Object. 
const GLEWContext * glewGetContext() const 
A wrapper around OpenGL textures. 
EQ_API void exit()
De-initialize the Frame Buffer Object. 
const Texture & getDepthTexture() const 
EQ_API Error resize(const int32_t width, const int32_t height)
Resize the FBO. 
EQ_API bool addColorTexture()
Add one color texture to the FBO. 
EQ_API FrameBufferObject(const GLEWContext *const glewContext, const unsigned textureTarget=0x84F5)
Construct a new Frame Buffer Object. 
int32_t getHeight() const 
EQ_API void unbind(const uint32_t target=0x8D40)
Unbind any Frame Buffer Object and use the default drawable for the current context. 
std::vector< Texture * > Textures
A vector of pointers to eq::util::Texture. 
EQ_API void bind(const uint32_t target=0x8D40)
Bind to the Frame Buffer Object. 
EQ_API Error init(const int32_t width, const int32_t height, const unsigned colorFormat, const int32_t depthSize, const int32_t stencilSize, const int32_t samplesSize=1)
Initialize the Frame Buffer Object.