#include <glmesh.h>
Inheritance diagram for sheep::GLMesh:

Public Types | |
| typedef std::vector< SubMesh * > | SubMeshVector |
| typedef SubMeshVector::const_iterator | SubMeshVectorConstIt |
| enum | RenderingMode { IMMEDIATE_MODE, DISPLAY_LIST } |
Public Member Functions | |
| GLMesh () | |
| virtual | ~GLMesh () |
| void | Insert (SubMesh *m) |
| int | GetVertexCount () const |
| int | GetFaceCount () const |
| const AABB3 & | GetAABB () const |
| void | FlipFaces () |
| void | SetupRendering (RenderingMode mode) |
| void | Render () const |
| void | DisplayNormals () const |
Public Attributes | |
| SubMeshVector | m_sub_meshes |
Private Attributes | |
| int | m_vertex_count |
| Total number of vertices. | |
| int | m_face_count |
| Total number of faces. | |
| AABB3 | m_aabb |
| Axis-aligned bounding box. | |
|
|
|
|
|
Definition at line 91 of file glmesh.h. Referenced by DisplayNormals(), FlipFaces(), Render(), SetupRendering(), and ~GLMesh(). |
|
|
|
|
|
Definition at line 220 of file glmesh.cpp. References m_face_count, and m_vertex_count. |
|
|
Definition at line 226 of file glmesh.cpp. References m_sub_meshes, and SubMeshVectorConstIt. |
|
|
Definition at line 285 of file glmesh.cpp. References m_sub_meshes, and SubMeshVectorConstIt. |
|
|
Flip faces and normals. Don't forget to call SetupRendering() before rendering the mesh. Definition at line 249 of file glmesh.cpp. References sheep::GLMesh::SubMesh::FaceVectorIt, sheep::GLMesh::SubMesh::m_faces, sheep::GLMesh::SubMesh::Face::m_n1, sheep::GLMesh::SubMesh::Face::m_n2, sheep::GLMesh::SubMesh::m_normals, m_sub_meshes, sheep::GLMesh::SubMesh::Face::m_t1, sheep::GLMesh::SubMesh::Face::m_t2, sheep::GLMesh::SubMesh::Face::m_v1, sheep::GLMesh::SubMesh::Face::m_v2, SubMeshVectorConstIt, and sheep::GLMesh::SubMesh::Vector3VectorIt. |
|
|
|
|
|
|
|
|
|
|
|
The submesh must be fully defined and ready to be rendered when it is inserted. Definition at line 232 of file glmesh.cpp. References sheep::AABB3::Include(), m_face_count, sheep::GLMesh::SubMesh::m_faces, m_sub_meshes, m_vertex_count, sheep::GLMesh::SubMesh::m_vertices, and sheep::GLMesh::SubMesh::Vector3VectorConstIt. |
|
|
Definition at line 279 of file glmesh.cpp. References m_sub_meshes, and SubMeshVectorConstIt. |
|
|
Changes the rendering mode of the mesh. Default rendering mode is IMMEDIATE. Call this method if the mesh has been modified since the last call (call it before calling the Render() method). Definition at line 273 of file glmesh.cpp. References m_sub_meshes, and SubMeshVectorConstIt. |
|
|
Axis-aligned bounding box.
|
|
|
Total number of faces.
|
|
|
Definition at line 93 of file glmesh.h. Referenced by DisplayNormals(), FlipFaces(), Insert(), Render(), SetupRendering(), and ~GLMesh(). |
|
|
Total number of vertices.
|
1.3.6