Saga3D API Documentation
1.0-RC4
|
Class which holds the geometry of an object. More...
#include <IMesh.h>
Public Member Functions | |
void | setID (const ID id) |
ID | getID () const |
virtual void | addMeshBuffer (std::unique_ptr< IMeshBuffer > buf)=0 |
adds a MeshBuffer More... | |
virtual std::uint32_t | getMeshBufferCount () const =0 |
Get the amount of mesh buffers. More... | |
virtual IMeshBuffer & | getMeshBuffer (std::uint32_t nr=0)=0 |
Get pointer to a mesh buffer. More... | |
virtual const core::aabbox3d< float > & | getBoundingBox () const =0 |
Get an axis aligned bounding box of the mesh. More... | |
virtual void | setBoundingBox (const core::aabbox3df &box)=0 |
Set user-defined axis aligned bounding box. More... | |
virtual E_MESH_TYPE | getMeshType () const =0 |
Protected Attributes | |
ID | MeshID = INVALID_ID |
ID of this mesh. More... | |
Class which holds the geometry of an object.
An IMesh is nothing more than a collection of some mesh buffers (IMeshBuffer). SMesh is a simple implementation of an IMesh. A mesh is usually added to an IMeshSceneNode in order to be rendered.
|
pure virtual |
adds a MeshBuffer
The bounding box is not updated automatically.
Implemented in saga::scene::SAnimatedMesh, and saga::scene::SMesh.
|
pure virtual |
Get an axis aligned bounding box of the mesh.
Implemented in saga::scene::SMesh, and saga::scene::SAnimatedMesh.
|
pure virtual |
Get pointer to a mesh buffer.
nr | Zero based index of the mesh buffer. The maximum value is getMeshBufferCount() - 1; |
Implemented in saga::scene::SAnimatedMesh, and saga::scene::SMesh.
|
pure virtual |
Get the amount of mesh buffers.
Implemented in saga::scene::SMesh, and saga::scene::SAnimatedMesh.
|
pure virtual |
Implemented in saga::scene::SAnimatedMesh, and saga::scene::SMesh.
|
pure virtual |
Set user-defined axis aligned bounding box.
box | New bounding box to use for the mesh. |
Implemented in saga::scene::SMesh, and saga::scene::SAnimatedMesh.
|
protected |