omegalib
13.1
|
A buffer containing per-vertex data. More...
#include <GpuBuffer.h>
Classes | |
struct | VertexAttribute |
Public Types | |
enum | BufferType { VertexData, IndexData } |
enum | AttributeType { Float, Int, Byte, UnsignedByte, Double } |
Public Member Functions | |
virtual void | dispose () |
void | setType (BufferType type) |
BufferType | getType () |
bool | setData (size_t size, void *data) |
void | bind () |
void | unbind () |
void | setAttribute (uint index, AttributeType type, uint components=1, bool normalize=false, uint offset=0, uint stride=0) |
const VertexAttribute & | getAttribute (uint index) |
void | clearAttributes () |
void | bindVertexAttribute (uint index, uint location) |
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 | MaxAttributes = 8 |
Protected Member Functions | |
VertexBuffer (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 buffer containing per-vertex data.
|
protected |
void omega::VertexBuffer::bind | ( | ) |
void omega::VertexBuffer::clearAttributes | ( | ) |
|
virtual |
Implements omega::GpuResource.
|
inline |
|
inline |
void omega::VertexBuffer::setAttribute | ( | uint | index, |
AttributeType | type, | ||
uint | components = 1 , |
||
bool | normalize = false , |
||
uint | offset = 0 , |
||
uint | stride = 0 |
||
) |
bool omega::VertexBuffer::setData | ( | size_t | size, |
void * | data | ||
) |
void omega::VertexBuffer::setType | ( | BufferType | type | ) |
void omega::VertexBuffer::unbind | ( | ) |
|
friend |
|
static |