Saga3D API Documentation
1.0-RC4
|
Go to the documentation of this file. 1 #ifndef __SMESH_H_INCLUDED__
2 #define __SMESH_H_INCLUDED__
63 bool hasMeshBufferBBox =
false;
64 for (std::uint32_t i = 0; i <
MeshBuffers.size(); ++i)
69 if (!hasMeshBufferBBox)
71 hasMeshBufferBBox =
true;
82 if (!hasMeshBufferBBox)
virtual const core::aabbox3d< float > & getBoundingBox() const override
returns an axis aligned bounding box
Class which holds the geometry of an object.
virtual void addMeshBuffer(std::unique_ptr< IMeshBuffer > buf) override
adds a MeshBuffer
virtual void setBoundingBox(const core::aabbox3df &box) override
set user axis aligned bounding box
std::vector< std::unique_ptr< IMeshBuffer > > MeshBuffers
The meshbuffers of this mesh.
core::aabbox3d< float > BoundingBox
The bounding box of this mesh.
Struct for holding a mesh with a single material.
virtual IMeshBuffer & getMeshBuffer(std::uint32_t nr=0) override
returns pointer to a mesh buffer
bool isEmpty() const
Check if the box is empty.
void recalculateBoundingBox()
recalculates the bounding box
SGPUResource::HandleType ShaderBufferHandle
void reset(T x, T y, T z)
Resets the bounding box to a one-point box.
virtual E_MESH_TYPE getMeshType() const override
virtual std::uint32_t getMeshBufferCount() const override
returns amount of mesh buffers.
void addInternalBox(const aabbox3d< T > &b)
Adds another bounding box.
virtual ~SMesh()
destructor
virtual void clear()
clean mesh
video::ShaderBufferHandle GPUMeshBuffer
GPU mesh buffer.
Simple implementation of the IMesh interface.