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-05 18:21:39 +0000
committerStijn Buys <ingar@osirion.org>2008-03-05 18:21:39 +0000
commit4f6b27b58bfae9ce860a005edf890d8f1136a85f (patch)
treea3b4f7b108173d8cba0df0c66768d0a9ebf61047 /src/render/gl.cc
parentc326c5d31e710cd22f4d5047252da2bfc77da1f1 (diff)
OpenGL lighting
Diffstat (limited to 'src/render/gl.cc')
-rw-r--r--src/render/gl.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/render/gl.cc b/src/render/gl.cc
index 6eb91b1..682bfc8 100644
--- a/src/render/gl.cc
+++ b/src/render/gl.cc
@@ -4,12 +4,10 @@
the terms of the GNU General Public License version 2
*/
-// project includes
-#include "render/gl.h"
-
-// system includes
#include "GL/gl.h"
+#include "render/gl.h"
+
using math::Vector3f;
using math::Color;
@@ -130,6 +128,14 @@ void vertex(const float x, const float y, const float z) {
glVertex3f(x, y, z);
}
+void normal(const Vector3f & vector) {
+ glNormal3fv(vector.coord);
+}
+
+void normal(const float x, const float y, const float z) {
+ glNormal3f(x, y, z);
+}
+
void push() {
glPushMatrix();
}