All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GLVertexBuffer Class Reference

Concrete vertex buffer class for GLSL subvision and OpenGL drawing. More...

#include <glVertexBuffer.h>

Public Member Functions

 ~GLVertexBuffer ()
 Destructor. More...
 
void UpdateData (const float *src, int startVertex, int numVertices)
 
int GetNumElements () const
 Returns how many elements defined in this vertex buffer. More...
 
int GetNumVertices () const
 Returns how many vertices allocated in this vertex buffer. More...
 
GLuint BindVBO ()
 Returns the GL buffer object. More...
 

Static Public Member Functions

static GLVertexBufferCreate (int numElements, int numVertices)
 Creator. Returns NULL if error. More...
 

Protected Member Functions

 GLVertexBuffer (int numElements, int numVertices)
 Constructor. More...
 
bool allocate ()
 

Detailed Description

Concrete vertex buffer class for GLSL subvision and OpenGL drawing.

GLVertexBuffer implements GLVertexBufferInterface. An instance of this buffer class can be passed to OsdGLComputeController and OsdGLDrawController

Definition at line 44 of file glVertexBuffer.h.

Constructor & Destructor Documentation

Destructor.

GLVertexBuffer ( int  numElements,
int  numVertices 
)
protected

Constructor.

Member Function Documentation

bool allocate ( )
protected

Allocates VBO for this buffer. Returns true if success.

GLuint BindVBO ( )

Returns the GL buffer object.

static GLVertexBuffer* Create ( int  numElements,
int  numVertices 
)
static

Creator. Returns NULL if error.

int GetNumElements ( ) const

Returns how many elements defined in this vertex buffer.

int GetNumVertices ( ) const

Returns how many vertices allocated in this vertex buffer.

void UpdateData ( const float *  src,
int  startVertex,
int  numVertices 
)

This method is meant to be used in client code in order to provide coarse vertices data to Osd.


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