19 #ifndef EQUTIL_FRAMEBUFFEROBJECT_H
20 #define EQUTIL_FRAMEBUFFEROBJECT_H
22 #include <eq/util/texture.h>
23 #include <eq/util/types.h>
37 const unsigned textureTarget = 0x84F5
70 EQ_API
bool init(
const int32_t width,
const int32_t height,
71 const unsigned colorFormat,
const int32_t depthSize,
72 const int32_t stencilSize );
104 EQ_API
bool resize(
const int32_t width,
const int32_t height );
108 { LBASSERT( !_colors.empty( ));
return _colors.front()->getWidth();}
112 { LBASSERT( !_colors.empty());
return _colors.front()->getHeight();}
135 const GLEWContext*
const _glewContext;
145 LB_TS_VAR( _thread );
150 void _setError(
const int32_t error );
155 #endif // EQUTIL_FRAMEBUFFEROBJECT_H
~FrameBufferObject()
Destruct the Frame Buffer Object.
A C++ class to abstract OpenGL frame buffer objects.
void exit()
De-initialize the Frame Buffer Object.
void bind()
Bind to the Frame Buffer Object.
Error
Defines errors produced by Equalizer classes.
bool addColorTexture()
Add one color texture to the FBO.
const Texture & getDepthTexture() const
void unbind()
Unbind any Frame Buffer Object and use the default drawable for the current context.
bool init(const int32_t width, const int32_t height, const unsigned colorFormat, const int32_t depthSize, const int32_t stencilSize)
Initialize the Frame Buffer Object.
const eq::fabric::Error & getError()
int32_t getHeight() const
const GLEWContext * glewGetContext() const
bool resize(const int32_t width, const int32_t height)
Resize the FBO.
A wrapper around OpenGL textures.
std::vector< Texture * > Textures
A vector of pointers to eq::util::Texture.
FrameBufferObject(const GLEWContext *const glewContext, const unsigned textureTarget=0x84F5)
Construct a new Frame Buffer Object.
const Textures & getColorTextures() const