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/face.h')
-rw-r--r--src/model/face.h31
1 files changed, 23 insertions, 8 deletions
diff --git a/src/model/face.h b/src/model/face.h
index 8c75522..725f798 100644
--- a/src/model/face.h
+++ b/src/model/face.h
@@ -73,28 +73,43 @@ public:
}
/// indidcates if this plane was generated from a detail brush
- inline bool & detail()
+ inline bool detail() const
{
return face_detail;
}
/// surface flags
- inline unsigned int & surface_flags()
+ inline unsigned int surface_flags() const
{
return face_surface_flags;
}
- /// return texture transformation vectors
- /// @param index 0 <= i < 2
- inline math::Vector3f &tex_vec(size_t index) { return face_tex_vec[index]; }
+ /**
+ * @brief return texture transformation vectors
+ * @param index 0 <= i < 2
+ */
+ inline const math::Vector3f &tex_vec(size_t index) {
+ return face_tex_vec[index];
+ }
/// return texture shift
- inline math::Vector2f &tex_shift() { return face_tex_shift; }
-
+ inline const math::Vector2f &tex_shift() { return face_tex_shift; }
inline void set_material(Material *material) { face_material = material; }
-
+ inline void set_detail(const bool detail = true) { face_detail = detail; }
+
+ inline void set_surface_flags(const unsigned int flags) { face_surface_flags = flags; }
+
+ /**
+ * @brief return texture transformation vectors
+ * @param index 0 <= i < 2
+ */
+ inline math::Vector3f &get_tex_vec(size_t index) { return face_tex_vec[index]; }
+
+ /// return texture shift
+ inline math::Vector2f &get_tex_shift() { return face_tex_shift; }
+
private:
math::Vector3f face_normal;
math::Vector3f face_point[3];