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

Attachment point of a frame_buffer object. More...

#include <frame_buffer.hpp>

Inheritance diagram for glpp::frame_buffer_attachment_point:
glpp::noncopyable

Public Member Functions

void attach (shared_texture_t &ptex, int level)
 Attach a texture as a logical buffer to the frame_buffer object.
void attach (shared_texture_t &ptex, int level, tex2d_update_target tex_target, int layer)
 Attach a 2D texture as a logical buffer to the framebuffer object.
void attach (shared_render_buffer_t prbo)
 Attach a render_buffer as a logical buffer to the frame_buffer object.
void detach ()
 Detach any logical buffer from this attachment point.
const frame_bufferowner_frame_buffer () const
 Get frame_buffer that this attachment_point belongs to.
fbo_point point () const
 Get the actual point that this object manages.
void read_pixels (int x, int y, size_t width, size_t height, pixel_data_format format, fbo_pixel_type pix_type, void *dst) const
 Read pixels from this buffer.
- Public Member Functions inherited from glpp::noncopyable
 noncopyable (noncopyable &)
noncopyableoperator= (noncopyable &)

Protected Member Functions

 frame_buffer_attachment_point (const frame_buffer *pfbo, fbo_point point)
 Constructor is only called by frame_buffer owner.

Protected Attributes

const frame_buffermp_fbo
 Pointer to owner object of this point.
fbo_point m_point
 Actual point of this attachment.

Friends

class frame_buffer
 All attachment points belong and are managed by a frame_buffer object.

Detailed Description

Attachment point of a frame_buffer object.

This interface permits to query and manage an attachment point of a frame_buffer object

Remarks
non-copyable, non-inheritable, RAII

Member Function Documentation

void glpp::frame_buffer_attachment_point::attach ( shared_texture_t ptex,
int  level 
)
void glpp::frame_buffer_attachment_point::attach ( shared_texture_t ptex,
int  level,
tex2d_update_target  tex_target,
int  layer 
)

Attach a 2D texture as a logical buffer to the framebuffer object.

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

void glpp::frame_buffer_attachment_point::attach ( shared_render_buffer_t  prbo)
void glpp::frame_buffer_attachment_point::detach ( )

Detach any logical buffer from this attachment point.

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

void glpp::frame_buffer_attachment_point::read_pixels ( int  x,
int  y,
size_t  width,
size_t  height,
pixel_data_format  format,
fbo_pixel_type  pix_type,
void *  dst 
) const

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