From 80aaacbaef16b4eba33428aec268f80e7466cbb1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 16 Aug 2009 21:23:47 +0000 Subject: minor cleanups, corrected map widget --- src/model/face.h | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'src/model/face.h') 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]; -- cgit v1.2.3