labyrinth

annotate src/opengl.h @ 7:b557812c45db

generating the android (ant) project stuff from the makefile
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 04 May 2015 02:46:35 +0300
parents 8ba79034e8a6
children
rev   line source
nuclear@0 1 #ifndef OPENGL_H_
nuclear@0 2 #define OPENGL_H_
nuclear@0 3
nuclear@3 4 #ifdef __ANDROID__
nuclear@3 5 #include <GLES/gl.h>
nuclear@3 6 #include <GLES/glext.h>
nuclear@3 7 #include <EGL/egl.h>
nuclear@3 8
nuclear@3 9 #define GL_MOBILE
nuclear@3 10
nuclear@0 11 #else
nuclear@3 12
nuclear@3 13 #include <GL/glew.h>
nuclear@3 14
nuclear@3 15 #define GL_DESKTOP
nuclear@3 16
nuclear@3 17 #endif /* not __ANDROID__ */
nuclear@0 18
nuclear@0 19 /* some helpers */
nuclear@0 20
nuclear@0 21 void set_light_position(int idx, float x, float y, float z);
nuclear@0 22 void set_light_color(int idx, float r, float g, float b);
nuclear@0 23 void set_light_attenuation(int idx, float constant, float linear, float quad);
nuclear@0 24
nuclear@0 25 void set_mtl_diffuse(float r, float g, float b, float a);
nuclear@0 26 void set_mtl_specular(float r, float g, float b);
nuclear@0 27 void set_mtl_shininess(float shin);
nuclear@0 28 void set_mtl_emission(float r, float g, float b);
nuclear@0 29
nuclear@3 30 #ifdef GL_MOBILE
nuclear@3 31 #define GLDEF
nuclear@3 32 #include "sanegl.h"
nuclear@3 33 #endif
nuclear@3 34
nuclear@0 35 #endif /* OPENGL_H_ */