Couch
Public Member Functions | Public Attributes | List of all members
Framebuffer Class Reference

Public Member Functions

 Framebuffer (Id fbo)
 
 ~Framebuffer ()
 
void Enable ()
 
void Clear ()
 
void Bind ()
 

Public Attributes

Vector3 clearColor = Vector3(0.0f, 0.0f, 1.0f)
 
int clearFlags = GL_COLOR_BUFFER_BIT
 
bool depthTest = false
 

Constructor & Destructor Documentation

◆ Framebuffer()

Framebuffer::Framebuffer ( Id  fbo)

If the frame buffer has already been initialized, you can pass it in with this constructor

Parameters
fbothe frame buffer object handle.

◆ ~Framebuffer()

Framebuffer::~Framebuffer ( )

Apply the configuration for this framebuffer to the OpenGL state.

Member Function Documentation

◆ Bind()

void Framebuffer::Bind ( )

Bind the texture without applying configuration.

◆ Clear()

void Framebuffer::Clear ( )

Clear out this framebuffer.

Member Data Documentation

◆ clearColor

Vector3 Framebuffer::clearColor = Vector3(0.0f, 0.0f, 1.0f)

What clear color to draw to this frame buffer

◆ clearFlags

int Framebuffer::clearFlags = GL_COLOR_BUFFER_BIT

What bit(s) to clear in this buffer.

◆ depthTest

bool Framebuffer::depthTest = false

Should we enable depth testing?


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