#include <cmesh.h>
Public Member Functions | |
| CMesh (CTile *tile) | |
| ~CMesh () | |
| Destructor. | |
| void | setTile (CTile *tile) |
| Should only be called by libProcTer. | |
| void | recalcNormals () |
| void | updateSurface () |
| Should only be called by libProcTer. | |
| bool | checkIntegrity () |
| CTexture * | getTexture (CTileSurface::eTextureType type) const |
Public Attributes | |
| std::vector< SVertex > | m_Vertices |
| The vertices of the mesh. | |
| std::vector< STriangle > | m_Triangles |
| The triangles of the mesh. | |
| SSphere | m_BoundingSphere |
| libProcTer::CMesh::CMesh | ( | CTile * | tile | ) |
Constructor. Should only be called by libProcTer.
| libProcTer::CMesh::~CMesh | ( | ) |
Destructor.
| bool libProcTer::CMesh::checkIntegrity | ( | ) |
Checks integrity of the mesh. For debugging purposes only.
| CTexture* libProcTer::CMesh::getTexture | ( | CTileSurface::eTextureType | type | ) | const [inline] |
| type | The requested type of texture |
| void libProcTer::CMesh::recalcNormals | ( | ) |
Re-calculate vertex normals, based on vertex positions.
For meshes created by libProcTer, you should not need to call this.
| void libProcTer::CMesh::setTile | ( | CTile * | tile | ) | [inline] |
Should only be called by libProcTer.
| void libProcTer::CMesh::updateSurface | ( | ) |
Should only be called by libProcTer.
Bounding sphere of the mesh. When changing the geometry of the mesh, you should re-calculate this manually.
For meshes created by libProcTer, this should already contain a valid bounding sphere.
| std::vector<STriangle> libProcTer::CMesh::m_Triangles |
The triangles of the mesh.
| std::vector<SVertex> libProcTer::CMesh::m_Vertices |
The vertices of the mesh.
1.5.8