|
GL++
0.1
OpenGL API C++ Wrapper
|
Object representing a framebuffer. More...
#include <frame_buffer.hpp>
Public Member Functions | |
| frame_buffer (frame_buffer_target target=frame_buffer_target::DRAW) | |
| Create an empty framebuffer. | |
| ~frame_buffer () | |
| Delete this framebuffer. | |
| void | bind () const |
| Bind as framebuffer on its defined target. | |
| frame_buffer_target | target () const |
| Get target of this frame buffer. | |
| frame_buffer_status | status () const |
| Get status of this framebuffer. | |
| bool | is_complete () const |
| Check if this framebuffer is complete. | |
| shared_frame_buffer_attachment_point_t | point (fbo_point point) |
| Access properties object of an attachment point. | |
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 &) |
Static Public Member Functions | |
| static const frame_buffer & | window_default () |
| Get current window default framebuffer. | |
Protected Types | |
|
typedef std::map< fbo_point, shared_frame_buffer_attachment_point_t > | points_container_type |
| Type of attachment points container. | |
Protected Member Functions | |
| frame_buffer (name_type name, frame_buffer_target target) | |
| Private constructor for binding on already cretead FBO. | |
Protected Attributes | |
| points_container_type | m_points |
| Container of all attachment points. | |
| frame_buffer_target | m_target |
| Target of this frame_buffer. | |
Protected Attributes inherited from glpp::named_object< GLuint > | |
| GLuint | m_gl_name |
| Stored object name. | |
Static Protected Attributes | |
| static frame_buffer * | ms_window_fbo = NULL |
| Static pointer to window default fbo. | |
Additional Inherited Members | |
Public Types inherited from glpp::named_object< GLuint > | |
| typedef GLuint | name_type |
| Type of the name. | |
Object representing a framebuffer.
Framebuffer Objects are a mechanism for rendering to images other than the default OpenGL Default Framebuffer
| glpp::frame_buffer::frame_buffer | ( | frame_buffer_target | target = frame_buffer_target::DRAW | ) |
Create an empty framebuffer.
http://www.opengl.org/sdk/docs/man4/xhtml/glGenFramebuffers.xml
| glpp::frame_buffer::~frame_buffer | ( | ) |
Delete this framebuffer.
http://www.opengl.org/sdk/docs/man4/xhtml/glDeleteFramebuffers.xml
| void glpp::frame_buffer::bind | ( | ) | const |
Bind as framebuffer on its defined target.
http://www.opengl.org/sdk/docs/man4/xhtml/glBindFramebuffer.xml
|
inline |
Check if this framebuffer is complete.
http://www.opengl.org/sdk/docs/man4/xhtml/glCheckFramebufferStatus.xml
| frame_buffer_status glpp::frame_buffer::status | ( | ) | const |
Get status of this framebuffer.
http://www.opengl.org/sdk/docs/man4/xhtml/glCheckFramebufferStatus.xml
|
static |
Get current window default framebuffer.
Every window initializes a default framebuffer.