Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
fireworks::graphics::FrameBuffer Class Reference

Class to generate Frame Buffers. More...

#include <framebuffer.h>

Public Member Functions

 FrameBuffer (int Width, int Height)
 Generates frame buffers to render the current scene to the generated frame buffer. More...
 
 ~FrameBuffer ()
 
void bind () const
 Bind the frame buffer. More...
 
void unbind () const
 Unbind the frame buffer. More...
 
GLuint getRenderTexture () const
 Gets the Render Texture that the current frame was mapped to. More...
 

Detailed Description

Class to generate Frame Buffers.

Constructor & Destructor Documentation

◆ FrameBuffer()

fireworks::graphics::FrameBuffer::FrameBuffer ( int  Width,
int  Height 
)

Generates frame buffers to render the current scene to the generated frame buffer.

Parameters
WidthThe Width of the render texture that the frame will be mapped to.
HeightThe Height of the render texture that the frame will be mapped to.

◆ ~FrameBuffer()

fireworks::graphics::FrameBuffer::~FrameBuffer ( )

Member Function Documentation

◆ bind()

void fireworks::graphics::FrameBuffer::bind ( ) const

Bind the frame buffer.

◆ getRenderTexture()

GLuint fireworks::graphics::FrameBuffer::getRenderTexture ( ) const
inline

Gets the Render Texture that the current frame was mapped to.

◆ unbind()

void fireworks::graphics::FrameBuffer::unbind ( ) const

Unbind the frame buffer.


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