Lugdunum  0.1.0
Mesh.inl
Go to the documentation of this file.
1 inline void Mesh::PrimitiveSet::setMaterial(Resource::SharedPtr<Render::Material> material) {
2  _material = material;
3 }
4 
5 inline void Mesh::PrimitiveSet::setMode(Render::Mesh::PrimitiveSet::Mode mode) {
6  _mode = mode;
7 }
8 
9 inline Render::Mesh::PrimitiveSet::Mode Mesh::PrimitiveSet::getMode() const {
10  return _mode;
11 }
12 
13 inline Resource::SharedPtr<Render::Material> Mesh::PrimitiveSet::getMaterial() const {
14  return _material;
15 }
16 
17 inline const std::vector<Render::Mesh::PrimitiveSet::Attribute>& Mesh::PrimitiveSet::getAttributes() const {
18  return _attributes;
19 }
20 
21 inline Mesh::PrimitiveSet* Mesh::addPrimitiveSet() {
22  _primitiveSets.push_back(Mesh::PrimitiveSet());
23  return &_primitiveSets.back();
24 }
25 
26 inline void Mesh::setName(const std::string& name) {
27  _name = name;
28 }
Dummy class for a shared pointer.
Definition: Resource.hpp:66
Mode
Type of the primitive set, defaults to Triangles.
Definition: Mesh.hpp:59