MeVisLabToolboxReference
GLPixelBuffer Class Reference

PixelBuffer resource (_pixel_buffer_object) It is internally the same as a GLVertexBuffer, but to be able to see the buffers usage this is implemented too. More...

#include <mlGLResources.h>

Inheritance diagram for GLPixelBuffer:
GLResource

List of all members.

Public Member Functions

 GLPixelBuffer ()
 ~GLPixelBuffer ()
GLuint getHandle () const
 get the pixel buffers's handle (you need to create() the buffer before you get a handle)
bool isValid () const
 check if the program is valid
void create ()
 create the pixel buffer (requires valid GL context)
void destroy ()
 destroy the resource
virtual void contextDestroyed ()
 forget the resource, the context was destroyed

Detailed Description

PixelBuffer resource (_pixel_buffer_object) It is internally the same as a GLVertexBuffer, but to be able to see the buffers usage this is implemented too.

http://www.opengl.org/registry/specs/ARB/pixel_buffer_object.txt

Definition at line 215 of file mlGLResources.h.


Constructor & Destructor Documentation

GLPixelBuffer::GLPixelBuffer ( ) [inline]

Definition at line 217 of file mlGLResources.h.

GLPixelBuffer::~GLPixelBuffer ( ) [inline]

Definition at line 218 of file mlGLResources.h.


Member Function Documentation

virtual void GLPixelBuffer::contextDestroyed ( ) [inline, virtual]

forget the resource, the context was destroyed

Implements GLResource.

Definition at line 233 of file mlGLResources.h.

void GLPixelBuffer::create ( )

create the pixel buffer (requires valid GL context)

void GLPixelBuffer::destroy ( )

destroy the resource

GLuint GLPixelBuffer::getHandle ( ) const [inline]

get the pixel buffers's handle (you need to create() the buffer before you get a handle)

Definition at line 221 of file mlGLResources.h.

bool GLPixelBuffer::isValid ( ) const [inline]

check if the program is valid

Definition at line 224 of file mlGLResources.h.


The documentation for this class was generated from the following file: