hx3d
1
2D/3D Simple Game Framework
|
Render-to-texture buffer. More...
#include <framebuffer.hpp>
Public Member Functions | |
Framebuffer () | |
Create a framebuffer at screen size. | |
Framebuffer (unsigned int width, unsigned int height) | |
Create a framebuffer. More... | |
Ptr< Texture > | getColorBuffer () |
Get the framebuffer color buffer. More... | |
void | resize (unsigned int width, unsigned int height) |
Resize the framebuffer. More... | |
Static Public Member Functions | |
static void | fetchDefaultFramebuffer () |
Fetch the default framebuffer of the application. | |
static void | use (Framebuffer &buf) |
Use the framebuffer as current framebuffer. More... | |
static void | useDefault () |
Use the default framebuffer. | |
static void | clear (Color color) |
Clear the framebuffer. | |
Render-to-texture buffer.
Definition at line 37 of file framebuffer.hpp.
hx3d::graphics::Framebuffer::Framebuffer | ( | unsigned int | width, |
unsigned int | height | ||
) |
Create a framebuffer.
width | Width |
height | Height |
Definition at line 40 of file framebuffer.cpp.
Get the framebuffer color buffer.
Definition at line 112 of file framebuffer.cpp.
void hx3d::graphics::Framebuffer::resize | ( | unsigned int | width, |
unsigned int | height | ||
) |
Resize the framebuffer.
width | Width |
height | Height |
Definition at line 56 of file framebuffer.cpp.
|
static |
Use the framebuffer as current framebuffer.
buf | Framebuffer |
Definition at line 95 of file framebuffer.cpp.