CG-Project2
Loading...
Searching...
No Matches
ogl::FrameBuffer Class Reference
Inheritance diagram for ogl::FrameBuffer:
Collaboration diagram for ogl::FrameBuffer:

Public Member Functions

unsigned int getRenderBufferId () const
void setRenderBuffer (const RBConfig &config)
void setRenderBuffer (const RenderBuffer &buffer)
unsigned int getColorTexture () const
void setColorTexture (const Texture &texture)
bool createFrameBuffer ()
void rescaleFrameBuffer (const unsigned int &width, const unsigned int &height)
float getHeight () const
virtual void onAttach () override
virtual void onDetach () override
virtual void bind () const override
virtual void unbind () const override
 FrameBuffer (const FBConfig &config)
Public Member Functions inherited from ogl::Buffer
unsigned int getId () const

Additional Inherited Members

Protected Attributes inherited from ogl::Buffer
unsigned int m_id = 0

Member Function Documentation

◆ bind()

void ogl::FrameBuffer::bind ( ) const
overridevirtual

Reimplemented from ogl::Buffer.

◆ onAttach()

void ogl::FrameBuffer::onAttach ( )
overridevirtual

Reimplemented from ogl::Buffer.

◆ onDetach()

void ogl::FrameBuffer::onDetach ( )
overridevirtual

Reimplemented from ogl::Buffer.

◆ unbind()

void ogl::FrameBuffer::unbind ( ) const
overridevirtual

Reimplemented from ogl::Buffer.


The documentation for this class was generated from the following files:
  • Opengl-Core/include/Buffer/FrameBuffer.hpp
  • Opengl-Core/src/Buffer/FrameBuffer.cpp