Rasterfarm-SDK
Loading...
Searching...
No Matches
AttributeBuffer Class Reference

#include <attributebuffer.h>

Inheritance diagram for AttributeBuffer:
VertexBuffer

Public Types

typedef UnorderedMap< Handle, VertexBufferHandleLocationVBOMap
 
- Public Types inherited from VertexBuffer
typedef UnorderedMap< BufferType, size_t > TypeSizeMap
 

Public Member Functions

 AttributeBuffer (Handle location, void *pBuffer, size_t arrayLength, size_t componentSize, BufferType type, DrawUsageHint usage=STATIC)
 
virtual ~AttributeBuffer ()
 
virtual void bind ()
 
void bind (Program *pProgram)
 
Handle getLocation ()
 
- Public Member Functions inherited from VertexBuffer
 VertexBuffer (ShaderBufferType bufferType, DrawUsageHint usage, size_t componentSize, BufferType type)
 
 VertexBuffer (const VertexBuffer &other)
 
virtual ~VertexBuffer ()
 
void commit (void *pBuffer, const size_t arrayLength)
 
void modify (void *pBuffer, const size_t arrayLength, size_t offset=0)
 

Additional Inherited Members

- Public Attributes inherited from VertexBuffer
size_t arrayLength
 
VertexBufferHandle vbo
 
DrawUsageHint usage
 
ShaderBufferType bufferType
 
BufferType type
 
size_t componentSize
 
size_t componentPitch
 
- Static Public Attributes inherited from VertexBuffer
static TypeSizeMap typeSize
 

Member Typedef Documentation

◆ LocationVBOMap

typedef UnorderedMap< Handle, VertexBufferHandle > AttributeBuffer::LocationVBOMap

Constructor & Destructor Documentation

◆ AttributeBuffer()

AttributeBuffer::AttributeBuffer ( Handle location,
void * pBuffer,
size_t arrayLength,
size_t componentSize,
BufferType type,
DrawUsageHint usage = STATIC )

◆ ~AttributeBuffer()

virtual AttributeBuffer::~AttributeBuffer ( )
virtual

Member Function Documentation

◆ bind() [1/2]

virtual void AttributeBuffer::bind ( )
virtual

Implements VertexBuffer.

◆ bind() [2/2]

void AttributeBuffer::bind ( Program * pProgram)

◆ getLocation()

Handle AttributeBuffer::getLocation ( )
inline

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