Public Methods |
| CMesh () |
| Constructor. More...
|
| ~CMesh () |
| dtor. More...
|
| CMesh (const CMesh &mesh) |
CMesh& | operator= (const CMesh &mesh) |
void | build (CMeshBase::CMeshBaseBuild &mbase, CMeshBuild &mbuild) |
| Build a mesh, replacing old. WARNING: This has a side effect of deleting AnimatedMaterials. More...
|
void | build (CMeshBase::CMeshBaseBuild &mbuild, CMeshGeom &meshGeom) |
| Build a mesh from material info, and a builded MeshGeom. WARNING: This has a side effect of deleting AnimatedMaterials. More...
|
virtual CTransformShape* | createInstance (CScene &scene) |
| Create a CMeshInstance, which contains materials. More...
|
virtual bool | clip (const std::vector<CPlane> &pyramid, const CMatrix &worldMatrix) |
| clip this mesh in a driver. More...
|
virtual void | render (IDriver *drv, CTransformShape *trans, bool opaquePass) |
| render() this mesh in a driver. More...
|
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
| serial this mesh. More...
|
| NLMISC_DECLARE_CLASS (CMesh) |
virtual float | getNumTriangles (float distance) |
| get trinagle count. More...
|
virtual void | getAABBox (NLMISC::CAABBox &bbox) const |
| Get bbox. More...
|
const NLMISC::CAABBoxExt& | getBoundingBox () const |
| get the extended axis aligned bounding box of the mesh. More...
|
const CVertexBuffer& | getVertexBuffer () const |
| get the vertex buffer used by the mesh. More...
|
uint | getNbMatrixBlock () const |
| get the number of matrix block. More...
|
uint | getNbRdrPass (uint matrixBlockIndex) const |
| get the number of rendering pass for a given matrix block. More...
|
const CPrimitiveBlock& | getRdrPassPrimitiveBlock (uint matrixBlockIndex, uint renderingPassIndex) const |
| get the primitive block associated with a rendering pass of a matrix block. More...
|
uint32 | getRdrPassMaterial (uint matrixBlockIndex, uint renderingPassIndex) const |
| get the material ID associated with a rendering pass of a matrix block. More...
|
Private Attributes |
CMeshGeom* | _MeshGeom |
Skinning support: support only palette skinning.