labyrinth

view src/opengl.h @ 2:e3b9707504df

increased the field of view
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 27 Apr 2015 05:37:17 +0300
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_ */