#include <IDXMesh.h>
Inherits DX::IDXUserData, DX::IDXModelOwned, DX::IDXGroupOwned, and DX::IDXHasFileBinding.
Public Member Functions | |
virtual uint DXMCALL | GetNumVertices () const =0 |
virtual uint DXMCALL | GetNumFaces () const =0 |
virtual uint DXMCALL | GetNumMaterialMaps () const =0 |
virtual uint DXMCALL | GetNumUVChannels () const =0 |
virtual DXError DXMCALL | GetVertex (uint index, IDXVertexPtr *out) const =0 |
virtual DXError DXMCALL | GetVertices (uint start, uint count, IDXVertexArray out) const =0 |
virtual DXError DXMCALL | GetVertices (IDXVertexArray out) const =0 |
virtual DXError DXMCALL | GetFace (uint index, IDXFacePtr *out) const =0 |
virtual DXError DXMCALL | GetFaces (uint start, uint count, IDXFaceArray out) const =0 |
virtual DXError DXMCALL | GetFaces (IDXFaceArray out) const =0 |
virtual DXError DXMCALL | GetMaterialMap (uint index, uint *out) const =0 |
virtual DXError DXMCALL | GetSkin (IDXSkinPtr *out) const =0 |
virtual void DXMCALL | SetNumUVChannels (uint numChannels)=0 |
virtual DXError DXMCALL | SetMaterialMap (uint index, uint materialIndex)=0 |
virtual DXError DXMCALL | SetMaterialMap (uint index, IDXMaterialPtr material)=0 |
virtual DXError DXMCALL | SetMaterialMap (uint index, const char *materialID)=0 |
virtual IDXVertexPtr DXMCALL | AddVertex (const DXVector &vector, const DXVector &normal, uint uvCount=0, const DXUV *uvs=0)=0 |
virtual DXError DXMCALL | AddFace (uint v0, uint v1, uint v2, uint material, IDXFacePtr *out=0)=0 |
virtual DXError DXMCALL | AddMaterialMap (const char *materialName, bool allowDuplicate, uint *out=0)=0 |
virtual DXError DXMCALL | AddMaterialMap (uint index, bool allowDuplicate, uint *out=0)=0 |
virtual DXError DXMCALL | RemoveVertex (IDXVertexPtr vertex)=0 |
virtual DXError DXMCALL | RemoveVertex (uint index)=0 |
virtual DXError DXMCALL | RemoveVertex (uint start, uint count)=0 |
virtual DXError DXMCALL | RemoveFace (IDXFacePtr face)=0 |
virtual DXError DXMCALL | RemoveFace (uint index)=0 |
virtual DXError DXMCALL | RemoveFace (uint start, uint count)=0 |
virtual DXError DXMCALL | RemoveMaterialMap (const char *materialName)=0 |
virtual DXError DXMCALL | RemoveMaterialMap (IDXMaterialPtr map)=0 |
virtual DXError DXMCALL | RemoveMaterialMap (uint index)=0 |
virtual DXError DXMCALL | RemoveMaterialMap (uint start, uint count)=0 |
virtual void DXMCALL | ClearVertices ()=0 |
virtual void DXMCALL | ClearFaces ()=0 |
virtual void DXMCALL | ClearMaterialMaps ()=0 |
virtual DXError DXMCALL | CreateSkin (IDXSkinPtr *out=0)=0 |
virtual DXError DXMCALL | DestroySkin ()=0 |
virtual void DXMCALL | Optimize ()=0 |
virtual DXError DXMCALL DX::IDXMesh::AddFace | ( | uint | v0, | |
uint | v1, | |||
uint | v2, | |||
uint | material, | |||
IDXFacePtr * | out = 0 | |||
) | [pure virtual] |
Add a new face to this IDXMesh.
v0 | The index of the zeroth vertex of the new face. | |
v1 | The index of the first vertex of the new face. | |
v2 | The index of the second vertex of the new face. | |
material | The index of the material to use on the new face. | |
out | An optional pointer to an IDXFacePtr where a pointer to the new face will be stored. |
virtual DXError DXMCALL DX::IDXMesh::AddMaterialMap | ( | uint | index, | |
bool | allowDuplicate, | |||
uint * | out = 0 | |||
) | [pure virtual] |
Add a material map to this IDXMesh.
index | This is the index of a material that has been created on the model. | |
out | This is an optional paremeter, a pointer to an uint variable which will be set to the index of the map that has been added. If the function returns Error_Success, this will be set to the index for the material that has been added. If the function returns Error_Duplicate, this will be set to the index of the map that already exists in the IDXMesh. |
virtual DXError DXMCALL DX::IDXMesh::AddMaterialMap | ( | const char * | materialName, | |
bool | allowDuplicate, | |||
uint * | out = 0 | |||
) | [pure virtual] |
Add a material map to this IDXMesh.
materialName | This is the name of a material that has been created on the model. | |
out | This is an optional paremeter. a pointer to an uint variable which will be set to the index of the map that has been added. If the function returns Error_Success, this will be set to the index for the material that has been added. If the function returns Error_Duplicate, this will be set to the index of the map that already exists in the IDXMesh. |
virtual IDXVertexPtr DXMCALL DX::IDXMesh::AddVertex | ( | const DXVector & | vector, | |
const DXVector & | normal, | |||
uint | uvCount = 0 , |
|||
const DXUV * | uvs = 0 | |||
) | [pure virtual] |
Add a new vertex to this IDXMesh.
vector | The position value of the vertex. | |
normal | The normal to this vertex. | |
uvCount | The number of UV coordinates that this vertex has. Defaults to 0 | |
uvs | If uvCount is non-zero, then this should be a point to an array of DXUV, of length equal to uvCount. |
virtual void DXMCALL DX::IDXMesh::ClearFaces | ( | ) | [pure virtual] |
Remove all faces from this mesh.
virtual void DXMCALL DX::IDXMesh::ClearMaterialMaps | ( | ) | [pure virtual] |
Remove all material maps.
virtual void DXMCALL DX::IDXMesh::ClearVertices | ( | ) | [pure virtual] |
Remove all vertices from the mesh. Any faces that reference these vertices will have the appropriate index set to DXMESH_UNASSIGNED_VERTEX.
virtual DXError DXMCALL DX::IDXMesh::CreateSkin | ( | IDXSkinPtr * | out = 0 |
) | [pure virtual] |
Create a skin on this mesh.
out | An optional pointer to an IDXSkinPtr where a pointer to the skin will be stored. |
virtual DXError DXMCALL DX::IDXMesh::DestroySkin | ( | ) | [pure virtual] |
Destroy any skin that exists on this mesh.
virtual DXError DXMCALL DX::IDXMesh::GetFace | ( | uint | index, | |
IDXFacePtr * | out | |||
) | const [pure virtual] |
Get the face at the specified index.
index | The index of the face to retrieve. | |
out | A pointer to an IDXFacePtr where the result will be stored. |
virtual DXError DXMCALL DX::IDXMesh::GetFaces | ( | IDXFaceArray | out | ) | const [pure virtual] |
Fill a user allocated array with face data. The user must create and delete this array.
out | A pointer to an array of IDXFacePtr of length equal to GetNumFaces |
virtual DXError DXMCALL DX::IDXMesh::GetFaces | ( | uint | start, | |
uint | count, | |||
IDXFaceArray | out | |||
) | const [pure virtual] |
Fill a user allocated array with faces data. The user must create and delete this array. Takes a range from the faces data.
start | The inclusive index to start retrieving data from. | |
count | The number of vertices to retrieve. | |
out | An array of IDXFacePtr of at least equal to count. |
virtual DXError DXMCALL DX::IDXMesh::GetMaterialMap | ( | uint | index, | |
uint * | out | |||
) | const [pure virtual] |
Get the index of the material map at the specified index.
index | The index of the material map to retrieve | |
out | A uint pointer where the index will be stored. |
virtual uint DXMCALL DX::IDXMesh::GetNumFaces | ( | ) | const [pure virtual] |
Get the number of faces in the IDXMesh
virtual uint DXMCALL DX::IDXMesh::GetNumMaterialMaps | ( | ) | const [pure virtual] |
Get the number of material maps that are on this IDXMesh
virtual uint DXMCALL DX::IDXMesh::GetNumUVChannels | ( | ) | const [pure virtual] |
Get the number of uv channels that this mesh has.
virtual uint DXMCALL DX::IDXMesh::GetNumVertices | ( | ) | const [pure virtual] |
Get the number of vertices that are in the IDXMesh.
virtual DXError DXMCALL DX::IDXMesh::GetSkin | ( | IDXSkinPtr * | out | ) | const [pure virtual] |
Get the skin on this mesh.
A | pointer to an IDXSkinPtr where the result will be stored. |
virtual DXError DXMCALL DX::IDXMesh::GetVertex | ( | uint | index, | |
IDXVertexPtr * | out | |||
) | const [pure virtual] |
Get the vertex at the specified index.
index | The index of the vertex to retrieve. | |
out | A pointer to an IDXVertexPtr which will receive the result. |
virtual DXError DXMCALL DX::IDXMesh::GetVertices | ( | IDXVertexArray | out | ) | const [pure virtual] |
Fill a user allocated array with vertex data. The user must create and delete this array.
out | A pointer to an array of IDXVertex of length at least equal to GetNumVertices. |
virtual DXError DXMCALL DX::IDXMesh::GetVertices | ( | uint | start, | |
uint | count, | |||
IDXVertexArray | out | |||
) | const [pure virtual] |
Fill a user allocated array with vertex data. The user must create and delete this array. Takes a range from the vertices data.
start | The inclusive index to start retrieving data from. | |
count | The number of vertices to retrieve. | |
out | An array of IDXVertexPtr of at least equal to count. |
virtual void DXMCALL DX::IDXMesh::Optimize | ( | ) | [pure virtual] |
Optimize the mesh for a faster render.
virtual DXError DXMCALL DX::IDXMesh::RemoveFace | ( | uint | start, | |
uint | count | |||
) | [pure virtual] |
Remove a range of faces.
start | The index of the first element to remove. | |
count | The number of elements to remove. |
virtual DXError DXMCALL DX::IDXMesh::RemoveFace | ( | uint | index | ) | [pure virtual] |
Remove the face at the specified index,
index | The index of the face to remove. |
virtual DXError DXMCALL DX::IDXMesh::RemoveFace | ( | IDXFacePtr | face | ) | [pure virtual] |
Remove the given face from the mesh.
face | An IDXFacePtr to remove from the mesh. |
virtual DXError DXMCALL DX::IDXMesh::RemoveMaterialMap | ( | uint | start, | |
uint | count | |||
) | [pure virtual] |
Remove a range of materials from this mesh's material maps.
start | The index of the first element to remove. | |
count | The number of elements to remove. |
virtual DXError DXMCALL DX::IDXMesh::RemoveMaterialMap | ( | uint | index | ) | [pure virtual] |
Remove the material map at the specified index.
index | The index of the material map to remove. |
virtual DXError DXMCALL DX::IDXMesh::RemoveMaterialMap | ( | IDXMaterialPtr | map | ) | [pure virtual] |
Remove the specified material from this mesh's material maps.
map | The material to remove. |
virtual DXError DXMCALL DX::IDXMesh::RemoveMaterialMap | ( | const char * | materialName | ) | [pure virtual] |
Remove any material maps with the specified name from this mesh.
materialName | The name of the material to remove. |
virtual DXError DXMCALL DX::IDXMesh::RemoveVertex | ( | uint | start, | |
uint | count | |||
) | [pure virtual] |
Remove a range of vertices from the mesh. Any faces that reference these vertices will have the appropriate index set to DXMESH_UNASSIGNED_VERTEX.
start | The index of the first element to remove. | |
count | The number of elements to remove. |
virtual DXError DXMCALL DX::IDXMesh::RemoveVertex | ( | uint | index | ) | [pure virtual] |
Remove the vertex at the specified index from the mesh. Any faces that reference this vertex will have the appropriate index set to DXMESH_UNASSIGNED_VERTEX.
index | The index of the vertex to remove. |
virtual DXError DXMCALL DX::IDXMesh::RemoveVertex | ( | IDXVertexPtr | vertex | ) | [pure virtual] |
Remove the specified vertex from the mesh. Any faces that reference this vertex will have the appropriate index set to DXMESH_UNASSIGNED_VERTEX.
vertex | The vertex to remove. |
virtual DXError DXMCALL DX::IDXMesh::SetMaterialMap | ( | uint | index, | |
const char * | materialID | |||
) | [pure virtual] |
Set the material map at the specified index.
index | The index of the material map to set. | |
materialID | The id of the material to use. |
virtual DXError DXMCALL DX::IDXMesh::SetMaterialMap | ( | uint | index, | |
IDXMaterialPtr | material | |||
) | [pure virtual] |
Set the material map at the specified index.
index | The index of the material map to set. | |
material | An IDXMaterialPtr which is the the material to use. |
virtual DXError DXMCALL DX::IDXMesh::SetMaterialMap | ( | uint | index, | |
uint | materialIndex | |||
) | [pure virtual] |
Set the material map at the specified index.
index | The index of the material map to set. | |
materialIndex | The index of the material in the model to use. |
virtual void DXMCALL DX::IDXMesh::SetNumUVChannels | ( | uint | numChannels | ) | [pure virtual] |
Set the number of uv channels that this mesh has.
numChannels | The number of channels to set this to. |