Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials |
Simple implementation of the IAnimatedMesh interface. More...
#include <SAnimatedMesh.h>
Public Member Functions | |
void | addMesh (IMesh *mesh) |
adds a Mesh | |
virtual const core::aabbox3d < f32 > & | getBoundingBox () const |
Returns an axis aligned bounding box of the mesh. | |
virtual u32 | getFrameCount () const |
Gets the frame count of the animated mesh. | |
virtual IMesh * | getMesh (s32 frame, s32 detailLevel, s32 startFrameLoop=-1, s32 endFrameLoop=-1) |
Returns the IMesh interface for a frame. | |
virtual IMeshBuffer * | getMeshBuffer (u32 nr) const |
returns pointer to a mesh buffer | |
virtual IMeshBuffer * | getMeshBuffer (const video::SMaterial &material) const |
Returns pointer to a mesh buffer which fits a material. | |
virtual u32 | getMeshBufferCount () const |
returns amount of mesh buffers. | |
virtual E_ANIMATED_MESH_TYPE | getMeshType () const |
Returns the type of the animated mesh. | |
void | recalculateBoundingBox () |
Recalculates the bounding box. | |
SAnimatedMesh (scene::IMesh *mesh=0, scene::E_ANIMATED_MESH_TYPE type=scene::EAMT_UNKNOWN) | |
constructor | |
virtual void | setBoundingBox (const core::aabbox3df &box) |
set user axis aligned bounding box | |
virtual void | setDirty (E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) |
flags the meshbuffer as changed, reloads hardware buffers | |
virtual void | setHardwareMappingHint (E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) |
set the hardware mapping hint, for driver | |
virtual void | setMaterialFlag (video::E_MATERIAL_FLAG flag, bool newvalue) |
Set a material flag for all meshbuffers of this mesh. | |
virtual | ~SAnimatedMesh () |
destructor |
Public Attributes | |
core::aabbox3d< f32 > | Box |
The bounding box of this mesh. | |
core::array< IMesh * > | Meshes |
All meshes defining the animated mesh. | |
E_ANIMATED_MESH_TYPE | Type |
Tyhe type fo the mesh. |
Additional Inherited Members | |
![]() | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. |
Simple implementation of the IAnimatedMesh interface.
Definition at line 19 of file SAnimatedMesh.h.
|
inline |
constructor
Definition at line 22 of file SAnimatedMesh.h.
References addMesh(), recalculateBoundingBox(), and irr::IReferenceCounted::setDebugName().
|
inlinevirtual |
destructor
Definition at line 33 of file SAnimatedMesh.h.
References irr::IReferenceCounted::drop(), Meshes, and irr::core::array< T, TAlloc >::size().
|
inline |
adds a Mesh
Definition at line 67 of file SAnimatedMesh.h.
References irr::IReferenceCounted::grab(), Meshes, and irr::core::array< T, TAlloc >::push_back().
Referenced by SAnimatedMesh().
|
inlinevirtual |
Returns an axis aligned bounding box of the mesh.
Implements irr::scene::IMesh.
Definition at line 79 of file SAnimatedMesh.h.
References Box.
|
inlinevirtual |
Gets the frame count of the animated mesh.
Implements irr::scene::IAnimatedMesh.
Definition at line 43 of file SAnimatedMesh.h.
References Meshes, and irr::core::array< T, TAlloc >::size().
|
inlinevirtual |
Returns the IMesh interface for a frame.
\param frame: Frame number as zero based index. The maximum frame number is
getFrameCount() - 1;
detailLevel,: | Level of detail. 0 is the lowest, 255 the highest level of detail. Most meshes will ignore the detail level. |
startFrameLoop,: | start frame |
endFrameLoop,: | end frame |
Implements irr::scene::IAnimatedMesh.
Definition at line 57 of file SAnimatedMesh.h.
References irr::core::array< T, TAlloc >::empty(), and Meshes.
|
inlinevirtual |
returns pointer to a mesh buffer
Implements irr::scene::IMesh.
Definition at line 124 of file SAnimatedMesh.h.
References irr::core::array< T, TAlloc >::empty(), and Meshes.
|
inlinevirtual |
Returns pointer to a mesh buffer which fits a material.
\param material: material to search for
Implements irr::scene::IMesh.
Definition at line 137 of file SAnimatedMesh.h.
References irr::core::array< T, TAlloc >::empty(), and Meshes.
|
inlinevirtual |
returns amount of mesh buffers.
Implements irr::scene::IMesh.
Definition at line 114 of file SAnimatedMesh.h.
References irr::core::array< T, TAlloc >::empty(), and Meshes.
|
inlinevirtual |
Returns the type of the animated mesh.
Reimplemented from irr::scene::IAnimatedMesh.
Definition at line 107 of file SAnimatedMesh.h.
References Type.
|
inline |
Recalculates the bounding box.
Definition at line 92 of file SAnimatedMesh.h.
References irr::core::aabbox3d< T >::addInternalBox(), Box, irr::core::array< T, TAlloc >::empty(), Meshes, irr::core::aabbox3d< T >::reset(), and irr::core::array< T, TAlloc >::size().
Referenced by SAnimatedMesh().
|
inlinevirtual |
set user axis aligned bounding box
Implements irr::scene::IMesh.
Definition at line 86 of file SAnimatedMesh.h.
References Box.
|
inlinevirtual |
flags the meshbuffer as changed, reloads hardware buffers
Implements irr::scene::IMesh.
Definition at line 161 of file SAnimatedMesh.h.
References Meshes, and irr::core::array< T, TAlloc >::size().
|
inlinevirtual |
set the hardware mapping hint, for driver
Implements irr::scene::IMesh.
Definition at line 154 of file SAnimatedMesh.h.
References Meshes, and irr::core::array< T, TAlloc >::size().
|
inlinevirtual |
Set a material flag for all meshbuffers of this mesh.
Implements irr::scene::IMesh.
Definition at line 147 of file SAnimatedMesh.h.
References Meshes, and irr::core::array< T, TAlloc >::size().
core::aabbox3d<f32> irr::scene::SAnimatedMesh::Box |
The bounding box of this mesh.
Definition at line 171 of file SAnimatedMesh.h.
Referenced by getBoundingBox(), recalculateBoundingBox(), and setBoundingBox().
core::array<IMesh*> irr::scene::SAnimatedMesh::Meshes |
All meshes defining the animated mesh.
Definition at line 168 of file SAnimatedMesh.h.
Referenced by addMesh(), getFrameCount(), getMesh(), getMeshBuffer(), getMeshBufferCount(), recalculateBoundingBox(), setDirty(), setHardwareMappingHint(), setMaterialFlag(), and ~SAnimatedMesh().
E_ANIMATED_MESH_TYPE irr::scene::SAnimatedMesh::Type |
The Irrlicht
Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated
on Fri Mar 21 2014 04:40:39 by Doxygen
(1.8.1.2) |