public

Inheritance Graph

graph BT
	MeshIndexData
	click MeshIndexData "classRendering_1_1MeshIndexData"

Description

IndexData-Class . Part of the Mesh implementation containing all index specific data of a mesh.

Public Functions

   
   
  MeshIndexData()
   
  MeshIndexData(const MeshIndexData & other)
Copy all data fromother.
   
  MeshIndexData( MeshIndexData && void)
   
  ~MeshIndexData()
   
MeshIndexData & operator=(const MeshIndexData & void)
   
MeshIndexData & operator=( MeshIndexData && void)
   
void swap( MeshIndexData & other)
   
uint32_t getIndexCount() const
   
bool empty() const
   
void allocate(uint32_t count)
   
void releaseLocalData()
   
const uint32_t * data() const
   
uint32_t * data()
   
std::size_t dataSize() const
   
void markAsChanged()
   
bool hasChanged() const
   
bool hasLocalData() const
   
const uint32_t & operator[](uint32_t index) const
   
uint32_t & operator[](uint32_t index)
   
uint32_t getMinIndex() const
   
uint32_t getMaxIndex() const
   
void updateIndexRange()
   
bool isUploaded() const
   
bool upload()
Call* upload() *with default usage hint.
   
bool upload(uint32_t usageHint)
   
bool download()
   
void downloadTo(std::vector< uint32_t > & destination) const
   
void removeGlBuffer()
   
void drawElements(bool useVBO, uint32_t drawMode, uint32_t startIndex, uint32_t numberOfIndices)
   
void _swapBufferObject( BufferObject & other)

Documentation

function
Rendering::MeshIndexData::MeshIndexData

public
   
   
MeshIndexData( )

Defined in Rendering/Mesh/MeshIndexData.h:27


function
Rendering::MeshIndexData::MeshIndexData

public
     
     
MeshIndexData( const MeshIndexData & other )

Copy all data fromother.

Defined in Rendering/Mesh/MeshIndexData.h:29


function
Rendering::MeshIndexData::MeshIndexData

public
     
     
MeshIndexData( MeshIndexData && void )

Defined in Rendering/Mesh/MeshIndexData.h:30


function
Rendering::MeshIndexData::~MeshIndexData

public
   
   
~MeshIndexData( )

Defined in Rendering/Mesh/MeshIndexData.h:32


function
Rendering::MeshIndexData::operator=

public
     
     
MeshIndexData & operator=( const MeshIndexData & void )

Defined in Rendering/Mesh/MeshIndexData.h:34


function
Rendering::MeshIndexData::operator=

public
     
     
MeshIndexData & operator=( MeshIndexData && void )

Defined in Rendering/Mesh/MeshIndexData.h:35


function
Rendering::MeshIndexData::swap

public
     
     
void swap( MeshIndexData & other )

Defined in Rendering/Mesh/MeshIndexData.h:37


function
Rendering::MeshIndexData::getIndexCount

public const inline
   
   
uint32_t getIndexCount( ) const

Defined in Rendering/Mesh/MeshIndexData.h:38


function
Rendering::MeshIndexData::empty

public const inline
   
   
bool empty( ) const

Defined in Rendering/Mesh/MeshIndexData.h:39


function
Rendering::MeshIndexData::allocate

public
     
     
void allocate( uint32_t count )

Defined in Rendering/Mesh/MeshIndexData.h:42


function
Rendering::MeshIndexData::releaseLocalData

public
   
   
void releaseLocalData( )

Defined in Rendering/Mesh/MeshIndexData.h:43


function
Rendering::MeshIndexData::data

public const inline
   
   
const uint32_t * data( ) const

Defined in Rendering/Mesh/MeshIndexData.h:44


function
Rendering::MeshIndexData::data

public inline
   
   
uint32_t * data( )

Defined in Rendering/Mesh/MeshIndexData.h:45


function
Rendering::MeshIndexData::dataSize

public const inline
   
   
std::size_t dataSize( ) const

Defined in Rendering/Mesh/MeshIndexData.h:46


function
Rendering::MeshIndexData::markAsChanged

public inline
   
   
void markAsChanged( )

Defined in Rendering/Mesh/MeshIndexData.h:47


function
Rendering::MeshIndexData::hasChanged

public const inline
   
   
bool hasChanged( ) const

Defined in Rendering/Mesh/MeshIndexData.h:48


function
Rendering::MeshIndexData::hasLocalData

public const inline
   
   
bool hasLocalData( ) const

Defined in Rendering/Mesh/MeshIndexData.h:49


function
Rendering::MeshIndexData::operator[]

public const inline
     
     
const uint32_t & operator[]( uint32_t index ) const

Defined in Rendering/Mesh/MeshIndexData.h:51


function
Rendering::MeshIndexData::operator[]

public inline
     
     
uint32_t & operator[]( uint32_t index )

Defined in Rendering/Mesh/MeshIndexData.h:52


function
Rendering::MeshIndexData::getMinIndex

public const inline
   
   
uint32_t getMinIndex( ) const

Defined in Rendering/Mesh/MeshIndexData.h:55


function
Rendering::MeshIndexData::getMaxIndex

public const inline
   
   
uint32_t getMaxIndex( ) const

Defined in Rendering/Mesh/MeshIndexData.h:56


function
Rendering::MeshIndexData::updateIndexRange

public
   
   
void updateIndexRange( )

Recalculates the index range of the mesh.

Note: Should be called whenever the vertices are changed.

Defined in Rendering/Mesh/MeshIndexData.h:59


function
Rendering::MeshIndexData::isUploaded

public const inline
   
   
bool isUploaded( ) const

Defined in Rendering/Mesh/MeshIndexData.h:62


function
Rendering::MeshIndexData::upload

public
   
   
bool upload( )

Call* upload() *with default usage hint.

Defined in Rendering/Mesh/MeshIndexData.h:65


function
Rendering::MeshIndexData::upload

public
     
     
bool upload( uint32_t usageHint )

(internal) Create or update a VBO if hasChanged is set to true. hasChanged is set to false.

Defined in Rendering/Mesh/MeshIndexData.h:68


function
Rendering::MeshIndexData::download

public
   
   
bool download( )

(internal)

Defined in Rendering/Mesh/MeshIndexData.h:70


function
Rendering::MeshIndexData::downloadTo

public const
     
     
void downloadTo( std::vector< uint32_t > & destination ) const

Defined in Rendering/Mesh/MeshIndexData.h:71


function
Rendering::MeshIndexData::removeGlBuffer

public
   
   
void removeGlBuffer( )

(internal)

Defined in Rendering/Mesh/MeshIndexData.h:73


function
Rendering::MeshIndexData::drawElements

public
     
     
void drawElements( bool useVBO,
  uint32_t drawMode,
  uint32_t startIndex,
  uint32_t numberOfIndices
)    

(internal) Draw the vertices referenced by the indices using the VBO or a VertexArray. Used by MeshDataStrategy::doDisplay(..)

Defined in Rendering/Mesh/MeshIndexData.h:76


function
Rendering::MeshIndexData::_swapBufferObject

public inline
     
     
void _swapBufferObject( BufferObject & other )

Swap the internal BufferObject .

Note: The local data is not changed!

Note: the size of the new buffer must be equal to that of the old one.

Note: Use only if you know what you are doing!

Defined in Rendering/Mesh/MeshIndexData.h:82