#include <iMesh.h>
◆ bind()
void igor::iMesh::bind |
( |
| ) |
|
binds mesh vertex array for rendering
◆ create()
- Returns
- a newly created mesh
◆ getBoundingBox()
const iAABoxd & igor::iMesh::getBoundingBox |
( |
| ) |
const |
◆ getIndexCount()
uint32 igor::iMesh::getIndexCount |
( |
| ) |
const |
◆ getLayout()
◆ getRawData()
void igor::iMesh::getRawData |
( |
void *& |
indexData, |
|
|
uint32 & |
indexDataSize, |
|
|
void *& |
vertexData, |
|
|
uint32 & |
vertexDataSize |
|
) |
| |
- Returns
- raw data if available Availability can be tested with hasRawData
- Parameters
-
[out] | indexData | the index data pointer |
[out] | indexDataSize | the index data size |
[out] | vertexData | the vertex data pointer |
[out] | vertexDataSize | the vertex data size |
◆ getTextureCoordinatesCount()
uint32 igor::iMesh::getTextureCoordinatesCount |
( |
| ) |
const |
- Returns
- texture coordinates count
◆ getTextureUnitCount()
uint32 igor::iMesh::getTextureUnitCount |
( |
| ) |
const |
- Returns
- texture unit count
◆ getTrianglesCount()
uint32 igor::iMesh::getTrianglesCount |
( |
| ) |
const |
◆ getVertexArray()
◆ getVertexCount()
uint32 igor::iMesh::getVertexCount |
( |
| ) |
const |
◆ hasColors()
bool igor::iMesh::hasColors |
( |
| ) |
const |
- Returns
- true if mesh has color deifnitions
◆ hasNormals()
bool igor::iMesh::hasNormals |
( |
| ) |
const |
- Returns
- true if mesh has normals
◆ hasRawData()
bool igor::iMesh::hasRawData |
( |
| ) |
const |
- Returns
- true if mesh has raw data available
◆ hasTextures()
bool igor::iMesh::hasTextures |
( |
| ) |
const |
- Returns
- true if mesh has textures and texture coordinates
◆ hasTextureUnit()
bool igor::iMesh::hasTextureUnit |
( |
uint32 |
unit | ) |
const |
- Returns
- true if mesh has specified texture unit
◆ isKeepingRawData()
bool igor::iMesh::isKeepingRawData |
( |
| ) |
const |
- Returns
- true if the raw data will not be deleted after passing it to the GPU
◆ isValid()
bool igor::iMesh::isValid |
( |
| ) |
const |
- Returns
- true if mesh is in a valid state
◆ setBoundingBox()
void igor::iMesh::setBoundingBox |
( |
const iAABoxd & |
bbox | ) |
|
set bounding box
- Parameters
-
◆ setData()
void igor::iMesh::setData |
( |
const void * |
indexData, |
|
|
uint32 |
indexDataSize, |
|
|
const void * |
vertexData, |
|
|
uint32 |
vertexDataSize, |
|
|
const iBufferLayout & |
layout, |
|
|
bool |
keepRawData = false |
|
) |
| |
sets index data
can be called from non main thread
- Parameters
-
indexData | the index data |
indexDataSize | the index data size |
vertexData | the vertex data |
vertexDataSize | the vertex data size |
keepRawData | if true the raw data will not be deleted after passing it to the GPU |
◆ setHasColors()
void igor::iMesh::setHasColors |
( |
bool |
hasColors | ) |
|
sets if mesh has colors
- Parameters
-
hasColors | flag to set if colors are present |
◆ setHasNormals()
void igor::iMesh::setHasNormals |
( |
bool |
hasNormals | ) |
|
sets if mesh has normals
- Parameters
-
hasNormals | flag to set if normals are present |
◆ setIndexCount()
void igor::iMesh::setIndexCount |
( |
uint32 |
count | ) |
|
sets index count
- Parameters
-
◆ setKeepRawData()
void igor::iMesh::setKeepRawData |
( |
bool |
keepRawData = true | ) |
|
sets keep data flag
- Parameters
-
keepRawData | if true the raw data will not be deleted after passing it to the GPU |
◆ setTexture()
void igor::iMesh::setTexture |
( |
int |
texunit, |
|
|
bool |
active |
|
) |
| |
sets texture unit active or inactive
- Parameters
-
texunit | the texture unit index |
active | flag to set the specified texture unit active or inactive |
◆ setTextureCoordinatesCount()
void igor::iMesh::setTextureCoordinatesCount |
( |
uint32 |
texCoord | ) |
|
set texture coordinates per vertex count
- Parameters
-
texCoord | the texture coordinates count |
◆ setTrianglesCount()
void igor::iMesh::setTrianglesCount |
( |
uint32 |
count | ) |
|
set triangles count
- Parameters
-
◆ setVertexCount()
void igor::iMesh::setVertexCount |
( |
uint32 |
count | ) |
|
sets vertex count
- Parameters
-
◆ iMeshDeleter
The documentation for this class was generated from the following files:
- /home/maddin/dev/Igor/src/igor/igor/resources/mesh/iMesh.h
- /home/maddin/dev/Igor/src/igor/igor/resources/mesh/iMesh.cpp