diff options
Diffstat (limited to 'src/render/gl.cc')
-rw-r--r-- | src/render/gl.cc | 14 |
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(); } |