MeVisLabToolboxReference
GLVertexBuffer Class Reference

VertexBuffer resource (vertex_buffer_object extension) http://www.opengl.org/registry/specs/ARB/vertex_buffer_object.txt. More...

#include <mlGLResources.h>

Inheritance diagram for GLVertexBuffer:
GLResource

List of all members.

Public Member Functions

 GLVertexBuffer ()
 ~GLVertexBuffer ()
GLuint getHandle () const
 get the vertex buffer'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 vertex buffer (requires valid GL context)
void destroy ()
 destroy the resource
virtual void contextDestroyed ()
 forget the resource, the context was destroyed

Detailed Description

VertexBuffer resource (vertex_buffer_object extension) http://www.opengl.org/registry/specs/ARB/vertex_buffer_object.txt.

Definition at line 186 of file mlGLResources.h.


Constructor & Destructor Documentation

GLVertexBuffer::GLVertexBuffer ( ) [inline]

Definition at line 188 of file mlGLResources.h.

GLVertexBuffer::~GLVertexBuffer ( ) [inline]

Definition at line 189 of file mlGLResources.h.


Member Function Documentation

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

forget the resource, the context was destroyed

Implements GLResource.

Definition at line 204 of file mlGLResources.h.

void GLVertexBuffer::create ( )

create the vertex buffer (requires valid GL context)

void GLVertexBuffer::destroy ( )

destroy the resource

GLuint GLVertexBuffer::getHandle ( ) const [inline]

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

Definition at line 192 of file mlGLResources.h.

bool GLVertexBuffer::isValid ( ) const [inline]

check if the program is valid

Definition at line 195 of file mlGLResources.h.


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