Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
FrameBuffer Class Reference
Inheritance diagram for FrameBuffer:
[legend]
Collaboration diagram for FrameBuffer:
[legend]

Public Member Functions

 FrameBuffer (int colorAttachments=1, bool depthAttachment=true)
 
void bind ()
 
void unbind ()
 
void clear ()
 
glow::FrameBufferObject & get ()
 
void setDrawBuffers (const std::vector< int > &buffers)
 
void setResolution (const glm::ivec2 &resolution)
 
const glm::ivec2 & resolution ()
 
glow::Texture * texture (int i)
 

Protected Member Functions

void setupFBO ()
 
virtual void beforeContextDestroy () override
 
virtual void afterContextRebuild () override
 

Protected Attributes

int m_colorAttachmentCount
 
bool m_useDepthAttachment
 
glm::ivec2 m_resolution
 
glow::ref_ptr
< glow::FrameBufferObject > 
m_fbo
 

The documentation for this class was generated from the following files: