Colobot
Public Member Functions | List of all members
Gfx::CModel Class Reference

3D model saved in model file More...

#include <model.h>

Public Member Functions

int GetMeshCount () const
 Returns mesh count.
 
CModelMeshGetMesh (const std::string &name)
 Return a mesh with given name.
 
const CModelMeshGetMesh (const std::string &name) const
 Return a mesh with given name.
 
void AddMesh (const std::string &name, CModelMesh &&mesh)
 Add new mesh with given name.
 
std::vector< std::string > GetMeshNames () const
 Returns list of mesh names.
 
const std::vector< ModelCrashSphere > & GetCrashSpheres () const
 Returns the model's crash spheres.
 
void AddCrashSphere (const ModelCrashSphere &crashSphere)
 Adds a new crash sphere.
 
int GetCrashSphereCount () const
 Returns number of crash spheres.
 
const ModelShadowSpotGetShadowSpot () const
 Returns the shadow spot associated with model (assumes it is present)
 
void SetShadowSpot (const ModelShadowSpot &shadowSpot)
 Sets the shadow spot associated with model.
 
bool HasShadowSpot () const
 Returns whether there is shadow spot.
 
const Math::SphereGetCameraCollisionSphere () const
 Returns the optional shadow spot associated with model (assumes it is present)
 
void SetCameraCollisionSphere (const Math::Sphere &sphere)
 Sets the shadow spot associated with model.
 
bool HasCameraCollisionSphere () const
 Returns whether there is camera collision sphere.
 

Detailed Description

3D model saved in model file


The documentation for this class was generated from the following files: