![]() |
Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
|
Simple implementation of the IMesh interface. More...
#include <duckcpp/core/engine/SMesh.hpp>


Public Member Functions | |
| SMesh () | |
| constructor | |
| virtual | ~SMesh () |
| destructor | |
| virtual void | clear () |
| clean mesh | |
| virtual dcpp::uint32_kt | getMeshBufferCount () const override |
| returns amount of mesh buffers. | |
| virtual IMeshBuffer * | getMeshBuffer (dcpp::uint32_kt nr) const override |
| returns pointer to a mesh buffer | |
| virtual IMeshBuffer * | getMeshBuffer (const dcpp::video::SMaterial &material) const override |
| returns a meshbuffer which fits a material | |
| virtual const dcpp::nub::aabbox3df & | getBoundingBox () const override |
| returns an axis aligned bounding box | |
| virtual void | setBoundingBox (const dcpp::nub::aabbox3df &box) override |
| set user axis aligned bounding box | |
| void | recalculateBoundingBox () |
| recalculates the bounding box | |
| void | addMeshBuffer (IMeshBuffer *buf) |
| adds a MeshBuffer | |
| virtual void | setMaterialFlag (dcpp::video::E_MATERIAL_FLAG flag, bool newvalue) override |
| 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) override |
| set the hardware mapping hint, for driver | |
| virtual void | setDirty (E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) override |
| flags the meshbuffer as changed, reloads hardware buffers | |
Public Member Functions inherited from dcpp::scene::IMesh | |
| virtual E_ANIMATED_MESH_TYPE | getMeshType () const |
| Returns the type of the meshes. | |
Public Member Functions inherited from dcpp::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. | |
| dcpp::int32_kt | getReferenceCount () const |
| Get the reference count. | |
| const dcpp::char_kt * | getDebugName () const |
| Returns the debug name of the object. | |
Public Attributes | |
| dcpp::nub::array< IMeshBuffer * > | MeshBuffers |
| The meshbuffers of this mesh. | |
| dcpp::nub::aabbox3df | BoundingBox |
| The bounding box of this mesh. | |
Additional Inherited Members | |
Protected Member Functions inherited from dcpp::IReferenceCounted | |
| void | setDebugName (const dcpp::char_kt *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.
|
inlineoverridevirtual |
returns an axis aligned bounding box
Implements dcpp::scene::IMesh.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
returns pointer to a mesh buffer
Implements dcpp::scene::IMesh.
|
inlineoverridevirtual |
returns amount of mesh buffers.
Implements dcpp::scene::IMesh.
|
inlineoverridevirtual |
set user axis aligned bounding box
Implements dcpp::scene::IMesh.
|
inlineoverridevirtual |
flags the meshbuffer as changed, reloads hardware buffers
Implements dcpp::scene::IMesh.
|
inlineoverridevirtual |
set the hardware mapping hint, for driver
Implements dcpp::scene::IMesh.
|
inlineoverridevirtual |
sets a flag of all contained materials to a new value
Implements dcpp::scene::IMesh.