igor::iMeshBuffers Class Reference

#include <iMeshBuffers.h>

Public Member Functions

void setVertexArrayObject (uint32 vao)
 
IGOR_INLINE uint32 getVertexArrayObject () const
 
void setIndexBufferObject (uint32 ibo)
 
IGOR_INLINE uint32 getIndexBufferObject () const
 
void setVertexBufferObject (uint32 vbo)
 
IGOR_INLINE uint32 getVertexBufferObject () const
 
IGOR_INLINE uint32 getIndexesCount () const
 
void setIndexesCount (uint32 count)
 
IGOR_INLINE uint32 getVertexCount () const
 
void setVertexCount (uint32 count)
 
IGOR_INLINE uint32 getTrianglesCount () const
 
void setTrianglesCount (uint32 count)
 
bool isReady ()
 
void setReady (bool ready=true)
 
 ~iMeshBuffers ()
 

Static Public Attributes

static const uint32 INVALID_BUFFER_ID = 0
 

Detailed Description

set of opengl buffer IDs

TODO this should use iIndexBuffer and iVertexBuffer etc

Constructor & Destructor Documentation

◆ ~iMeshBuffers()

igor::iMeshBuffers::~iMeshBuffers ( )

dtor clean up

Member Function Documentation

◆ getIndexBufferObject()

uint32 iMeshBuffers::getIndexBufferObject ( ) const
Returns
index buffer object id

◆ getIndexesCount()

uint32 iMeshBuffers::getIndexesCount ( ) const
Returns
indexes count

◆ getTrianglesCount()

uint32 iMeshBuffers::getTrianglesCount ( ) const
Returns
triangles count

◆ getVertexArrayObject()

uint32 iMeshBuffers::getVertexArrayObject ( ) const
Returns
vertex array object id

◆ getVertexBufferObject()

uint32 iMeshBuffers::getVertexBufferObject ( ) const
Returns
vertex buffer object id

◆ getVertexCount()

uint32 iMeshBuffers::getVertexCount ( ) const
Returns
vertex count

◆ isReady()

bool igor::iMeshBuffers::isReady ( )
Returns
true if buffers are initialized

◆ setIndexBufferObject()

void igor::iMeshBuffers::setIndexBufferObject ( uint32  ibo)

sets index buffer object

Parameters
iboindex buffer object

◆ setIndexesCount()

void igor::iMeshBuffers::setIndexesCount ( uint32  count)

sets index count

Parameters
countindexes count

◆ setReady()

void igor::iMeshBuffers::setReady ( bool  ready = true)

sets buffers ready

◆ setTrianglesCount()

void igor::iMeshBuffers::setTrianglesCount ( uint32  count)

set triangles count

Parameters
countthe triangles count

◆ setVertexArrayObject()

void igor::iMeshBuffers::setVertexArrayObject ( uint32  vao)

sets vertex array object

Parameters
vaovertex array object

◆ setVertexBufferObject()

void igor::iMeshBuffers::setVertexBufferObject ( uint32  vbo)

sets vertex buffer object

Parameters
vbovertex buffer object

◆ setVertexCount()

void igor::iMeshBuffers::setVertexCount ( uint32  count)

sets vertex count

Parameters
countvertex count

Member Data Documentation

◆ INVALID_BUFFER_ID

const uint32 igor::iMeshBuffers::INVALID_BUFFER_ID = 0
static

definition of invalid buffer id


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