SCM Library
Spherical Cube Map rendering library
|
An scm_frame abstracts the OpenGL framebuffer object. More...
#include <scm-frame.hpp>
Public Member Functions | |
scm_frame (GLsizei, GLsizei) | |
Create a new OpenGL framebuffer object with color and depth textures. More... | |
~scm_frame () | |
Delete the framebuffer object and its textures. | |
void | bind_frame () const |
Bind the framebuffer object as render target. | |
void | bind_color () const |
Bind the color texture. | |
void | bind_depth () const |
Bind the depth texture. | |
An scm_frame abstracts the OpenGL framebuffer object.
scm_frame::scm_frame | ( | GLsizei | w, |
GLsizei | h | ||
) |
Create a new OpenGL framebuffer object with color and depth textures.
w | width in pixels |
h | height in pixels |