GL++
0.1
OpenGL API C++ Wrapper
|
Attachment point of a frame_buffer object. More...
#include <frame_buffer.hpp>
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_buffer & | owner_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 &) | |
noncopyable & | operator= (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_buffer * | mp_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. |
Attachment point of a frame_buffer object.
This interface permits to query and manage an attachment point of a frame_buffer object
void glpp::frame_buffer_attachment_point::attach | ( | shared_texture_t & | ptex, |
int | level | ||
) |
Attach a texture as a logical buffer to the frame_buffer object.
http://www.opengl.org/sdk/docs/man4/xhtml/glFramebufferTexture.xml
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 | ) |
Attach a render_buffer as a logical buffer to the frame_buffer object.
http://www.opengl.org/sdk/docs/man4/xhtml/glFramebufferRenderbuffer.xml
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 |
Read pixels from this buffer.
http://www.opengl.org/sdk/docs/man4/xhtml/glReadPixels.xml http://www.opengl.org/sdk/docs/man4/xhtml/glReadBuffer.xml