Rasterfarm-SDK
Loading...
Searching...
No Matches
VertexBuffer Class Referenceabstract

#include <vertexbuffer.h>

Inheritance diagram for VertexBuffer:
AttributeBuffer ElementBuffer

Public Types

typedef UnorderedMap< BufferType, size_t > TypeSizeMap
 

Public Member Functions

 VertexBuffer (ShaderBufferType bufferType, DrawUsageHint usage, size_t componentSize, BufferType type)
 
 VertexBuffer (const VertexBuffer &other)
 
virtual ~VertexBuffer ()
 
virtual void bind ()=0
 
void commit (void *pBuffer, const size_t arrayLength)
 
void modify (void *pBuffer, const size_t arrayLength, size_t offset=0)
 

Public Attributes

size_t arrayLength
 
VertexBufferHandle vbo
 
DrawUsageHint usage
 
ShaderBufferType bufferType
 
BufferType type
 
size_t componentSize
 
size_t componentPitch
 

Static Public Attributes

static TypeSizeMap typeSize
 

Member Typedef Documentation

◆ TypeSizeMap

typedef UnorderedMap< BufferType, size_t > VertexBuffer::TypeSizeMap

Constructor & Destructor Documentation

◆ VertexBuffer() [1/2]

VertexBuffer::VertexBuffer ( ShaderBufferType bufferType,
DrawUsageHint usage,
size_t componentSize,
BufferType type )

◆ VertexBuffer() [2/2]

VertexBuffer::VertexBuffer ( const VertexBuffer & other)

◆ ~VertexBuffer()

virtual VertexBuffer::~VertexBuffer ( )
virtual

Member Function Documentation

◆ bind()

virtual void VertexBuffer::bind ( )
pure virtual

Implemented in AttributeBuffer, and ElementBuffer.

◆ commit()

void VertexBuffer::commit ( void * pBuffer,
const size_t arrayLength )

◆ modify()

void VertexBuffer::modify ( void * pBuffer,
const size_t arrayLength,
size_t offset = 0 )

Member Data Documentation

◆ arrayLength

size_t VertexBuffer::arrayLength

◆ bufferType

ShaderBufferType VertexBuffer::bufferType

◆ componentPitch

size_t VertexBuffer::componentPitch

◆ componentSize

size_t VertexBuffer::componentSize

◆ type

BufferType VertexBuffer::type

◆ typeSize

TypeSizeMap VertexBuffer::typeSize
static

◆ usage

DrawUsageHint VertexBuffer::usage

◆ vbo

VertexBufferHandle VertexBuffer::vbo

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