44 explicit Model(
const std::string& filename,
bool flipUVs =
false);
61 explicit Model(std::vector<uint8_t>
const& fileBytes,
bool flipUVs =
false);
83 const std::vector<std::shared_ptr<Mesh>>&
Meshes()
const;
88 const std::vector<std::shared_ptr<ModelMaterial>>&
Materials()
const;
91 std::vector<std::shared_ptr<Mesh>> mMeshes;
92 std::vector<std::shared_ptr<ModelMaterial>> mMaterials;
bool HasMeshes() const
Checks whether this model contains any meshes.
Model & operator=(const Model &)=default
bool HasMaterials() const
Checks whether this model contains any materials.
Model(const std::string &filename, bool flipUVs=false)
Constructs a model from a file.
Model(const Model &)=default
const std::vector< std::shared_ptr< ModelMaterial > > & Materials() const
Returns the list of materials belonging to this model.
const std::vector< std::shared_ptr< Mesh > > & Meshes() const
Returns the list of meshes belonging to this model.
Model & operator=(Model &&)=default
Represents a single material imported from a 3D model file.