labyrinth
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/opengl.h Thu Jan 15 14:59:38 2015 +0200 1.3 @@ -0,0 +1,21 @@ 1.4 +#ifndef OPENGL_H_ 1.5 +#define OPENGL_H_ 1.6 + 1.7 +#ifdef __APPLE__ 1.8 +#include <GLUT/glut.h> 1.9 +#else 1.10 +#include <GL/glut.h> 1.11 +#endif 1.12 + 1.13 +/* some helpers */ 1.14 + 1.15 +void set_light_position(int idx, float x, float y, float z); 1.16 +void set_light_color(int idx, float r, float g, float b); 1.17 +void set_light_attenuation(int idx, float constant, float linear, float quad); 1.18 + 1.19 +void set_mtl_diffuse(float r, float g, float b, float a); 1.20 +void set_mtl_specular(float r, float g, float b); 1.21 +void set_mtl_shininess(float shin); 1.22 +void set_mtl_emission(float r, float g, float b); 1.23 + 1.24 +#endif /* OPENGL_H_ */