Geometry base interface.
Public Member Functions | |
| virtual eGeometryType | GetType () const =0 |
| Geometry type. {Property}. More... | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
Vertex and index array. | |
| virtual iVertexArray * | GetVertexArray () const =0 |
| Get the constant vertex array of this geometry. {Property}. More... | |
| virtual iIndexArray * | GetIndexArray () const =0 |
| Get the constant index array of this geometry. {Property}. More... | |
Generation and Extra data | |
| virtual tBool | Generate (eGeometryGenerate aGenerate, tF32 fEpsilon=niEpsilon4)=0 |
| Generate the specified things. More... | |
| virtual tU32 | GetNumFaces () const =0 |
| Get the number of face contained in the mesh. {Property}. More... | |
| virtual void | SetFacesSubsetsIDs (const tU32 *apIDs)=0 |
| Set the faces subset's IDs. More... | |
| virtual const tU32 * | GetFacesSubsetsIDs () const =0 |
| Get the faces subsets IDs. More... | |
| virtual const tU32 * | GetAdjacencyArray () const =0 |
| Get the adjacency array. More... | |
Subsets | |
| virtual tU32 | GetNumSubsets () const =0 |
| Get the number of subsets. {Property}. More... | |
| virtual iGeometrySubset * | GetSubset (tU32 aulIdx) const =0 |
| Get the subset at the specified index. More... | |
| virtual tU32 | GetSubsetIndex (tU32 aulID) const =0 |
| Get the index of the subset with the specified ID. More... | |
| virtual iGeometrySubset * | AddSubset (tU32 anID, tU32 anFirstIndex, tU32 anNumIndices, tU32 anMaterial)=0 |
| Add a subset. More... | |
| virtual tBool | RemoveSubset (tU32 aulIdx)=0 |
| Remove the subset at the given index. More... | |
Clonning. | |
| virtual iGeometry * | Clone (tGeometryCreateFlags aFlags, tFVF aFVF=0)=0 |
| Create a copy of this geometry. More... | |
Rendering | |
| virtual tBool | SetDrawOp (iDrawOperation *apDrawOp, tU32 aulSubsetIdx)=0 |
| Set the specified draw operation to draw the specified subset. More... | |
Optimization | |
| virtual tBool | Optimize (tGeometryOptimizeFlags aFlags)=0 |
| Optimize the mesh. More... | |
|
pure virtual |
Geometry type. {Property}.
|
pure virtual |
Get the constant vertex array of this geometry. {Property}.
|
pure virtual |
Get the constant index array of this geometry. {Property}.
|
pure virtual |
Generate the specified things.
| aGenerate | indicate what to generate. |
| fEpsilon | specifies that vertices that differ in position by less than epsilon should be treated as coincident. |
|
pure virtual |
Get the number of face contained in the mesh. {Property}.
Set the faces subset's IDs.
| apIDs | is an array of subset id, it must have a size of GetNumFaces(). |
|
pure virtual |
Get the faces subsets IDs.
|
pure virtual |
Get the adjacency array.
|
pure virtual |
Get the number of subsets. {Property}.
|
pure virtual |
Get the subset at the specified index.
Get the index of the subset with the specified ID.
|
pure virtual |
Add a subset.
Remove the subset at the given index.
|
pure virtual |
Create a copy of this geometry.
| aFlags | are the creation flags of the new geometry. |
| aFVF | if not NULL it's used as the new vertex format to use for the new geometry. |
|
pure virtual |
Set the specified draw operation to draw the specified subset.
|
pure virtual |
Optimize the mesh.
1.8.7