diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-15 13:02:33 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-15 13:02:33 +0000 |
commit | c3097a768077fa9251a70de10bd29aff3c8553e1 (patch) | |
tree | debfce077e8d16ee8772cf1bb8532975a5e2507a /src/model/triangle.h | |
parent | 862f1dc0ae63b476b620a817bb2ea73d9b35ef3f (diff) |
added parsing of ASE submaterial definitions
Diffstat (limited to 'src/model/triangle.h')
-rw-r--r-- | src/model/triangle.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/model/triangle.h b/src/model/triangle.h index 06a8810..d07f67d 100644 --- a/src/model/triangle.h +++ b/src/model/triangle.h @@ -86,6 +86,16 @@ public: inline math::Vector3f &normal() { return triangle_normal; } + + /// material inde + inline size_t material_index() const { + return triangle_material_index; + } + + /// set material index + inline void set_material_index(const size_t index) { + triangle_material_index = index; + } private: @@ -103,6 +113,7 @@ private: math::Vector3f triangle_normal; bool triangle_detail; + size_t triangle_material_index; }; } |