#include <ompfMeshChunk.h>
Inherits OMPF::ompfBaseChunk.
◆ ompfMeshChunk()
OMPF::ompfMeshChunk::ompfMeshChunk |
( |
| ) |
|
◆ ~ompfMeshChunk()
OMPF::ompfMeshChunk::~ompfMeshChunk |
( |
| ) |
|
|
virtual |
◆ getAlpha()
float32 OMPF::ompfMeshChunk::getAlpha |
( |
| ) |
const |
◆ getAmbient()
const iaColor3c & OMPF::ompfMeshChunk::getAmbient |
( |
| ) |
const |
◆ getColorsPerVertex()
uint8 OMPF::ompfMeshChunk::getColorsPerVertex |
( |
| ) |
const |
- Returns
- amount of colors per vertex
◆ getDiffuse()
const iaColor3c & OMPF::ompfMeshChunk::getDiffuse |
( |
| ) |
const |
◆ getEmissive()
const iaColor3c & OMPF::ompfMeshChunk::getEmissive |
( |
| ) |
const |
◆ 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
◆ getShininess()
float32 OMPF::ompfMeshChunk::getShininess |
( |
| ) |
const |
- Returns
- the shininess factor
◆ getSize()
- Returns
- size of chunk in bytes
- Parameters
-
settings | the settings the size calculation is based on |
Reimplemented from OMPF::ompfBaseChunk.
◆ getSpecular()
const iaColor3c & OMPF::ompfMeshChunk::getSpecular |
( |
| ) |
const |
◆ 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 vertex size
- Returns
- the vertex size
◆ setAlpha()
void OMPF::ompfMeshChunk::setAlpha |
( |
const float32 |
alpha | ) |
|
sets the alpha value
- Parameters
-
shininess | the shininess factor |
◆ setAmbient()
void OMPF::ompfMeshChunk::setAmbient |
( |
const iaColor3c & |
ambient | ) |
|
sets ambient color of target material of mesh
- Parameters
-
◆ setColorsPerVertex()
void OMPF::ompfMeshChunk::setColorsPerVertex |
( |
uint8 |
count | ) |
|
sets amount of colors per vertex
- Parameters
-
count | the amount of colors per vertex |
◆ setDiffuse()
void OMPF::ompfMeshChunk::setDiffuse |
( |
const iaColor3c & |
diffuse | ) |
|
sets diffuse color of target material of mesh
- Parameters
-
◆ setEmissive()
void OMPF::ompfMeshChunk::setEmissive |
( |
const iaColor3c & |
emissiv | ) |
|
sets emissiv color of target material of mesh
- Parameters
-
◆ 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
- Parameters
-
count | the amount of normals per vertex |
◆ setShininess()
void OMPF::ompfMeshChunk::setShininess |
( |
const float32 |
shininess | ) |
|
sets shininess of target material of mesh
- Parameters
-
shininess | the shininess factor |
◆ setSpecular()
void OMPF::ompfMeshChunk::setSpecular |
( |
const iaColor3c & |
specular | ) |
|
sets specular color of target material of mesh
- Parameters
-
specular | the specular color |
◆ setTexCoordPerVertex()
void OMPF::ompfMeshChunk::setTexCoordPerVertex |
( |
uint8 |
count | ) |
|
sets the amount of texture coordinates per vertex
- 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 |
The documentation for this class was generated from the following files: