GL++
0.1
OpenGL API C++ Wrapper
|
Buffer that can be attached to a frame_buffer as an output target. More...
#include <render_buffer.hpp>
Public Member Functions | |
render_buffer () | |
Construct an empty render buffer. | |
render_buffer (image_rendable_format internal_format, size_t width, size_t height, size_t samples=0) throw (gl_error) | |
Construct and define storage. | |
~render_buffer () | |
Destroy and release resources. | |
void | bind () |
Bind this object to active render buffer target. | |
void | define_storage (image_rendable_format internal_format, size_t width, size_t height, size_t samples=0) throw (gl_error) |
Establish data storage, format, dimensions and sample count of a renderbuffer object's image. | |
Public Member Functions inherited from glpp::named_object< GLuint > | |
name_type | object_name () const |
Return the name of object (handle) | |
Public Member Functions inherited from glpp::noncopyable | |
noncopyable (noncopyable &) | |
noncopyable & | operator= (noncopyable &) |
Additional Inherited Members | |
Public Types inherited from glpp::named_object< GLuint > | |
typedef GLuint | name_type |
Type of the name. | |
Protected Attributes inherited from glpp::named_object< GLuint > | |
GLuint | m_gl_name |
Stored object name. |
Buffer that can be attached to a frame_buffer as an output target.
glpp::render_buffer::render_buffer | ( | ) |
Construct an empty render buffer.
http://www.opengl.org/sdk/docs/man4/xhtml/glGenRenderbuffers.xml
glpp::render_buffer::render_buffer | ( | image_rendable_format | internal_format, |
size_t | width, | ||
size_t | height, | ||
size_t | samples = 0 |
||
) | throw (gl_error) |
Construct and define storage.
glpp::render_buffer::~render_buffer | ( | ) |
Destroy and release resources.
http://www.opengl.org/sdk/docs/man4/xhtml/glDeleteRenderbuffers.xml
void glpp::render_buffer::bind | ( | ) |
Bind this object to active render buffer target.
http://www.opengl.org/sdk/docs/man4/xhtml/glBindRenderbuffer.xml
void glpp::render_buffer::define_storage | ( | image_rendable_format | internal_format, |
size_t | width, | ||
size_t | height, | ||
size_t | samples = 0 |
||
) | throw (gl_error) |
Establish data storage, format, dimensions and sample count of a renderbuffer object's image.
http://www.opengl.org/sdk/docs/man4/xhtml/glRenderbufferStorageMultisample.xml