#include <ompfMeshChunk.h>
Inherits OMPF::ompfBaseChunk.
◆ ompfMeshChunk()
OMPF::ompfMeshChunk::ompfMeshChunk |
( |
| ) |
|
◆ ~ompfMeshChunk()
OMPF::ompfMeshChunk::~ompfMeshChunk |
( |
| ) |
|
|
virtual |
◆ getColorsPerVertex()
uint8 OMPF::ompfMeshChunk::getColorsPerVertex |
( |
| ) |
const |
- Returns
- amount of colors per vertex
◆ getIndexCount()
uint32 OMPF::ompfMeshChunk::getIndexCount |
( |
| ) |
const |
◆ getIndexData()
const void * OMPF::ompfMeshChunk::getIndexData |
( |
| ) |
const |
- Returns
- pointer to index data
◆ getIndexDataSize()
uint32 OMPF::ompfMeshChunk::getIndexDataSize |
( |
| ) |
const |
◆ getMaterialChunkID()
uint32 OMPF::ompfMeshChunk::getMaterialChunkID |
( |
| ) |
const |
◆ getMeshType()
OMPFMeshType OMPF::ompfMeshChunk::getMeshType |
( |
| ) |
const |
◆ getNormalsPerVertex()
uint8 OMPF::ompfMeshChunk::getNormalsPerVertex |
( |
| ) |
const |
- Returns
- amount of normals per vertex
◆ getTexCoordPerVertex()
uint8 OMPF::ompfMeshChunk::getTexCoordPerVertex |
( |
| ) |
const |
- Returns
- the amount of texture coordinates per vertex
◆ getTexture()
- Returns
- texture for specified texture unit
- Parameters
-
◆ getTextureCount()
uint32 OMPF::ompfMeshChunk::getTextureCount |
( |
| ) |
const |
- Returns
- amount of textures in use
◆ getVertexCount()
uint32 OMPF::ompfMeshChunk::getVertexCount |
( |
| ) |
const |
◆ getVertexData()
const void * OMPF::ompfMeshChunk::getVertexData |
( |
| ) |
const |
- Returns
- pointer to vertex data
◆ getVertexDataSize()
uint32 OMPF::ompfMeshChunk::getVertexDataSize |
( |
| ) |
const |
◆ getVertexSize()
uint32 OMPF::ompfMeshChunk::getVertexSize |
( |
| ) |
const |
calculates the size of a single vertex
- Returns
- the vertex size
◆ setColorsPerVertex()
void OMPF::ompfMeshChunk::setColorsPerVertex |
( |
uint8 |
count | ) |
|
sets amount of colors per vertex (usually 0 or 1)
- Parameters
-
count | the amount of colors per vertex |
◆ setIndexCount()
void OMPF::ompfMeshChunk::setIndexCount |
( |
uint32 |
count | ) |
|
sets the amount of indexes
- Parameters
-
count | the amount of indexes |
◆ setIndexData()
void OMPF::ompfMeshChunk::setIndexData |
( |
const char * |
data, |
|
|
uint32 |
size |
|
) |
| |
sets index data
- Parameters
-
data | pointer to index data |
size | the size of index data in bytes |
◆ setMaterialChunkID()
void OMPF::ompfMeshChunk::setMaterialChunkID |
( |
uint32 |
id | ) |
|
sets material chund id
- Parameters
-
◆ setMeshType()
void OMPF::ompfMeshChunk::setMeshType |
( |
OMPFMeshType |
type | ) |
|
sets the mesh type
- Parameters
-
◆ setNormalsPerVertex()
void OMPF::ompfMeshChunk::setNormalsPerVertex |
( |
uint8 |
count | ) |
|
sets amount of normals per vertex (usually 0 or 1)
- Parameters
-
count | the amount of normals per vertex |
◆ setTexCoordPerVertex()
void OMPF::ompfMeshChunk::setTexCoordPerVertex |
( |
uint8 |
count | ) |
|
sets the amount of texture coordinates per vertex (usually 0 or 1)
- Parameters
-
count | the amount of texture coordinates per vertex |
◆ setTexture()
void OMPF::ompfMeshChunk::setTexture |
( |
const iaString & |
texture, |
|
|
uint32 |
texunit |
|
) |
| |
sets a texture for specified texture unit
- Parameters
-
texture | the texture |
texunit | the texture unit specified |
◆ setVertexCount()
void OMPF::ompfMeshChunk::setVertexCount |
( |
uint32 |
count | ) |
|
sets vertex count
- Parameters
-
count | the amount of vertexes |
◆ setVertexData()
void OMPF::ompfMeshChunk::setVertexData |
( |
const char * |
data, |
|
|
uint32 |
size |
|
) |
| |
sets vertex data
- Parameters
-
data | pointer to raw vertex data |
size | the size in bytes |
◆ OMPF
The documentation for this class was generated from the following files: