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>2008-03-03 17:39:02 +0000
committerStijn Buys <ingar@osirion.org>2008-03-03 17:39:02 +0000
commitb0af6f8e14449e8bd49efe94da1041628a549120 (patch)
treeaea4b9f1930af1b89e96d05832bc8559fae0a7f0 /src/render/face.h
parente379b1bfeb231716e07f0e4ae9ef024be9bfd08f (diff)
usable models, target_engine
Diffstat (limited to 'src/render/face.h')
-rw-r--r--src/render/face.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/face.h b/src/render/face.h
index d44b1d0..a0a4d5a 100644
--- a/src/render/face.h
+++ b/src/render/face.h
@@ -16,12 +16,15 @@ namespace render {
/// one face (polygon) of a model
class Face {
public:
- Face(math::Vector3f const & normal);
+ Face(math::Vector3f const & normal, math::Color const *color=0);
~Face();
/// the normal of this face
inline math::Vector3f const & normal() const { return face_normal; };
+ /// the color of this face
+ inline math::Color const *color() const { return face_color; };
+
/// add a vertex to the face
void add_vertex(math::Vector3f const &vertex);
@@ -30,6 +33,7 @@ public:
private:
math::Vector3f face_normal;
+ math::Color *face_color;
std::vector<math::Vector3f *> face_vertex;
};