30 #ifndef H_DC_MODEL_INCLUDED
31 #define H_DC_MODEL_INCLUDED
33 #include <Dynacoe/Entity.h>
34 #include <Dynacoe/Modules/Assets.h>
44 Model(
const std::string & str) : Asset(str){}
80 std::vector<Mesh *> meshes;
81 std::vector<Material *> materials;
3D object defined by triangle primitives.
Definition: Mesh.h:50
void AddSection()
Adds a new section of the Model. A Section includes a Mesh and a Material.
Mesh & SectionMesh(uint32_t)
Returns the Mesh of the given section.
Material & SectionMaterial(uint32_t)
Returns the Material of the given section.
Entity::ID Create()
creates an Entity with many children that, if Draw()n, will express the Model in its entirety ...
void Clear()
Removes all Sections.
A 3D object as a collection of meshes and materials.
Definition: Model.h:42
Defines how an AspectMesh is visualized.
Definition: Material.h:44
uint32_t GetSectionCount() const
Returns the number of sections that belong to the Model.
Uniquely identifies an Entity.
Definition: Entity.h:67