diff options
-rw-r--r-- | tests/hello_world_gles.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/hello_world_gles.c b/tests/hello_world_gles.c index 4f2cb45c..aa0fc02d 100644 --- a/tests/hello_world_gles.c +++ b/tests/hello_world_gles.c @@ -46,17 +46,25 @@ #include <string.h> #include <sys/time.h> #include <unistd.h> +#ifdef __APPLE__ +#include <OpenGL/gl.h> +#include <Glut/glut.h> +#else #include <GL/gl.h> #include <GL/glut.h> - -#ifndef HAVE_BUILTIN_SINCOS -#include "sincos.h" #endif #define STRIPS_PER_TOOTH 7 #define VERTICES_PER_TOOTH 34 #define GEAR_VERTEX_STRIDE 6 +static void +sincos (double a, double *s, double *c) +{ + *s = sin (a); + *c = cos (a); +} + /** * Struct describing the vertices in triangle strip */ |