![]() |
Skylicht Engine
|
Simple implementation of the IMesh interface. More...
#include <C:/Projects/skylicht-engine/Projects/Irrlicht/Include/SMesh.h>
Public Member Functions | |
| SMesh () | |
| constructor | |
| virtual | ~SMesh () |
| destructor | |
| virtual void | clear () |
| clean mesh | |
| virtual u32 | getMeshBufferCount () const |
| returns amount of mesh buffers. | |
| virtual IMeshBuffer * | getMeshBuffer (u32 nr) const |
| returns pointer to a mesh buffer | |
| virtual IMeshBuffer * | getMeshBuffer (const video::SMaterial &material) const |
| returns a meshbuffer which fits a material | |
| virtual const core::aabbox3d< f32 > & | getBoundingBox () const |
| returns an axis aligned bounding box | |
| virtual void | setBoundingBox (const core::aabbox3df &box) |
| set user axis aligned bounding box | |
| void | recalculateBoundingBox () |
| recalculates the bounding box | |
| 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 | |
| virtual void | setHardwareMappingHint (E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) |
| set the hardware mapping hint, for driver | |
| virtual void | setDirty (E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) |
| flags the meshbuffer as changed, reloads hardware buffers | |
| Public Member Functions inherited from irr::IReferenceCounted | |
| IReferenceCounted () | |
| Constructor. | |
| virtual | ~IReferenceCounted () |
| Destructor. | |
| void | grab () const |
| Grabs the object. Increments the reference counter by one. | |
| bool | drop () const |
| Drops the object. Decrements the reference counter by one. | |
| s32 | getReferenceCount () const |
| Get the reference count. | |
| const c8 * | getDebugName () const |
| Returns the debug name of the object. | |
Public Attributes | |
| core::array< IMeshBuffer * > | MeshBuffers |
| The meshbuffers of this mesh. | |
| core::aabbox3d< f32 > | BoundingBox |
| The bounding box of this mesh. | |
Additional Inherited Members | |
| Protected Member Functions inherited from irr::IReferenceCounted | |
| void | setDebugName (const c8 *newName) |
| Sets the debug name of the object. | |
Simple implementation of the IMesh interface.
|
inline |
adds a MeshBuffer
The bounding box is not updated automatically.
|
inlinevirtual |
returns an axis aligned bounding box
Implements irr::scene::IMesh.
|
inlinevirtual |
|
inlinevirtual |
returns pointer to a mesh buffer
Implements irr::scene::IMesh.
|
inlinevirtual |
returns amount of mesh buffers.
Implements irr::scene::IMesh.
|
inlinevirtual |
set user axis aligned bounding box
Implements irr::scene::IMesh.
|
inlinevirtual |
flags the meshbuffer as changed, reloads hardware buffers
Implements irr::scene::IMesh.
|
inlinevirtual |
set the hardware mapping hint, for driver
Implements irr::scene::IMesh.
|
inlinevirtual |
sets a flag of all contained materials to a new value
Implements irr::scene::IMesh.