22 #include "graphics/model/model_crash_sphere.h" 23 #include "graphics/model/model_mesh.h" 24 #include "graphics/model/model_shadow_spot.h" 26 #include "math/sphere.h" 31 #include <boost/optional.hpp> 76 std::map<std::string, CModelMesh> m_meshes;
77 std::vector<ModelCrashSphere> m_crashSpheres;
78 boost::optional<ModelShadowSpot> m_shadowSpot;
79 boost::optional<Math::Sphere> m_cameraCollisionSphere;
const ModelShadowSpot & GetShadowSpot() const
Returns the shadow spot associated with model (assumes it is present)
Definition: model.cpp:70
3D model saved in model file
Definition: model.h:40
void SetShadowSpot(const ModelShadowSpot &shadowSpot)
Sets the shadow spot associated with model.
Definition: model.cpp:75
void SetCameraCollisionSphere(const Math::Sphere &sphere)
Sets the shadow spot associated with model.
Definition: model.cpp:105
int GetMeshCount() const
Returns mesh count.
Definition: model.cpp:28
void AddCrashSphere(const ModelCrashSphere &crashSphere)
Adds a new crash sphere.
Definition: model.cpp:90
bool HasCameraCollisionSphere() const
Returns whether there is camera collision sphere.
Definition: model.cpp:110
Crash sphere data as saved in model file.
Definition: model_crash_sphere.h:31
const std::vector< ModelCrashSphere > & GetCrashSpheres() const
Returns the model's crash spheres.
Definition: model.cpp:85
Mesh data saved in model file.
Definition: model_mesh.h:35
void AddMesh(const std::string &name, CModelMesh &&mesh)
Add new mesh with given name.
Definition: model.cpp:55
bool HasShadowSpot() const
Returns whether there is shadow spot.
Definition: model.cpp:80
Namespace for (new) graphics code.
Definition: app.h:49
int GetCrashSphereCount() const
Returns number of crash spheres.
Definition: model.cpp:95
CModelMesh * GetMesh(const std::string &name)
Return a mesh with given name.
Definition: model.cpp:33
const Math::Sphere & GetCameraCollisionSphere() const
Returns the optional shadow spot associated with model (assumes it is present)
Definition: model.cpp:100
Shadow spot data as saved in model file.
Definition: model_shadow_spot.h:29
std::vector< std::string > GetMeshNames() const
Returns list of mesh names.
Definition: model.cpp:60