|
Castor3D
..
|
The mesh representation. More...
Inheritance diagram for Castor3D::Mesh:
Collaboration diagram for Castor3D::Mesh:Classes | |
| class | BinaryParser |
| MovableObject loader. More... | |
| class | TextLoader |
| Mesh loader. More... | |
Public Member Functions | |
| C3D_API | Mesh (Castor::String const &p_name, Engine &p_engine) |
| Constructor. More... | |
| C3D_API | ~Mesh () |
| Destructor. More... | |
| C3D_API void | Cleanup () |
| Clears all submeshes. More... | |
| C3D_API void | ComputeContainers () |
| Computes the collision box and sphere. More... | |
| C3D_API uint32_t | GetFaceCount () const |
| Returns the total faces count. More... | |
| C3D_API uint32_t | GetVertexCount () const |
| Returns the total vertex count. More... | |
| C3D_API SubmeshSPtr | GetSubmesh (uint32_t p_index) const |
| Tries to retrieve the submesh at the given index. More... | |
| C3D_API SubmeshSPtr | CreateSubmesh () |
| Creates a submesh. More... | |
| C3D_API void | DeleteSubmesh (SubmeshSPtr &p_pSubmesh) |
| Deletes a given submesh if it is in the mesh's submeshes. More... | |
| C3D_API MeshSPtr | Clone (Castor::String const &p_name) |
| Clones the mesh, with a new name. More... | |
| C3D_API void | ComputeNormals (bool p_reverted=false) |
| Generates normals and tangents. More... | |
| C3D_API void | Ref (MaterialSPtr p_material) |
| Increments submeshes' instance count. More... | |
| C3D_API void | UnRef (MaterialSPtr p_material) |
| Decrements submeshes' instance count. More... | |
| C3D_API void | SetSkeleton (SkeletonSPtr p_skeleton) |
| Sets the skeleton. More... | |
| SubmeshPtrArrayIt | begin () |
| Retrieves an iterator to the begin of the submeshes. More... | |
| SubmeshPtrArrayConstIt | begin () const |
| Retrieves a constant iterator to the begin of the submeshes. More... | |
| SubmeshPtrArrayIt | end () |
| Retrieves an iterator to the end of the submeshes. More... | |
| SubmeshPtrArrayConstIt | end () const |
| Retrieves a constant iterator to the end of the submeshes. More... | |
| bool | IsModified () const |
| Retrieves the modify status. More... | |
| uint32_t | GetSubmeshCount () const |
| Retrieves the submesh count. More... | |
| Castor::CubeBox const & | GetCollisionBox () const |
| Retrieves the collision box. More... | |
| Castor::SphereBox const & | GetCollisionSphere () const |
| Retrieves the collision sphere. More... | |
| SkeletonSPtr | GetSkeleton () const |
| Retrieves the skeleton. More... | |
Public Member Functions inherited from Castor3D::Animable | |
| C3D_API AnimationSPtr | CreateAnimation (Castor::String const &p_name) |
| Creates an animation. More... | |
| C3D_API void | CleanupAnimations () |
| Empties the animations map. More... | |
| C3D_API AnimationSPtr | GetAnimation (Castor::String const &p_name) |
| Retrieves an animation. More... | |
| AnimationPtrStrMap const & | GetAnimations () const |
Protected Member Functions | |
| DECLARE_VECTOR (AnimationPtrStrMap, AnimationMap) | |
Protected Member Functions inherited from Castor3D::Animable | |
| Animable () | |
| Constructor. More... | |
| ~Animable () | |
| Destructor. More... | |
Protected Attributes | |
| bool | m_modified |
| Tells whether or not the mesh is modified. More... | |
| Castor::CubeBox | m_box |
| The collision box. More... | |
| Castor::SphereBox | m_sphere |
| The collision sphere. More... | |
| SubmeshPtrArray | m_submeshes |
| The submeshes array. More... | |
| SkeletonSPtr | m_skeleton |
| The skeleton. More... | |
Protected Attributes inherited from Castor3D::Animable | |
| AnimationPtrStrMap | m_animations |
| All animations. More... | |
Friends | |
| class | MeshGenerator |
The mesh representation.
| C3D_API Castor3D::Mesh::Mesh | ( | Castor::String const & | p_name, |
| Engine & | p_engine | ||
| ) |
Constructor.
| [in] | p_name | This mesh name |
| [in] | p_engine | The parent engine |
| C3D_API Castor3D::Mesh::~Mesh | ( | ) |
Destructor.
|
inline |
Retrieves an iterator to the begin of the submeshes.
References m_submeshes.
|
inline |
Retrieves a constant iterator to the begin of the submeshes.
References m_submeshes.
| C3D_API void Castor3D::Mesh::Cleanup | ( | ) |
Clears all submeshes.
| C3D_API MeshSPtr Castor3D::Mesh::Clone | ( | Castor::String const & | p_name | ) |
Clones the mesh, with a new name.
| [in] | p_name | The name of the cloned mesh |
| C3D_API void Castor3D::Mesh::ComputeContainers | ( | ) |
Computes the collision box and sphere.
| C3D_API void Castor3D::Mesh::ComputeNormals | ( | bool | p_reverted = false | ) |
Generates normals and tangents.
| C3D_API SubmeshSPtr Castor3D::Mesh::CreateSubmesh | ( | ) |
Creates a submesh.
|
protected |
| C3D_API void Castor3D::Mesh::DeleteSubmesh | ( | SubmeshSPtr & | p_pSubmesh | ) |
Deletes a given submesh if it is in the mesh's submeshes.
| [in] | p_pSubmesh | The submesh to delete |
|
inline |
Retrieves an iterator to the end of the submeshes.
References m_submeshes.
|
inline |
Retrieves a constant iterator to the end of the submeshes.
References m_submeshes.
|
inline |
|
inline |
| C3D_API uint32_t Castor3D::Mesh::GetFaceCount | ( | ) | const |
Returns the total faces count.
|
inline |
| C3D_API SubmeshSPtr Castor3D::Mesh::GetSubmesh | ( | uint32_t | p_index | ) | const |
Tries to retrieve the submesh at the given index.
| [in] | p_index | The wanted submesh index |
|
inline |
| C3D_API uint32_t Castor3D::Mesh::GetVertexCount | ( | ) | const |
Returns the total vertex count.
|
inline |
| C3D_API void Castor3D::Mesh::Ref | ( | MaterialSPtr | p_material | ) |
Increments submeshes' instance count.
| [in] | p_material | The material for which the instance count is incremented |
| C3D_API void Castor3D::Mesh::SetSkeleton | ( | SkeletonSPtr | p_skeleton | ) |
Sets the skeleton.
| [in] | p_skeleton | The new value |
| C3D_API void Castor3D::Mesh::UnRef | ( | MaterialSPtr | p_material | ) |
Decrements submeshes' instance count.
| [in] | p_material | The material for which the instance count is decremented |
|
friend |
|
protected |
The collision box.
Referenced by GetCollisionBox().
|
protected |
Tells whether or not the mesh is modified.
Referenced by IsModified().
|
protected |
The skeleton.
Referenced by GetSkeleton().
|
protected |
The collision sphere.
Referenced by GetCollisionSphere().
|
protected |
The submeshes array.
Referenced by begin(), end(), and GetSubmeshCount().
1.8.15