5 #ifndef __S_ANIMATED_MESH_H_INCLUDED__ 6 #define __S_ANIMATED_MESH_H_INCLUDED__ 126 return Meshes[0]->getMeshBufferCount();
135 return Meshes[0]->getMeshBuffer(nr);
147 return Meshes[0]->getMeshBuffer(material);
bool drop() const
Drops the object. Decrements the reference counter by one.
virtual IMeshBuffer * getMeshBuffer(u32 nr) const
returns pointer to a mesh buffer
float f32
32 bit floating point variable.
E_ANIMATED_MESH_TYPE
Possible types of (animated) meshes.
core::array< IMesh * > Meshes
All meshes defining the animated mesh.
Unknown animated mesh type.
virtual f32 getAnimationSpeed() const
Gets the default animation speed of the animated mesh.
E_ANIMATED_MESH_TYPE Type
The type of the mesh.
virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue)
Set a material flag for all meshbuffers of this mesh.
Everything in the Irrlicht Engine can be found in this namespace.
virtual E_ANIMATED_MESH_TYPE getMeshType() const
Returns the type of the animated mesh.
void reset(T x, T y, T z)
Resets the bounding box to a one-point box.
Class which holds the geometry of an object.
void addMesh(IMesh *mesh)
adds a Mesh
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
signed int s32
32 bit signed variable.
Struct for holding a mesh with a single material.
void addInternalBox(const aabbox3d< T > &b)
Adds another bounding box.
f32 FramesPerSecond
Default animation speed of this mesh.
virtual IMeshBuffer * getMeshBuffer(const video::SMaterial &material) const
Returns pointer to a mesh buffer which fits a material.
unsigned int u32
32 bit unsigned variable.
Change both vertex and index mapping to the same value.
virtual const core::aabbox3d< f32 > & getBoundingBox() const
Returns an axis aligned bounding box of the mesh.
virtual IMesh * getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1)
Returns the IMesh interface for a frame.
virtual u32 getMeshBufferCount() const
returns amount of mesh buffers.
void recalculateBoundingBox()
Recalculates the bounding box.
Self reallocating template array (like stl vector) with additional features.
void grab() const
Grabs the object. Increments the reference counter by one.
E_MATERIAL_FLAG
Material flags.
virtual u32 getFrameCount() const
Gets the frame count of the animated mesh.
void setDebugName(const c8 *newName)
Sets the debug name of the object.
Simple implementation of the IAnimatedMesh interface.
Interface for an animated mesh.
virtual void setAnimationSpeed(f32 fps)
Gets the frame count of the animated mesh.
SAnimatedMesh(scene::IMesh *mesh=0, scene::E_ANIMATED_MESH_TYPE type=scene::EAMT_UNKNOWN)
constructor
core::aabbox3d< f32 > Box
The bounding box of this mesh.
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX)
set the hardware mapping hint, for driver
virtual ~SAnimatedMesh()
destructor
Struct for holding parameters for a material renderer.