CL_VertexArrayBuffer Class Reference
[clanDisplay Display]

Vertex Array Buffer. More...

#include <vertex_array_buffer.h>

List of all members.

Public Member Functions

Construction
 CL_VertexArrayBuffer ()
 Constructs a vertex array buffer.
 CL_VertexArrayBuffer (CL_GraphicContext &gc, int size, CL_BufferUsage usage=cl_usage_static_draw)
 Constructs a VertexArrayBuffer.
 CL_VertexArrayBuffer (CL_GraphicContext &gc, void *data, int size, CL_BufferUsage usage=cl_usage_static_draw)
 Constructs a VertexArrayBuffer.
virtual ~CL_VertexArrayBuffer ()
Attributes
void * get_data ()
 Retrieves a pointer to the mapped buffer.
CL_VertexArrayBufferProviderget_provider () const
 Get Provider.
Operations
bool operator== (const CL_VertexArrayBuffer &other) const
 Handle comparison operator.
void lock (CL_BufferAccess access)
 Maps vertex buffer into system memory.
void unlock ()
 Unmaps vertex buffer.
void upload_data (int offset, void *data, int size)
 Uploads data to vertex array buffer.


Detailed Description

Vertex Array Buffer.


Constructor & Destructor Documentation

CL_VertexArrayBuffer::CL_VertexArrayBuffer  ) 
 

Constructs a vertex array buffer.

CL_VertexArrayBuffer::CL_VertexArrayBuffer CL_GraphicContext gc,
int  size,
CL_BufferUsage  usage = cl_usage_static_draw
 

Constructs a VertexArrayBuffer.

Parameters:
gc = Graphic Context
size = value
usage = Buffer Usage

CL_VertexArrayBuffer::CL_VertexArrayBuffer CL_GraphicContext gc,
void *  data,
int  size,
CL_BufferUsage  usage = cl_usage_static_draw
 

Constructs a VertexArrayBuffer.

Parameters:
gc = Graphic Context
data = void
size = value
usage = Buffer Usage

virtual CL_VertexArrayBuffer::~CL_VertexArrayBuffer  )  [virtual]
 


Member Function Documentation

void* CL_VertexArrayBuffer::get_data  ) 
 

Retrieves a pointer to the mapped buffer.

CL_VertexArrayBufferProvider* CL_VertexArrayBuffer::get_provider  )  const
 

Get Provider.

Returns:
provider

void CL_VertexArrayBuffer::lock CL_BufferAccess  access  ) 
 

Maps vertex buffer into system memory.

bool CL_VertexArrayBuffer::operator== const CL_VertexArrayBuffer other  )  const
 

Handle comparison operator.

void CL_VertexArrayBuffer::unlock  ) 
 

Unmaps vertex buffer.

void CL_VertexArrayBuffer::upload_data int  offset,
void *  data,
int  size
 

Uploads data to vertex array buffer.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:42 2009 for ClanLib by  doxygen 1.4.6