GL++  0.1
OpenGL API C++ Wrapper
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
glpp::render_buffer Struct Reference

Buffer that can be attached to a frame_buffer as an output target. More...

#include <render_buffer.hpp>

Inheritance diagram for glpp::render_buffer:
glpp::named_object< GLuint > glpp::noncopyable

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 &)
noncopyableoperator= (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.

Detailed Description

Buffer that can be attached to a frame_buffer as an output target.

Remarks
non-copyable, non-inheritable, RAII

Constructor & Destructor Documentation

glpp::render_buffer::render_buffer ( )
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.

See Also
render_buffer(), define_storage()
glpp::render_buffer::~render_buffer ( )

Member Function Documentation

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


The documentation for this struct was generated from the following files: