21 #ifndef HX3D_GRAPHICS_FRAMEBUFFER 22 #define HX3D_GRAPHICS_FRAMEBUFFER 24 #include "hx3d/graphics/gl.hpp" 25 #include "hx3d/graphics/color.hpp" 27 #include "hx3d/utils/ptr.hpp" 52 Framebuffer(
unsigned int width,
unsigned int height);
67 void resize(
unsigned int width,
unsigned int height);
107 static GLint _defaultID;
120 void createRenderBuffer(GLuint&
id, GLenum
format);
std::string format(const std::string fmt,...)
Format a string using printf notation.
Ptr< Texture > getColorBuffer()
Get the framebuffer color buffer.
Four [0..255] components defined color.
static void fetchDefaultFramebuffer()
Fetch the default framebuffer of the application.
void resize(unsigned int width, unsigned int height)
Resize the framebuffer.
Render-to-texture buffer.
Framebuffer()
Create a framebuffer at screen size.
static void useDefault()
Use the default framebuffer.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.
static void use(Framebuffer &buf)
Use the framebuffer as current framebuffer.
static void clear(Color color)
Clear the framebuffer.