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

Object representing a framebuffer. More...

#include <frame_buffer.hpp>

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

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

Static Public Member Functions

static const frame_bufferwindow_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_bufferms_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.

Detailed Description

Object representing a framebuffer.

Framebuffer Objects are a mechanism for rendering to images other than the default OpenGL Default Framebuffer

Remarks
non-copyable, non-inheritable, RAII

Constructor & Destructor Documentation

glpp::frame_buffer::frame_buffer ( frame_buffer_target  target = frame_buffer_target::DRAW)
glpp::frame_buffer::~frame_buffer ( )

Member Function Documentation

void glpp::frame_buffer::bind ( ) const

Bind as framebuffer on its defined target.

http://www.opengl.org/sdk/docs/man4/xhtml/glBindFramebuffer.xml

bool glpp::frame_buffer::is_complete ( ) const
inline
frame_buffer_status glpp::frame_buffer::status ( ) const
const frame_buffer & glpp::frame_buffer::window_default ( )
static

Get current window default framebuffer.

Every window initializes a default framebuffer.


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