|
|
#endif | #endif |
| |
#include <GL/gl.h> | #include <GL/gl.h> |
|
|
#if defined(WIN32) && defined(_MSC_VER) |
#if defined(WIN32) && defined(_MSC_VER) |
#define GL_GLEXT_PROTOTYPES 1 | #define GL_GLEXT_PROTOTYPES 1 |
#include "glext.h" |
#include "glext.h" |
#else |
#else |
/* This aren't elegant. It would be nicer to use glext.h, but I can't get |
/* This aren't elegant. It would be nicer to use glext.h, but I can't get |
it to work :( */ |
it to work :( */ |
#define GL_ARRAY_BUFFER_ARB 0x8892 |
#define GL_ARRAY_BUFFER_ARB 0x8892 |
#define GL_STATIC_DRAW_ARB 0x88E4 |
#define GL_STATIC_DRAW_ARB 0x88E4 |
|
|
typedef void (*PFNGLBINDBUFFERARBPROC)(GLenum target, GLuint buffer); |
typedef void (*PFNGLBINDBUFFERARBPROC)(GLenum target, GLuint buffer); |
typedef void (*PFNGLDELETEBUFFERSARBPROC)(GLsizei n, const GLuint *buffers); |
typedef void (*PFNGLDELETEBUFFERSARBPROC)(GLsizei n, const GLuint *buffers); |
typedef void (*PFNGLGENBUFFERSARBPROC)(GLsizei n, GLuint *buffers); |
typedef void (*PFNGLGENBUFFERSARBPROC)(GLsizei n, GLuint *buffers); |
typedef void (*PFNGLBUFFERDATAARBPROC)(GLenum target, int size, const GLvoid *data, GLenum usage); |
typedef void (*PFNGLBUFFERDATAARBPROC)(GLenum target, GLsizeiptrARB size,const GLvoid *data, GLenum usage); |
#endif | #endif |
#include <SDL/SDL.h> | #include <SDL/SDL.h> |
| |