|
Fireworks Engine
v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
|
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... | |
Class to generate Frame Buffers.
| fireworks::graphics::FrameBuffer::FrameBuffer | ( | int | Width, |
| int | Height | ||
| ) |
Generates frame buffers to render the current scene to the generated frame buffer.
| Width | The Width of the render texture that the frame will be mapped to. |
| Height | The Height of the render texture that the frame will be mapped to. |
| fireworks::graphics::FrameBuffer::~FrameBuffer | ( | ) |
| void fireworks::graphics::FrameBuffer::bind | ( | ) | const |
Bind the frame buffer.
|
inline |
Gets the Render Texture that the current frame was mapped to.
| void fireworks::graphics::FrameBuffer::unbind | ( | ) | const |
Unbind the frame buffer.