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

#include <elementbuffer.h>

Inheritance diagram for ElementBuffer:
VertexBuffer

Public Member Functions

 ElementBuffer (uint *pBuffer, size_t arrayLength, DrawUsageHint usage=STATIC)
 
virtual ~ElementBuffer ()
 
virtual void bind ()
 
void drawElements (uint cnt, DrawPrimitive drawPrimitive)
 
- 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 Types inherited from VertexBuffer
typedef UnorderedMap< BufferType, size_t > TypeSizeMap
 
- 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
 

Constructor & Destructor Documentation

◆ ElementBuffer()

ElementBuffer::ElementBuffer ( uint * pBuffer,
size_t arrayLength,
DrawUsageHint usage = STATIC )

◆ ~ElementBuffer()

virtual ElementBuffer::~ElementBuffer ( )
virtual

Member Function Documentation

◆ bind()

virtual void ElementBuffer::bind ( )
virtual

Implements VertexBuffer.

◆ drawElements()

void ElementBuffer::drawElements ( uint cnt,
DrawPrimitive drawPrimitive )

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