mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
OpenGL: note that the Buffer API is OpenGL 1.5, so we can be used in STATIC_OPENGL
This commit is contained in:
parent
a3857301cd
commit
7e5c8d81e4
1 changed files with 13 additions and 14 deletions
|
|
@ -221,11 +221,6 @@ FUNCPRINTF void DBG_Printf(const char *lpFmt, ...)
|
||||||
#define pglDrawElements glDrawElements
|
#define pglDrawElements glDrawElements
|
||||||
#define pglEnableClientState glEnableClientState
|
#define pglEnableClientState glEnableClientState
|
||||||
#define pglDisableClientState glDisableClientState
|
#define pglDisableClientState glDisableClientState
|
||||||
#define pglClientActiveTexture glClientActiveTexture
|
|
||||||
#define pglGenBuffers glGenBuffers
|
|
||||||
#define pglBindBuffer glBindBuffer
|
|
||||||
#define pglBufferData glBufferData
|
|
||||||
#define pglDeleteBuffers glDeleteBuffers
|
|
||||||
|
|
||||||
/* Lighting */
|
/* Lighting */
|
||||||
#define pglShadeModel glShadeModel
|
#define pglShadeModel glShadeModel
|
||||||
|
|
@ -331,15 +326,6 @@ typedef void (APIENTRY * PFNglEnableClientState) (GLenum cap);
|
||||||
static PFNglEnableClientState pglEnableClientState;
|
static PFNglEnableClientState pglEnableClientState;
|
||||||
typedef void (APIENTRY * PFNglDisableClientState) (GLenum cap);
|
typedef void (APIENTRY * PFNglDisableClientState) (GLenum cap);
|
||||||
static PFNglDisableClientState pglDisableClientState;
|
static PFNglDisableClientState pglDisableClientState;
|
||||||
typedef void (APIENTRY * PFNglGenBuffers) (GLsizei n, GLuint *buffers);
|
|
||||||
static PFNglGenBuffers pglGenBuffers;
|
|
||||||
typedef void (APIENTRY * PFNglBindBuffer) (GLenum target, GLuint buffer);
|
|
||||||
static PFNglBindBuffer pglBindBuffer;
|
|
||||||
typedef void (APIENTRY * PFNglBufferData) (GLenum target, GLsizei size, const GLvoid *data, GLenum usage);
|
|
||||||
static PFNglBufferData pglBufferData;
|
|
||||||
typedef void (APIENTRY * PFNglDeleteBuffers) (GLsizei n, const GLuint *buffers);
|
|
||||||
static PFNglDeleteBuffers pglDeleteBuffers;
|
|
||||||
|
|
||||||
|
|
||||||
/* Lighting */
|
/* Lighting */
|
||||||
typedef void (APIENTRY * PFNglShadeModel) (GLenum mode);
|
typedef void (APIENTRY * PFNglShadeModel) (GLenum mode);
|
||||||
|
|
@ -397,6 +383,17 @@ static PFNglMultiTexCoord2fv pglMultiTexCoord2fv;
|
||||||
typedef void (APIENTRY *PFNglClientActiveTexture) (GLenum);
|
typedef void (APIENTRY *PFNglClientActiveTexture) (GLenum);
|
||||||
static PFNglClientActiveTexture pglClientActiveTexture;
|
static PFNglClientActiveTexture pglClientActiveTexture;
|
||||||
|
|
||||||
|
/* 1.5 functions for buffers */
|
||||||
|
typedef void (APIENTRY * PFNglGenBuffers) (GLsizei n, GLuint *buffers);
|
||||||
|
static PFNglGenBuffers pglGenBuffers;
|
||||||
|
typedef void (APIENTRY * PFNglBindBuffer) (GLenum target, GLuint buffer);
|
||||||
|
static PFNglBindBuffer pglBindBuffer;
|
||||||
|
typedef void (APIENTRY * PFNglBufferData) (GLenum target, GLsizei size, const GLvoid *data, GLenum usage);
|
||||||
|
static PFNglBufferData pglBufferData;
|
||||||
|
typedef void (APIENTRY * PFNglDeleteBuffers) (GLsizei n, const GLuint *buffers);
|
||||||
|
static PFNglDeleteBuffers pglDeleteBuffers;
|
||||||
|
|
||||||
|
|
||||||
/* 1.2 Parms */
|
/* 1.2 Parms */
|
||||||
/* GL_CLAMP_TO_EDGE_EXT */
|
/* GL_CLAMP_TO_EDGE_EXT */
|
||||||
#ifndef GL_CLAMP_TO_EDGE
|
#ifndef GL_CLAMP_TO_EDGE
|
||||||
|
|
@ -512,6 +509,8 @@ boolean SetupGLFunc13(void)
|
||||||
pglMultiTexCoord2f = GetGLFunc("glMultiTexCoord2f");
|
pglMultiTexCoord2f = GetGLFunc("glMultiTexCoord2f");
|
||||||
pglClientActiveTexture = GetGLFunc("glClientActiveTexture");
|
pglClientActiveTexture = GetGLFunc("glClientActiveTexture");
|
||||||
pglMultiTexCoord2fv = GetGLFunc("glMultiTexCoord2fv");
|
pglMultiTexCoord2fv = GetGLFunc("glMultiTexCoord2fv");
|
||||||
|
|
||||||
|
/* 1.5 funcs */
|
||||||
pglGenBuffers = GetGLFunc("glGenBuffers");
|
pglGenBuffers = GetGLFunc("glGenBuffers");
|
||||||
pglBindBuffer = GetGLFunc("glBindBuffer");
|
pglBindBuffer = GetGLFunc("glBindBuffer");
|
||||||
pglBufferData = GetGLFunc("glBufferData");
|
pglBufferData = GetGLFunc("glBufferData");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue