Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-10-15 13:02:33 +0000
committerStijn Buys <ingar@osirion.org>2010-10-15 13:02:33 +0000
commitc3097a768077fa9251a70de10bd29aff3c8553e1 (patch)
treedebfce077e8d16ee8772cf1bb8532975a5e2507a /src/model/triangle.h
parent862f1dc0ae63b476b620a817bb2ea73d9b35ef3f (diff)
added parsing of ASE submaterial definitions
Diffstat (limited to 'src/model/triangle.h')
-rw-r--r--src/model/triangle.h11
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;
};
}