Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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;
};
}