labyrinth
view src/opengl.h @ 1:d46f0947a96d
added helpful comment
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 06 Feb 2015 00:34:04 +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_ */