libgoatvr

changeset 23:0fea7c2b25d7

compiles on osx, no further testing
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 12 Jan 2015 08:59:32 +0200
parents bd37285ba5b6
children d659cbedde1d
files src/mesh.c src/opengl.h
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/src/mesh.c	Mon Jan 12 07:34:30 2015 +0200
     1.2 +++ b/src/mesh.c	Mon Jan 12 08:59:32 2015 +0200
     1.3 @@ -23,9 +23,17 @@
     1.4  static void (*glBindBuffer)(GLenum, GLuint);
     1.5  #else
     1.6  #ifndef GL_GLEXT_PROTOTYPES
     1.7 +
     1.8 +#ifndef GLAPI
     1.9 +#define GLAPI
    1.10 +#endif
    1.11 +#ifndef APIENTRY
    1.12 +#define APIENTRY
    1.13 +#endif
    1.14 +
    1.15  GLAPI void APIENTRY glGenBuffers(GLsizei, GLuint*);
    1.16 -GLAPI void APIENTRY glDeleteBuffers(GLsizei, GLuint*);
    1.17 -GLAPI void APIENTRY glBufferData(GLenum, unsigned int, const GLvoid*, GLenum);
    1.18 +GLAPI void APIENTRY glDeleteBuffers(GLsizei, const GLuint*);
    1.19 +GLAPI void APIENTRY glBufferData();
    1.20  GLAPI void APIENTRY glBindBuffer(GLenum, GLuint);
    1.21  #endif
    1.22  #endif
     2.1 --- a/src/opengl.h	Mon Jan 12 07:34:30 2015 +0200
     2.2 +++ b/src/opengl.h	Mon Jan 12 08:59:32 2015 +0200
     2.3 @@ -8,6 +8,7 @@
     2.4  
     2.5  #ifdef __APPLE__
     2.6  #include <OpenGL/gl.h>
     2.7 +#include <OpenGL/glext.h>
     2.8  #else
     2.9  #include <GL/gl.h>
    2.10  #endif