![]() |
Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
|
An off screen frame buffer that can be bound and rendered to. More...
#include <frameBuffer.h>
Public Member Functions | |
FrameBuffer () | |
Default constructor to initialize an opengl frame buffer. | |
~FrameBuffer () | |
Default destructor to clean up frame buffer. | |
void | setSize (rune::Vec2 newSize) |
Set the size of the frame buffer in pixels. More... | |
rune::Vec2 | getSize (void) |
Get the size of the frame buffer in pixels. More... | |
void | invalidate () |
Tell the frame buffer it is invalid and should be recreated. | |
void | bind () |
Bind the frame buffer for drawing. | |
void | unbind () |
Unbind the frame buffer for drawing. | |
unsigned int | getColorBuffer () |
Get a handle to the color buffer for drawing. More... | |
An off screen frame buffer that can be bound and rendered to.
unsigned int rune::FrameBuffer::getColorBuffer | ( | ) |
Get a handle to the color buffer for drawing.
rune::Vec2 rune::FrameBuffer::getSize | ( | void | ) |
Get the size of the frame buffer in pixels.
void rune::FrameBuffer::setSize | ( | rune::Vec2 | newSize | ) |
Set the size of the frame buffer in pixels.
newSize | The new size that should be used to create the frame buffer. |