diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-05 18:21:39 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-05 18:21:39 +0000 |
commit | 4f6b27b58bfae9ce860a005edf890d8f1136a85f (patch) | |
tree | a3b4f7b108173d8cba0df0c66768d0a9ebf61047 /src/render/gl.h | |
parent | c326c5d31e710cd22f4d5047252da2bfc77da1f1 (diff) |
OpenGL lighting
Diffstat (limited to 'src/render/gl.h')
-rw-r--r-- | src/render/gl.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/render/gl.h b/src/render/gl.h index 0513410..d5d6418 100644 --- a/src/render/gl.h +++ b/src/render/gl.h @@ -7,13 +7,11 @@ #ifndef __INCLUDED_RENDER_GL_H__ #define __INCLUDED_RENDER_GL_H__ -// project headers +#include <GL/gl.h> + #include "math/vector3f.h" #include "math/color.h" -// OpenGL headers -#include <GL/gl.h> - namespace render { /// wrapper namespace for OpenGL operations @@ -99,6 +97,11 @@ namespace gl void vertex(const math::Vector3f& vector); void vertex(const float x, const float y, const float z); + + /// glNormal + void normal(const math::Vector3f & vector); + + void normal(const float x, const float y, const float z); /// multiply the current matrix by a general rotation matrix /** @param angle The angle of the rotation, in degrees [0-360] |