annotate 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 |
rev |
line source |
nuclear@0
|
1 #ifndef OPENGL_H_
|
nuclear@0
|
2 #define OPENGL_H_
|
nuclear@0
|
3
|
nuclear@0
|
4 #ifdef __APPLE__
|
nuclear@0
|
5 #include <GLUT/glut.h>
|
nuclear@0
|
6 #else
|
nuclear@0
|
7 #include <GL/glut.h>
|
nuclear@0
|
8 #endif
|
nuclear@0
|
9
|
nuclear@0
|
10 /* some helpers */
|
nuclear@0
|
11
|
nuclear@0
|
12 void set_light_position(int idx, float x, float y, float z);
|
nuclear@0
|
13 void set_light_color(int idx, float r, float g, float b);
|
nuclear@0
|
14 void set_light_attenuation(int idx, float constant, float linear, float quad);
|
nuclear@0
|
15
|
nuclear@0
|
16 void set_mtl_diffuse(float r, float g, float b, float a);
|
nuclear@0
|
17 void set_mtl_specular(float r, float g, float b);
|
nuclear@0
|
18 void set_mtl_shininess(float shin);
|
nuclear@0
|
19 void set_mtl_emission(float r, float g, float b);
|
nuclear@0
|
20
|
nuclear@0
|
21 #endif /* OPENGL_H_ */
|