5#include <unordered_map>
42 Model(
const std::string& filepath,
const bool custom);
44 Model(
const double height,
const std::string& texture);
48 static const Model&
GetModel(
const std::string& filepath,
const bool custom);
49 static Model GetModel(
const double height,
const std::string& texture);
70 const std::vector<FaceDescriptor>&
GetFaces()
const;
71 std::vector<FaceDescriptor>&
GetFaces();
82 std::vector<FaceDescriptor>
faces;
const std::set< AABB > & GetColliders() const
Model & operator+=(const Model &m)
void SetColliders(const std::set< AABB > &colliders_)
static std::unordered_map< std::string, Model > cached_models
std::map< std::string, std::string > textures_variables
const std::vector< FaceDescriptor > & GetFaces() const
std::map< std::string, std::pair< int, int > > textures_base_size
std::vector< FaceDescriptor > faces
static const Model & GetModel(const std::string &filepath, const bool custom)
std::set< AABB > colliders
friend Model operator+(Model m1, const Model &m2)
bool IsSame(const Model &other) const
Compare two models.
Renderer::FaceTransformation transformations
std::vector< bool > use_tintindexes
Orientation cullface_direction
std::vector< std::string > texture_names