labyrinth

view src/opengl.h @ 0:8ba79034e8a6

labyrinth example initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 15 Jan 2015 14:59:38 +0200
parents
children 45b91185b298
line source
1 #ifndef OPENGL_H_
2 #define OPENGL_H_
4 #ifdef __APPLE__
5 #include <GLUT/glut.h>
6 #else
7 #include <GL/glut.h>
8 #endif
10 /* some helpers */
12 void set_light_position(int idx, float x, float y, float z);
13 void set_light_color(int idx, float r, float g, float b);
14 void set_light_attenuation(int idx, float constant, float linear, float quad);
16 void set_mtl_diffuse(float r, float g, float b, float a);
17 void set_mtl_specular(float r, float g, float b);
18 void set_mtl_shininess(float shin);
19 void set_mtl_emission(float r, float g, float b);
21 #endif /* OPENGL_H_ */