Some hack to get OSX gl to build

This commit is contained in:
Roger Hughston 2006-02-16 20:38:23 +00:00
parent 524d41e92e
commit f0e9f34908
3 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
dtoolutil:c dtoolbase:c dtool:m
dtoolutil:c dtoolbase:c dtool:m prc:c
#define USE_PACKAGES gl cggl
// Most of the files here are not actually compiled into anything;
// they're just included by various other directories.

View File

@ -59,6 +59,13 @@ typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, const GLfloat
typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs);
typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
class CLP(GeomContext);
////////////////////////////////////////////////////////////////////

View File

@ -43,11 +43,14 @@
#if defined(GL_GLEXT_VERSION) && GL_GLEXT_VERSION < 29
#undef GL_GLEXT_VERSION
#undef GL_GLEXT_PROTOTYPES
#ifndef IS_OSX
#undef GL_VERSION_1_2
#undef GL_VERSION_1_3
#undef GL_VERSION_1_4
#undef GL_VERSION_1_5
#endif
#endif
#include "panda_glext.h"
#include "glmisc_src.h"