 |
Irrlicht 3D Engine
|
|
Go to the documentation of this file.
5 #ifndef __S_MESH_H_INCLUDED__
6 #define __S_MESH_H_INCLUDED__
111 MeshBuffers[i]->getMaterial().setFlag(flag, newvalue);
void grab() const
Grabs the object. Increments the reference counter by one.
Simple implementation of the IMesh interface.
virtual void setBoundingBox(const core::aabbox3df &box)
set user axis aligned bounding box
core::array< IMeshBuffer * > MeshBuffers
The meshbuffers of this mesh.
E_MATERIAL_FLAG
Material flags.
void reset(T x, T y, T z)
Resets the bounding box to a one-point box.
void recalculateBoundingBox()
recalculates the bounding box
bool drop() const
Drops the object. Decrements the reference counter by one.
void setDebugName(const c8 *newName)
Sets the debug name of the object.
@ EBT_VERTEX_AND_INDEX
Change both vertex and index mapping to the same value.
virtual const core::aabbox3d< f32 > & getBoundingBox() const
returns an axis aligned bounding box
signed int s32
32 bit signed variable.
core::aabbox3d< f32 > BoundingBox
The bounding box of this mesh.
void addInternalBox(const aabbox3d< T > &b)
Adds another bounding box.
virtual void clear()
clean mesh
Class which holds the geometry of an object.
virtual ~SMesh()
destructor
virtual IMeshBuffer * getMeshBuffer(const video::SMaterial &material) const
returns a meshbuffer which fits a material
virtual IMeshBuffer * getMeshBuffer(u32 nr) const
returns pointer to a mesh buffer
Everything in the Irrlicht Engine can be found in this namespace.
virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX)
flags the meshbuffer as changed, reloads hardware buffers
virtual u32 getMeshBufferCount() const
returns amount of mesh buffers.
unsigned int u32
32 bit unsigned variable.
void addMeshBuffer(IMeshBuffer *buf)
adds a MeshBuffer
virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue)
sets a flag of all contained materials to a new value
Self reallocating template array (like stl vector) with additional features.
Struct for holding parameters for a material renderer.
Struct for holding a mesh with a single material.
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX)
set the hardware mapping hint, for driver