MeVisLabToolboxReference
|
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>
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 |
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.
GLPixelBuffer::GLPixelBuffer | ( | ) | [inline] |
Definition at line 217 of file mlGLResources.h.
GLPixelBuffer::~GLPixelBuffer | ( | ) | [inline] |
Definition at line 218 of file mlGLResources.h.
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.