5 #ifndef __S_MESH_H_INCLUDED__ 6 #define __S_MESH_H_INCLUDED__ 86 bool hasMeshBufferBBox =
false;
92 if ( !hasMeshBufferBBox )
94 hasMeshBufferBBox =
true;
105 if ( !hasMeshBufferBBox )
124 MeshBuffers[i]->getMaterial().setFlag(flag, newvalue);
bool drop() const
Drops the object. Decrements the reference counter by one.
virtual IMeshBuffer * getMeshBuffer(u32 nr) const _IRR_OVERRIDE_
returns pointer to a mesh buffer
virtual void clear()
clean mesh
core::aabbox3d< f32 > BoundingBox
The bounding box of this mesh.
virtual u32 getMeshBufferCount() const _IRR_OVERRIDE_
returns amount of mesh buffers.
virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_
flags the meshbuffer as changed, reloads hardware buffers
void recalculateBoundingBox()
recalculates the bounding box
Everything in the Irrlicht Engine can be found in this namespace.
Simple implementation of the IMesh interface.
core::array< IMeshBuffer * > MeshBuffers
The meshbuffers of this 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.
virtual void setBoundingBox(const core::aabbox3df &box) _IRR_OVERRIDE_
set user axis aligned bounding box
virtual IMeshBuffer * getMeshBuffer(const video::SMaterial &material) const _IRR_OVERRIDE_
returns a meshbuffer which fits a material
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.
unsigned int u32
32 bit unsigned variable.
Change both vertex and index mapping to the same value.
virtual ~SMesh()
destructor
virtual const core::aabbox3d< f32 > & getBoundingBox() const _IRR_OVERRIDE_
returns an axis aligned bounding box
GLenum GLuint GLenum GLsizei const GLchar * buf
virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) _IRR_OVERRIDE_
sets a flag of all contained materials to a new value
void addMeshBuffer(IMeshBuffer *buf)
adds a MeshBuffer
Self reallocating template array (like stl vector) with additional features.
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
bool isEmpty() const
Check if the box is empty.
E_MATERIAL_FLAG
Material flags.
void setDebugName(const c8 *newName)
Sets the debug name of the object.
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_
set the hardware mapping hint, for driver
Struct for holding parameters for a material renderer.