omegalib
13.1
|
A collection of vertex buffers forming a complete vertex stream. More...
#include <GpuBuffer.h>
Public Member Functions | |
virtual void | dispose () |
void | bind (GpuProgram *program) |
void | unbind () |
void | setBuffer (uint index, VertexBuffer *buffer) |
VertexBuffer * | getBuffer (uint index) |
void | clearBuffers () |
void | setAttributeBinding (uint buffer, uint attribute, const String &name) |
bool | hasIndices () |
Returns true if this array has indices attached. More... | |
VertexBuffer * | addBuffer (uint index, VertexBuffer::BufferType type, size_t size, void *data) |
Convenience menthod for creating a vertex buffer and attaching it to this array. More... | |
void | addAttribute (uint buffer, uint index, const String &name, VertexBuffer::AttributeType type, bool normalize, uint components, uint offset, uint stride) |
Convenience method for creating and binding a named attribute for a buffer. More... | |
Public Member Functions inherited from omega::GpuResource | |
GpuResource (GpuContext *ctx) | |
GpuContext * | getContext () |
Public Member Functions inherited from omicron::ReferenceType | |
ReferenceType () | |
virtual | ~ReferenceType () |
void | ref () |
void | unref () |
long | refCount () |
Static Public Attributes | |
static const int | MaxBuffers = 8 |
Protected Member Functions | |
VertexArray (GpuContext *context) | |
Friends | |
class | GpuContext |
Additional Inherited Members | |
Static Public Member Functions inherited from omicron::ReferenceType | |
static void | printObjCounts () |
Static Protected Attributes inherited from omicron::ReferenceType | |
static List< ReferenceType * > | mysObjList |
A collection of vertex buffers forming a complete vertex stream.
|
protected |
void omega::VertexArray::addAttribute | ( | uint | buffer, |
uint | index, | ||
const String & | name, | ||
VertexBuffer::AttributeType | type, | ||
bool | normalize, | ||
uint | components, | ||
uint | offset, | ||
uint | stride | ||
) |
Convenience method for creating and binding a named attribute for a buffer.
VertexBuffer* omega::VertexArray::addBuffer | ( | uint | index, |
VertexBuffer::BufferType | type, | ||
size_t | size, | ||
void * | data | ||
) |
Convenience menthod for creating a vertex buffer and attaching it to this array.
void omega::VertexArray::bind | ( | GpuProgram * | program | ) |
void omega::VertexArray::clearBuffers | ( | ) |
|
virtual |
Implements omega::GpuResource.
|
inline |
|
inline |
Returns true if this array has indices attached.
Only valid after a call to bind()
void omega::VertexArray::setBuffer | ( | uint | index, |
VertexBuffer * | buffer | ||
) |
void omega::VertexArray::unbind | ( | ) |
|
friend |
|
static |