arsa
2.7
|
Simple implementation of the IMesh interface. More...
#include <SMesh.h>
Public Member Functions | |
SMesh () | |
constructor More... | |
virtual | ~SMesh () |
destructor More... | |
virtual void | clear () |
clean mesh More... | |
virtual u32 | getMeshBufferCount () const _IRR_OVERRIDE_ |
returns amount of mesh buffers. More... | |
virtual IMeshBuffer * | getMeshBuffer (u32 nr) const _IRR_OVERRIDE_ |
returns pointer to a mesh buffer More... | |
virtual IMeshBuffer * | getMeshBuffer (const video::SMaterial &material) const _IRR_OVERRIDE_ |
returns a meshbuffer which fits a material More... | |
virtual const core::aabbox3d< f32 > & | getBoundingBox () const _IRR_OVERRIDE_ |
returns an axis aligned bounding box More... | |
virtual void | setBoundingBox (const core::aabbox3df &box) _IRR_OVERRIDE_ |
set user axis aligned bounding box More... | |
void | recalculateBoundingBox () |
recalculates the bounding box More... | |
void | addMeshBuffer (IMeshBuffer *buf) |
adds a MeshBuffer More... | |
virtual void | setMaterialFlag (video::E_MATERIAL_FLAG flag, bool newvalue) _IRR_OVERRIDE_ |
sets a flag of all contained materials to a new value More... | |
virtual void | setHardwareMappingHint (E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ |
set the hardware mapping hint, for driver More... | |
virtual void | setDirty (E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ |
flags the meshbuffer as changed, reloads hardware buffers More... | |
Public Member Functions inherited from irr::scene::IMesh | |
virtual E_ANIMATED_MESH_TYPE | getMeshType () const |
Returns the type of the meshes. More... | |
Public Member Functions inherited from irr::IReferenceCounted | |
IReferenceCounted () | |
Constructor. More... | |
virtual | ~IReferenceCounted () |
Destructor. More... | |
void | grab () const |
Grabs the object. Increments the reference counter by one. More... | |
bool | drop () const |
Drops the object. Decrements the reference counter by one. More... | |
s32 | getReferenceCount () const |
Get the reference count. More... | |
const c8 * | getDebugName () const |
Returns the debug name of the object. More... | |
Public Attributes | |
core::array< IMeshBuffer * > | MeshBuffers |
The meshbuffers of this mesh. More... | |
core::aabbox3d< f32 > | BoundingBox |
The bounding box of this mesh. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from irr::IReferenceCounted | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. More... | |
|
inline |
constructor
Definition at line 21 of file SMesh.h.
|
inlinevirtual |
destructor
Definition at line 29 of file SMesh.h.
|
inline |
adds a MeshBuffer
The bounding box is not updated automatically.
Definition at line 111 of file SMesh.h.
clean mesh
Definition at line 37 of file SMesh.h.
|
inlinevirtual |
returns an axis aligned bounding box
Implements irr::scene::IMesh.
Definition at line 72 of file SMesh.h.
|
inlinevirtual |
returns pointer to a mesh buffer
Implements irr::scene::IMesh.
Definition at line 53 of file SMesh.h.
|
inlinevirtual |
returns a meshbuffer which fits a material
reverse search
Implements irr::scene::IMesh.
Definition at line 60 of file SMesh.h.
|
inlinevirtual |
returns amount of mesh buffers.
Implements irr::scene::IMesh.
Definition at line 47 of file SMesh.h.
|
inline |
recalculates the bounding box
Definition at line 84 of file SMesh.h.
|
inlinevirtual |
set user axis aligned bounding box
Implements irr::scene::IMesh.
Definition at line 78 of file SMesh.h.
|
inlinevirtual |
flags the meshbuffer as changed, reloads hardware buffers
Implements irr::scene::IMesh.
Definition at line 135 of file SMesh.h.
|
inlinevirtual |
set the hardware mapping hint, for driver
Implements irr::scene::IMesh.
Definition at line 128 of file SMesh.h.
|
inlinevirtual |
sets a flag of all contained materials to a new value
Implements irr::scene::IMesh.
Definition at line 121 of file SMesh.h.
core::aabbox3d<f32> irr::scene::SMesh::BoundingBox |
core::array<IMeshBuffer*> irr::scene::SMesh::MeshBuffers |