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>2009-08-16 21:23:47 +0000
committerStijn Buys <ingar@osirion.org>2009-08-16 21:23:47 +0000
commit80aaacbaef16b4eba33428aec268f80e7466cbb1 (patch)
treef157011d8e97d490ec3a9b0e8b28980f091de87b /src/model/face.h
parentd763e294f44eb38b94bf7e2055b77a982b72b7c0 (diff)
minor cleanups, corrected map widget
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];