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);
virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_
flags the meshbuffer as changed, reloads hardware buffers
bool drop() const
Drops the object. Decrements the reference counter by one.
float f32
32 bit floating point variable.
E_ANIMATED_MESH_TYPE
Possible types of meshes.
core::array< IMesh * > Meshes
All meshes defining the animated mesh.
Unknown animated mesh type.
E_ANIMATED_MESH_TYPE Type
The type of the mesh.
Everything in the Irrlicht Engine can be found in this namespace.
void reset(T x, T y, T z)
Resets the bounding box to a one-point box.
virtual IMesh * getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1) _IRR_OVERRIDE_
Returns the IMesh interface for a frame.
Class which holds the geometry of an object.
void addMesh(IMesh *mesh)
adds a Mesh
virtual u32 getMeshBufferCount() const _IRR_OVERRIDE_
returns amount of mesh buffers.
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_
set the hardware mapping hint, for driver
virtual void setAnimationSpeed(f32 fps) _IRR_OVERRIDE_
Gets the frame count of the animated mesh.
virtual IMeshBuffer * getMeshBuffer(u32 nr) const _IRR_OVERRIDE_
returns pointer to a mesh buffer
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 f32 getAnimationSpeed() const _IRR_OVERRIDE_
Gets the default animation speed of the animated mesh.
virtual IMeshBuffer * getMeshBuffer(const video::SMaterial &material) const _IRR_OVERRIDE_
Returns pointer to a mesh buffer which fits a material.
unsigned int u32
32 bit unsigned variable.
virtual const core::aabbox3d< f32 > & getBoundingBox() const _IRR_OVERRIDE_
Returns an axis aligned bounding box of the mesh.
Change both vertex and index mapping to the same value.
virtual void setBoundingBox(const core::aabbox3df &box) _IRR_OVERRIDE_
set user axis aligned bounding box
virtual u32 getFrameCount() const _IRR_OVERRIDE_
Gets the frame count of the animated mesh.
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.
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
virtual E_ANIMATED_MESH_TYPE getMeshType() const _IRR_OVERRIDE_
Returns the type of the animated mesh.
E_MATERIAL_FLAG
Material flags.
virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) _IRR_OVERRIDE_
Set a material flag for all meshbuffers of this mesh.
void setDebugName(const c8 *newName)
Sets the debug name of the object.
GLuint GLuint GLsizei GLenum type
Simple implementation of the IAnimatedMesh interface.
Interface for an 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 ~SAnimatedMesh()
destructor
Struct for holding parameters for a material renderer.