indent
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403208
This commit is contained in:
parent
5f94466c7b
commit
a9ba7ee031
7 changed files with 2825 additions and 2619 deletions
|
@ -673,7 +673,7 @@
|
|||
0014B89A09C0DAAE003A99D5 /* Xvlibint.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Xvlibint.h; sourceTree = "<group>"; };
|
||||
0014B89F09C0DAB9003A99D5 /* Xinerama.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = Xinerama.c; sourceTree = "<group>"; };
|
||||
0014B8A209C0DAC4003A99D5 /* xme.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = xme.c; sourceTree = "<group>"; };
|
||||
0014B9A909C0E585003A99D5 /* Info-FrameworkNoX11.plist */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "Info-FrameworkNoX11.plist"; sourceTree = "<group>"; };
|
||||
0014B9A909C0E585003A99D5 /* Info-FrameworkNoX11.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-FrameworkNoX11.plist"; sourceTree = "<group>"; };
|
||||
00162D3409BD1FA90037C8D0 /* SDL_config_macosx.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = SDL_config_macosx.h; path = ../../include/SDL_config_macosx.h; sourceTree = SOURCE_ROOT; };
|
||||
00162D3709BD1FA90037C8D0 /* SDL_config.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = SDL_config.h; path = ../../include/SDL_config.h; sourceTree = SOURCE_ROOT; };
|
||||
00162D3809BD1FA90037C8D0 /* SDL_platform.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = SDL_platform.h; path = ../../include/SDL_platform.h; sourceTree = SOURCE_ROOT; };
|
||||
|
@ -791,7 +791,7 @@
|
|||
B2CF8DC705C4450500E5DC7F /* SDL_name.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = SDL_name.h; path = ../../include/SDL_name.h; sourceTree = SOURCE_ROOT; };
|
||||
BECDF5D50761B759005FE872 /* SDL_coreaudio.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = SDL_coreaudio.c; sourceTree = "<group>"; };
|
||||
BECDF5D60761B759005FE872 /* SDL_coreaudio.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SDL_coreaudio.h; sourceTree = "<group>"; };
|
||||
BECDF66B0761BA81005FE872 /* Info-Framework.plist */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "Info-Framework.plist"; sourceTree = "<group>"; };
|
||||
BECDF66B0761BA81005FE872 /* Info-Framework.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-Framework.plist"; sourceTree = "<group>"; };
|
||||
BECDF66C0761BA81005FE872 /* SDL.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDL.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
BECDF6B30761BA81005FE872 /* libSDL.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDL.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
BECDF6BE0761BA81005FE872 /* Standard DMG */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "Standard DMG"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
|
|
|
@ -32,7 +32,8 @@
|
|||
/* $Id: gl.h 4533 2007-11-26 11:19:35Z markc $ */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -655,42 +656,66 @@ typedef int GLsizeiptr;
|
|||
|
||||
/* Available only in Common profile */
|
||||
GL_API void GL_APIENTRY glAlphaFunc(GLenum func, GLclampf ref);
|
||||
GL_API void GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||
GL_API void GL_APIENTRY glClearColor(GLclampf red, GLclampf green,
|
||||
GLclampf blue, GLclampf alpha);
|
||||
GL_API void GL_APIENTRY glClearDepthf(GLclampf depth);
|
||||
GL_API void GL_APIENTRY glClipPlanef (GLenum plane, const GLfloat *equation);
|
||||
GL_API void GL_APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
||||
GL_API void GL_APIENTRY glClipPlanef(GLenum plane,
|
||||
const GLfloat * equation);
|
||||
GL_API void GL_APIENTRY glColor4f(GLfloat red, GLfloat green,
|
||||
GLfloat blue, GLfloat alpha);
|
||||
GL_API void GL_APIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar);
|
||||
GL_API void GL_APIENTRY glFogf(GLenum pname, GLfloat param);
|
||||
GL_API void GL_APIENTRY glFogfv(GLenum pname, const GLfloat * params);
|
||||
GL_API void GL_APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
|
||||
GL_API void GL_APIENTRY glFrustumf(GLfloat left, GLfloat right,
|
||||
GLfloat bottom, GLfloat top,
|
||||
GLfloat zNear, GLfloat zFar);
|
||||
GL_API void GL_APIENTRY glGetClipPlanef(GLenum pname, GLfloat eqn[4]);
|
||||
GL_API void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat * params);
|
||||
GL_API void GL_APIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
|
||||
GL_API void GL_APIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
|
||||
GL_API void GL_APIENTRY glGetTexEnvfv (GLenum env, GLenum pname, GLfloat *params);
|
||||
GL_API void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
|
||||
GL_API void GL_APIENTRY glGetLightfv(GLenum light, GLenum pname,
|
||||
GLfloat * params);
|
||||
GL_API void GL_APIENTRY glGetMaterialfv(GLenum face, GLenum pname,
|
||||
GLfloat * params);
|
||||
GL_API void GL_APIENTRY glGetTexEnvfv(GLenum env, GLenum pname,
|
||||
GLfloat * params);
|
||||
GL_API void GL_APIENTRY glGetTexParameterfv(GLenum target, GLenum pname,
|
||||
GLfloat * params);
|
||||
GL_API void GL_APIENTRY glLightModelf(GLenum pname, GLfloat param);
|
||||
GL_API void GL_APIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
|
||||
GL_API void GL_APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
|
||||
GL_API void GL_APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
|
||||
GL_API void GL_APIENTRY glLightModelfv(GLenum pname,
|
||||
const GLfloat * params);
|
||||
GL_API void GL_APIENTRY glLightf(GLenum light, GLenum pname,
|
||||
GLfloat param);
|
||||
GL_API void GL_APIENTRY glLightfv(GLenum light, GLenum pname,
|
||||
const GLfloat * params);
|
||||
GL_API void GL_APIENTRY glLineWidth(GLfloat width);
|
||||
GL_API void GL_APIENTRY glLoadMatrixf(const GLfloat * m);
|
||||
GL_API void GL_APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
|
||||
GL_API void GL_APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
|
||||
GL_API void GL_APIENTRY glMaterialf(GLenum face, GLenum pname,
|
||||
GLfloat param);
|
||||
GL_API void GL_APIENTRY glMaterialfv(GLenum face, GLenum pname,
|
||||
const GLfloat * params);
|
||||
GL_API void GL_APIENTRY glMultMatrixf(const GLfloat * m);
|
||||
GL_API void GL_APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
|
||||
GL_API void GL_APIENTRY glMultiTexCoord4f(GLenum target, GLfloat s,
|
||||
GLfloat t, GLfloat r,
|
||||
GLfloat q);
|
||||
GL_API void GL_APIENTRY glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz);
|
||||
GL_API void GL_APIENTRY glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
|
||||
GL_API void GL_APIENTRY glOrthof(GLfloat left, GLfloat right,
|
||||
GLfloat bottom, GLfloat top,
|
||||
GLfloat zNear, GLfloat zFar);
|
||||
GL_API void GL_APIENTRY glPointParameterf(GLenum pname, GLfloat param);
|
||||
GL_API void GL_APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
|
||||
GL_API void GL_APIENTRY glPointParameterfv(GLenum pname,
|
||||
const GLfloat * params);
|
||||
GL_API void GL_APIENTRY glPointSize(GLfloat size);
|
||||
GL_API void GL_APIENTRY glPolygonOffset(GLfloat factor, GLfloat units);
|
||||
GL_API void GL_APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
|
||||
GL_API void GL_APIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y,
|
||||
GLfloat z);
|
||||
GL_API void GL_APIENTRY glScalef(GLfloat x, GLfloat y, GLfloat z);
|
||||
GL_API void GL_APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
|
||||
GL_API void GL_APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
|
||||
GL_API void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
|
||||
GL_API void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
|
||||
GL_API void GL_APIENTRY glTexEnvf(GLenum target, GLenum pname,
|
||||
GLfloat param);
|
||||
GL_API void GL_APIENTRY glTexEnvfv(GLenum target, GLenum pname,
|
||||
const GLfloat * params);
|
||||
GL_API void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname,
|
||||
GLfloat param);
|
||||
GL_API void GL_APIENTRY glTexParameterfv(GLenum target, GLenum pname,
|
||||
const GLfloat * params);
|
||||
GL_API void GL_APIENTRY glTranslatef(GLfloat x, GLfloat y, GLfloat z);
|
||||
|
||||
/* Available in both Common and Common-Lite profiles */
|
||||
|
@ -699,32 +724,68 @@ GL_API void GL_APIENTRY glAlphaFuncx (GLenum func, GLclampx ref);
|
|||
GL_API void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer);
|
||||
GL_API void GL_APIENTRY glBindTexture(GLenum target, GLuint texture);
|
||||
GL_API void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor);
|
||||
GL_API void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
|
||||
GL_API void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
|
||||
GL_API void GL_APIENTRY glBufferData(GLenum target, GLsizeiptr size,
|
||||
const GLvoid * data, GLenum usage);
|
||||
GL_API void GL_APIENTRY glBufferSubData(GLenum target, GLintptr offset,
|
||||
GLsizeiptr size,
|
||||
const GLvoid * data);
|
||||
GL_API void GL_APIENTRY glClear(GLbitfield mask);
|
||||
GL_API void GL_APIENTRY glClearColorx (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
|
||||
GL_API void GL_APIENTRY glClearColorx(GLclampx red, GLclampx green,
|
||||
GLclampx blue, GLclampx alpha);
|
||||
GL_API void GL_APIENTRY glClearDepthx(GLclampx depth);
|
||||
GL_API void GL_APIENTRY glClearStencil(GLint s);
|
||||
GL_API void GL_APIENTRY glClientActiveTexture(GLenum texture);
|
||||
GL_API void GL_APIENTRY glClipPlanex (GLenum plane, const GLfixed *equation);
|
||||
GL_API void GL_APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
|
||||
GL_API void GL_APIENTRY glColor4x (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
|
||||
GL_API void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
|
||||
GL_API void GL_APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
|
||||
GL_API void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
|
||||
GL_API void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
|
||||
GL_API void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
|
||||
GL_API void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
GL_API void GL_APIENTRY glClipPlanex(GLenum plane,
|
||||
const GLfixed * equation);
|
||||
GL_API void GL_APIENTRY glColor4ub(GLubyte red, GLubyte green,
|
||||
GLubyte blue, GLubyte alpha);
|
||||
GL_API void GL_APIENTRY glColor4x(GLfixed red, GLfixed green,
|
||||
GLfixed blue, GLfixed alpha);
|
||||
GL_API void GL_APIENTRY glColorMask(GLboolean red, GLboolean green,
|
||||
GLboolean blue, GLboolean alpha);
|
||||
GL_API void GL_APIENTRY glColorPointer(GLint size, GLenum type,
|
||||
GLsizei stride,
|
||||
const GLvoid * pointer);
|
||||
GL_API void GL_APIENTRY glCompressedTexImage2D(GLenum target, GLint level,
|
||||
GLenum internalformat,
|
||||
GLsizei width,
|
||||
GLsizei height,
|
||||
GLint border,
|
||||
GLsizei imageSize,
|
||||
const GLvoid * data);
|
||||
GL_API void GL_APIENTRY glCompressedTexSubImage2D(GLenum target,
|
||||
GLint level,
|
||||
GLint xoffset,
|
||||
GLint yoffset,
|
||||
GLsizei width,
|
||||
GLsizei height,
|
||||
GLenum format,
|
||||
GLsizei imageSize,
|
||||
const GLvoid * data);
|
||||
GL_API void GL_APIENTRY glCopyTexImage2D(GLenum target, GLint level,
|
||||
GLenum internalformat, GLint x,
|
||||
GLint y, GLsizei width,
|
||||
GLsizei height, GLint border);
|
||||
GL_API void GL_APIENTRY glCopyTexSubImage2D(GLenum target, GLint level,
|
||||
GLint xoffset, GLint yoffset,
|
||||
GLint x, GLint y,
|
||||
GLsizei width,
|
||||
GLsizei height);
|
||||
GL_API void GL_APIENTRY glCullFace(GLenum mode);
|
||||
GL_API void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
|
||||
GL_API void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
|
||||
GL_API void GL_APIENTRY glDeleteBuffers(GLsizei n,
|
||||
const GLuint * buffers);
|
||||
GL_API void GL_APIENTRY glDeleteTextures(GLsizei n,
|
||||
const GLuint * textures);
|
||||
GL_API void GL_APIENTRY glDepthFunc(GLenum func);
|
||||
GL_API void GL_APIENTRY glDepthMask(GLboolean flag);
|
||||
GL_API void GL_APIENTRY glDepthRangex(GLclampx zNear, GLclampx zFar);
|
||||
GL_API void GL_APIENTRY glDisable(GLenum cap);
|
||||
GL_API void GL_APIENTRY glDisableClientState(GLenum array);
|
||||
GL_API void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
|
||||
GL_API void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
|
||||
GL_API void GL_APIENTRY glDrawArrays(GLenum mode, GLint first,
|
||||
GLsizei count);
|
||||
GL_API void GL_APIENTRY glDrawElements(GLenum mode, GLsizei count,
|
||||
GLenum type,
|
||||
const GLvoid * indices);
|
||||
GL_API void GL_APIENTRY glEnable(GLenum cap);
|
||||
GL_API void GL_APIENTRY glEnableClientState(GLenum array);
|
||||
GL_API void GL_APIENTRY glFinish(void);
|
||||
|
@ -732,74 +793,124 @@ GL_API void GL_APIENTRY glFlush (void);
|
|||
GL_API void GL_APIENTRY glFogx(GLenum pname, GLfixed param);
|
||||
GL_API void GL_APIENTRY glFogxv(GLenum pname, const GLfixed * params);
|
||||
GL_API void GL_APIENTRY glFrontFace(GLenum mode);
|
||||
GL_API void GL_APIENTRY glFrustumx (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
|
||||
GL_API void GL_APIENTRY glFrustumx(GLfixed left, GLfixed right,
|
||||
GLfixed bottom, GLfixed top,
|
||||
GLfixed zNear, GLfixed zFar);
|
||||
GL_API void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean * params);
|
||||
GL_API void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
|
||||
GL_API void GL_APIENTRY glGetBufferParameteriv(GLenum target,
|
||||
GLenum pname,
|
||||
GLint * params);
|
||||
GL_API void GL_APIENTRY glGetClipPlanex(GLenum pname, GLfixed eqn[4]);
|
||||
GL_API void GL_APIENTRY glGenBuffers(GLsizei n, GLuint * buffers);
|
||||
GL_API void GL_APIENTRY glGenTextures(GLsizei n, GLuint * textures);
|
||||
GL_API GLenum GL_APIENTRY glGetError(void);
|
||||
GL_API void GL_APIENTRY glGetFixedv(GLenum pname, GLfixed * params);
|
||||
GL_API void GL_APIENTRY glGetIntegerv(GLenum pname, GLint * params);
|
||||
GL_API void GL_APIENTRY glGetLightxv (GLenum light, GLenum pname, GLfixed *params);
|
||||
GL_API void GL_APIENTRY glGetMaterialxv (GLenum face, GLenum pname, GLfixed *params);
|
||||
GL_API void GL_APIENTRY glGetLightxv(GLenum light, GLenum pname,
|
||||
GLfixed * params);
|
||||
GL_API void GL_APIENTRY glGetMaterialxv(GLenum face, GLenum pname,
|
||||
GLfixed * params);
|
||||
GL_API void GL_APIENTRY glGetPointerv(GLenum pname, void **params);
|
||||
GL_API const GLubyte *GL_APIENTRY glGetString(GLenum name);
|
||||
GL_API void GL_APIENTRY glGetTexEnviv (GLenum env, GLenum pname, GLint *params);
|
||||
GL_API void GL_APIENTRY glGetTexEnvxv (GLenum env, GLenum pname, GLfixed *params);
|
||||
GL_API void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
|
||||
GL_API void GL_APIENTRY glGetTexParameterxv (GLenum target, GLenum pname, GLfixed *params);
|
||||
GL_API void GL_APIENTRY glGetTexEnviv(GLenum env, GLenum pname,
|
||||
GLint * params);
|
||||
GL_API void GL_APIENTRY glGetTexEnvxv(GLenum env, GLenum pname,
|
||||
GLfixed * params);
|
||||
GL_API void GL_APIENTRY glGetTexParameteriv(GLenum target, GLenum pname,
|
||||
GLint * params);
|
||||
GL_API void GL_APIENTRY glGetTexParameterxv(GLenum target, GLenum pname,
|
||||
GLfixed * params);
|
||||
GL_API void GL_APIENTRY glHint(GLenum target, GLenum mode);
|
||||
GL_API GLboolean GL_APIENTRY glIsBuffer(GLuint buffer);
|
||||
GL_API GLboolean GL_APIENTRY glIsEnabled(GLenum cap);
|
||||
GL_API GLboolean GL_APIENTRY glIsTexture(GLuint texture);
|
||||
GL_API void GL_APIENTRY glLightModelx(GLenum pname, GLfixed param);
|
||||
GL_API void GL_APIENTRY glLightModelxv (GLenum pname, const GLfixed *params);
|
||||
GL_API void GL_APIENTRY glLightx (GLenum light, GLenum pname, GLfixed param);
|
||||
GL_API void GL_APIENTRY glLightxv (GLenum light, GLenum pname, const GLfixed *params);
|
||||
GL_API void GL_APIENTRY glLightModelxv(GLenum pname,
|
||||
const GLfixed * params);
|
||||
GL_API void GL_APIENTRY glLightx(GLenum light, GLenum pname,
|
||||
GLfixed param);
|
||||
GL_API void GL_APIENTRY glLightxv(GLenum light, GLenum pname,
|
||||
const GLfixed * params);
|
||||
GL_API void GL_APIENTRY glLineWidthx(GLfixed width);
|
||||
GL_API void GL_APIENTRY glLoadIdentity(void);
|
||||
GL_API void GL_APIENTRY glLoadMatrixx(const GLfixed * m);
|
||||
GL_API void GL_APIENTRY glLogicOp(GLenum opcode);
|
||||
GL_API void GL_APIENTRY glMaterialx (GLenum face, GLenum pname, GLfixed param);
|
||||
GL_API void GL_APIENTRY glMaterialxv (GLenum face, GLenum pname, const GLfixed *params);
|
||||
GL_API void GL_APIENTRY glMaterialx(GLenum face, GLenum pname,
|
||||
GLfixed param);
|
||||
GL_API void GL_APIENTRY glMaterialxv(GLenum face, GLenum pname,
|
||||
const GLfixed * params);
|
||||
GL_API void GL_APIENTRY glMatrixMode(GLenum mode);
|
||||
GL_API void GL_APIENTRY glMultMatrixx(const GLfixed * m);
|
||||
GL_API void GL_APIENTRY glMultiTexCoord4x (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
|
||||
GL_API void GL_APIENTRY glMultiTexCoord4x(GLenum target, GLfixed s,
|
||||
GLfixed t, GLfixed r,
|
||||
GLfixed q);
|
||||
GL_API void GL_APIENTRY glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz);
|
||||
GL_API void GL_APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
|
||||
GL_API void GL_APIENTRY glOrthox (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
|
||||
GL_API void GL_APIENTRY glNormalPointer(GLenum type, GLsizei stride,
|
||||
const GLvoid * pointer);
|
||||
GL_API void GL_APIENTRY glOrthox(GLfixed left, GLfixed right,
|
||||
GLfixed bottom, GLfixed top,
|
||||
GLfixed zNear, GLfixed zFar);
|
||||
GL_API void GL_APIENTRY glPixelStorei(GLenum pname, GLint param);
|
||||
GL_API void GL_APIENTRY glPointParameterx(GLenum pname, GLfixed param);
|
||||
GL_API void GL_APIENTRY glPointParameterxv (GLenum pname, const GLfixed *params);
|
||||
GL_API void GL_APIENTRY glPointParameterxv(GLenum pname,
|
||||
const GLfixed * params);
|
||||
GL_API void GL_APIENTRY glPointSizex(GLfixed size);
|
||||
GL_API void GL_APIENTRY glPolygonOffsetx(GLfixed factor, GLfixed units);
|
||||
GL_API void GL_APIENTRY glPopMatrix(void);
|
||||
GL_API void GL_APIENTRY glPushMatrix(void);
|
||||
GL_API void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
|
||||
GL_API void GL_APIENTRY glRotatex (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
|
||||
GL_API void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
|
||||
GL_API void GL_APIENTRY glSampleCoveragex (GLclampx value, GLboolean invert);
|
||||
GL_API void GL_APIENTRY glReadPixels(GLint x, GLint y, GLsizei width,
|
||||
GLsizei height, GLenum format,
|
||||
GLenum type, GLvoid * pixels);
|
||||
GL_API void GL_APIENTRY glRotatex(GLfixed angle, GLfixed x, GLfixed y,
|
||||
GLfixed z);
|
||||
GL_API void GL_APIENTRY glSampleCoverage(GLclampf value,
|
||||
GLboolean invert);
|
||||
GL_API void GL_APIENTRY glSampleCoveragex(GLclampx value,
|
||||
GLboolean invert);
|
||||
GL_API void GL_APIENTRY glScalex(GLfixed x, GLfixed y, GLfixed z);
|
||||
GL_API void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
GL_API void GL_APIENTRY glScissor(GLint x, GLint y, GLsizei width,
|
||||
GLsizei height);
|
||||
GL_API void GL_APIENTRY glShadeModel(GLenum mode);
|
||||
GL_API void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
|
||||
GL_API void GL_APIENTRY glStencilFunc(GLenum func, GLint ref,
|
||||
GLuint mask);
|
||||
GL_API void GL_APIENTRY glStencilMask(GLuint mask);
|
||||
GL_API void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
|
||||
GL_API void GL_APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
|
||||
GL_API void GL_APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param);
|
||||
GL_API void GL_APIENTRY glTexEnvx (GLenum target, GLenum pname, GLfixed param);
|
||||
GL_API void GL_APIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params);
|
||||
GL_API void GL_APIENTRY glTexEnvxv (GLenum target, GLenum pname, const GLfixed *params);
|
||||
GL_API void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
|
||||
GL_API void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
|
||||
GL_API void GL_APIENTRY glTexParameterx (GLenum target, GLenum pname, GLfixed param);
|
||||
GL_API void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
|
||||
GL_API void GL_APIENTRY glTexParameterxv (GLenum target, GLenum pname, const GLfixed *params);
|
||||
GL_API void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
|
||||
GL_API void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail,
|
||||
GLenum zpass);
|
||||
GL_API void GL_APIENTRY glTexCoordPointer(GLint size, GLenum type,
|
||||
GLsizei stride,
|
||||
const GLvoid * pointer);
|
||||
GL_API void GL_APIENTRY glTexEnvi(GLenum target, GLenum pname,
|
||||
GLint param);
|
||||
GL_API void GL_APIENTRY glTexEnvx(GLenum target, GLenum pname,
|
||||
GLfixed param);
|
||||
GL_API void GL_APIENTRY glTexEnviv(GLenum target, GLenum pname,
|
||||
const GLint * params);
|
||||
GL_API void GL_APIENTRY glTexEnvxv(GLenum target, GLenum pname,
|
||||
const GLfixed * params);
|
||||
GL_API void GL_APIENTRY glTexImage2D(GLenum target, GLint level,
|
||||
GLint internalformat, GLsizei width,
|
||||
GLsizei height, GLint border,
|
||||
GLenum format, GLenum type,
|
||||
const GLvoid * pixels);
|
||||
GL_API void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname,
|
||||
GLint param);
|
||||
GL_API void GL_APIENTRY glTexParameterx(GLenum target, GLenum pname,
|
||||
GLfixed param);
|
||||
GL_API void GL_APIENTRY glTexParameteriv(GLenum target, GLenum pname,
|
||||
const GLint * params);
|
||||
GL_API void GL_APIENTRY glTexParameterxv(GLenum target, GLenum pname,
|
||||
const GLfixed * params);
|
||||
GL_API void GL_APIENTRY glTexSubImage2D(GLenum target, GLint level,
|
||||
GLint xoffset, GLint yoffset,
|
||||
GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type,
|
||||
const GLvoid * pixels);
|
||||
GL_API void GL_APIENTRY glTranslatex(GLfixed x, GLfixed y, GLfixed z);
|
||||
GL_API void GL_APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
|
||||
GL_API void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
GL_API void GL_APIENTRY glVertexPointer(GLint size, GLenum type,
|
||||
GLsizei stride,
|
||||
const GLvoid * pointer);
|
||||
GL_API void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width,
|
||||
GLsizei height);
|
||||
|
||||
/*------------------------------------------------------------------------*
|
||||
* Required OES extension functions
|
||||
|
@ -818,7 +929,8 @@ GL_API void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei hei
|
|||
/* GL_OES_point_size_array */
|
||||
#ifndef GL_OES_point_size_array
|
||||
#define GL_OES_point_size_array 1
|
||||
GL_API void GL_APIENTRY glPointSizePointerOES (GLenum type, GLsizei stride, const GLvoid *pointer);
|
||||
GL_API void GL_APIENTRY glPointSizePointerOES(GLenum type, GLsizei stride,
|
||||
const GLvoid * pointer);
|
||||
#endif
|
||||
|
||||
/* GL_OES_point_sprite */
|
||||
|
@ -831,4 +943,3 @@ GL_API void GL_APIENTRY glPointSizePointerOES (GLenum type, GLsizei stride, cons
|
|||
#endif
|
||||
|
||||
#endif /* __gles_h_ */
|
||||
|
||||
|
|
|
@ -5,42 +5,59 @@
|
|||
#define SDL_PROC_UNUSED(ret,func,params)
|
||||
|
||||
SDL_PROC_UNUSED(void, glAlphaFunc, (GLenum func, GLclampf ref))
|
||||
SDL_PROC(void, glClearColor, (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha))
|
||||
SDL_PROC(void, glClearColor,
|
||||
(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha))
|
||||
SDL_PROC_UNUSED(void, glClearDepthf, (GLclampf depth))
|
||||
SDL_PROC_UNUSED(void, glClipPlanef, (GLenum plane, const GLfloat * equation))
|
||||
SDL_PROC(void, glColor4f, (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha))
|
||||
SDL_PROC(void, glColor4f,
|
||||
(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha))
|
||||
SDL_PROC_UNUSED(void, glDepthRangef, (GLclampf zNear, GLclampf zFar))
|
||||
SDL_PROC_UNUSED(void, glFogf, (GLenum pname, GLfloat param))
|
||||
SDL_PROC_UNUSED(void, glFogfv, (GLenum pname, const GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glFrustumf, (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar))
|
||||
SDL_PROC_UNUSED(void, glFrustumf,
|
||||
(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
|
||||
GLfloat zNear, GLfloat zFar))
|
||||
SDL_PROC_UNUSED(void, glGetClipPlanef, (GLenum pname, GLfloat eqn[4]))
|
||||
SDL_PROC(void, glGetFloatv, (GLenum pname, GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glGetLightfv, (GLenum light, GLenum pname, GLfloat *params))
|
||||
SDL_PROC_UNUSED(void, glGetMaterialfv, (GLenum face, GLenum pname, GLfloat *params))
|
||||
SDL_PROC_UNUSED(void, glGetTexEnvfv, (GLenum env, GLenum pname, GLfloat *params))
|
||||
SDL_PROC_UNUSED(void, glGetTexParameterfv, (GLenum target, GLenum pname, GLfloat *params))
|
||||
SDL_PROC_UNUSED(void, glGetLightfv,
|
||||
(GLenum light, GLenum pname, GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glGetMaterialfv,
|
||||
(GLenum face, GLenum pname, GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glGetTexEnvfv,
|
||||
(GLenum env, GLenum pname, GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glGetTexParameterfv,
|
||||
(GLenum target, GLenum pname, GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glLightModelf, (GLenum pname, GLfloat param))
|
||||
SDL_PROC_UNUSED(void, glLightModelfv, (GLenum pname, const GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glLightf, (GLenum light, GLenum pname, GLfloat param))
|
||||
SDL_PROC_UNUSED(void, glLightfv, (GLenum light, GLenum pname, const GLfloat *params))
|
||||
SDL_PROC_UNUSED(void, glLightfv,
|
||||
(GLenum light, GLenum pname, const GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glLineWidth, (GLfloat width))
|
||||
SDL_PROC_UNUSED(void, glLoadMatrixf, (const GLfloat * m))
|
||||
SDL_PROC_UNUSED(void, glMaterialf, (GLenum face, GLenum pname, GLfloat param))
|
||||
SDL_PROC_UNUSED(void, glMaterialfv, (GLenum face, GLenum pname, const GLfloat *params))
|
||||
SDL_PROC_UNUSED(void, glMaterialfv,
|
||||
(GLenum face, GLenum pname, const GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glMultMatrixf, (const GLfloat * m))
|
||||
SDL_PROC_UNUSED(void, glMultiTexCoord4f, (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q))
|
||||
SDL_PROC_UNUSED(void, glMultiTexCoord4f,
|
||||
(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q))
|
||||
SDL_PROC_UNUSED(void, glNormal3f, (GLfloat nx, GLfloat ny, GLfloat nz))
|
||||
SDL_PROC(void, glOrthof, (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar))
|
||||
SDL_PROC(void, glOrthof,
|
||||
(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
|
||||
GLfloat zNear, GLfloat zFar))
|
||||
SDL_PROC_UNUSED(void, glPointParameterf, (GLenum pname, GLfloat param))
|
||||
SDL_PROC_UNUSED(void, glPointParameterfv, (GLenum pname, const GLfloat *params))
|
||||
SDL_PROC_UNUSED(void, glPointParameterfv,
|
||||
(GLenum pname, const GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glPointSize, (GLfloat size))
|
||||
SDL_PROC_UNUSED(void, glPolygonOffset, (GLfloat factor, GLfloat units))
|
||||
SDL_PROC_UNUSED(void, glRotatef, (GLfloat angle, GLfloat x, GLfloat y, GLfloat z))
|
||||
SDL_PROC_UNUSED(void, glRotatef,
|
||||
(GLfloat angle, GLfloat x, GLfloat y, GLfloat z))
|
||||
SDL_PROC_UNUSED(void, glScalef, (GLfloat x, GLfloat y, GLfloat z))
|
||||
SDL_PROC(void, glTexEnvf, (GLenum target, GLenum pname, GLfloat param))
|
||||
SDL_PROC_UNUSED(void, glTexEnvfv, (GLenum target, GLenum pname, const GLfloat *params))
|
||||
SDL_PROC_UNUSED(void, glTexEnvfv,
|
||||
(GLenum target, GLenum pname, const GLfloat * params))
|
||||
SDL_PROC(void, glTexParameterf, (GLenum target, GLenum pname, GLfloat param))
|
||||
SDL_PROC_UNUSED(void, glTexParameterfv, (GLenum target, GLenum pname, const GLfloat *params))
|
||||
SDL_PROC_UNUSED(void, glTexParameterfv,
|
||||
(GLenum target, GLenum pname, const GLfloat * params))
|
||||
SDL_PROC_UNUSED(void, glTranslatef, (GLfloat x, GLfloat y, GLfloat z))
|
||||
|
||||
/* Available in both Common and Common-Lite profiles */
|
||||
|
@ -49,22 +66,43 @@ SDL_PROC_UNUSED(void, glAlphaFuncx, (GLenum func, GLclampx ref))
|
|||
SDL_PROC_UNUSED(void, glBindBuffer, (GLenum target, GLuint buffer))
|
||||
SDL_PROC(void, glBindTexture, (GLenum target, GLuint texture))
|
||||
SDL_PROC(void, glBlendFunc, (GLenum sfactor, GLenum dfactor))
|
||||
SDL_PROC_UNUSED(void, glBufferData, (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage))
|
||||
SDL_PROC_UNUSED(void, glBufferSubData, (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data))
|
||||
SDL_PROC_UNUSED(void, glBufferData,
|
||||
(GLenum target, GLsizeiptr size, const GLvoid * data,
|
||||
GLenum usage))
|
||||
SDL_PROC_UNUSED(void, glBufferSubData,
|
||||
(GLenum target, GLintptr offset, GLsizeiptr size,
|
||||
const GLvoid * data))
|
||||
SDL_PROC(void, glClear, (GLbitfield mask))
|
||||
SDL_PROC_UNUSED(void, glClearColorx, (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha))
|
||||
SDL_PROC_UNUSED(void, glClearColorx,
|
||||
(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha))
|
||||
SDL_PROC_UNUSED(void, glClearDepthx, (GLclampx depth))
|
||||
SDL_PROC_UNUSED(void, glClearStencil, (GLint s))
|
||||
SDL_PROC_UNUSED(void, glClientActiveTexture, (GLenum texture))
|
||||
SDL_PROC_UNUSED(void, glClipPlanex, (GLenum plane, const GLfixed * equation))
|
||||
SDL_PROC_UNUSED(void, glColor4ub, (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha))
|
||||
SDL_PROC_UNUSED(void, glColor4x, (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha))
|
||||
SDL_PROC_UNUSED(void, glColorMask, (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha))
|
||||
SDL_PROC_UNUSED(void, glColorPointer, (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer))
|
||||
SDL_PROC_UNUSED(void, glCompressedTexImage2D, (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data))
|
||||
SDL_PROC_UNUSED(void, glCompressedTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data))
|
||||
SDL_PROC_UNUSED(void, glCopyTexImage2D, (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border))
|
||||
SDL_PROC_UNUSED(void, glCopyTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height))
|
||||
SDL_PROC_UNUSED(void, glColor4ub,
|
||||
(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha))
|
||||
SDL_PROC_UNUSED(void, glColor4x,
|
||||
(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha))
|
||||
SDL_PROC_UNUSED(void, glColorMask,
|
||||
(GLboolean red, GLboolean green, GLboolean blue,
|
||||
GLboolean alpha))
|
||||
SDL_PROC_UNUSED(void, glColorPointer,
|
||||
(GLint size, GLenum type, GLsizei stride,
|
||||
const GLvoid * pointer))
|
||||
SDL_PROC_UNUSED(void, glCompressedTexImage2D,
|
||||
(GLenum target, GLint level, GLenum internalformat,
|
||||
GLsizei width, GLsizei height, GLint border,
|
||||
GLsizei imageSize, const GLvoid * data))
|
||||
SDL_PROC_UNUSED(void, glCompressedTexSubImage2D,
|
||||
(GLenum target, GLint level, GLint xoffset, GLint yoffset,
|
||||
GLsizei width, GLsizei height, GLenum format,
|
||||
GLsizei imageSize, const GLvoid * data))
|
||||
SDL_PROC_UNUSED(void, glCopyTexImage2D,
|
||||
(GLenum target, GLint level, GLenum internalformat, GLint x,
|
||||
GLint y, GLsizei width, GLsizei height, GLint border))
|
||||
SDL_PROC_UNUSED(void, glCopyTexSubImage2D,
|
||||
(GLenum target, GLint level, GLint xoffset, GLint yoffset,
|
||||
GLint x, GLint y, GLsizei width, GLsizei height))
|
||||
SDL_PROC_UNUSED(void, glCullFace, (GLenum mode))
|
||||
SDL_PROC_UNUSED(void, glDeleteBuffers, (GLsizei n, const GLuint * buffers))
|
||||
SDL_PROC_UNUSED(void, glDeleteTextures, (GLsizei n, const GLuint * textures))
|
||||
|
@ -74,7 +112,9 @@ SDL_PROC_UNUSED(void, glDepthRangex, (GLclampx zNear, GLclampx zFar))
|
|||
SDL_PROC(void, glDisable, (GLenum cap))
|
||||
SDL_PROC_UNUSED(void, glDisableClientState, (GLenum array))
|
||||
SDL_PROC(void, glDrawArrays, (GLenum mode, GLint first, GLsizei count))
|
||||
SDL_PROC_UNUSED(void, glDrawElements, (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices))
|
||||
SDL_PROC_UNUSED(void, glDrawElements,
|
||||
(GLenum mode, GLsizei count, GLenum type,
|
||||
const GLvoid * indices))
|
||||
SDL_PROC(void, glEnable, (GLenum cap))
|
||||
SDL_PROC(void, glEnableClientState, (GLenum array))
|
||||
SDL_PROC_UNUSED(void, glFinish, (void))
|
||||
|
@ -82,23 +122,32 @@ SDL_PROC_UNUSED(void, glFlush, (void))
|
|||
SDL_PROC_UNUSED(void, glFogx, (GLenum pname, GLfixed param))
|
||||
SDL_PROC_UNUSED(void, glFogxv, (GLenum pname, const GLfixed * params))
|
||||
SDL_PROC_UNUSED(void, glFrontFace, (GLenum mode))
|
||||
SDL_PROC_UNUSED(void, glFrustumx, (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar))
|
||||
SDL_PROC_UNUSED(void, glFrustumx,
|
||||
(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top,
|
||||
GLfixed zNear, GLfixed zFar))
|
||||
SDL_PROC_UNUSED(void, glGetBooleanv, (GLenum pname, GLboolean * params))
|
||||
SDL_PROC_UNUSED(void, glGetBufferParameteriv, (GLenum target, GLenum pname, GLint *params))
|
||||
SDL_PROC_UNUSED(void, glGetBufferParameteriv,
|
||||
(GLenum target, GLenum pname, GLint * params))
|
||||
SDL_PROC_UNUSED(void, glGetClipPlanex, (GLenum pname, GLfixed eqn[4]))
|
||||
SDL_PROC_UNUSED(void, glGenBuffers, (GLsizei n, GLuint * buffers))
|
||||
SDL_PROC(void, glGenTextures, (GLsizei n, GLuint * textures))
|
||||
SDL_PROC(GLenum, glGetError, (void))
|
||||
SDL_PROC_UNUSED(void, glGetFixedv, (GLenum pname, GLfixed * params))
|
||||
SDL_PROC(void, glGetIntegerv, (GLenum pname, GLint * params))
|
||||
SDL_PROC_UNUSED(void, glGetLightxv, (GLenum light, GLenum pname, GLfixed *params))
|
||||
SDL_PROC_UNUSED(void, glGetMaterialxv, (GLenum face, GLenum pname, GLfixed *params))
|
||||
SDL_PROC_UNUSED(void, glGetLightxv,
|
||||
(GLenum light, GLenum pname, GLfixed * params))
|
||||
SDL_PROC_UNUSED(void, glGetMaterialxv,
|
||||
(GLenum face, GLenum pname, GLfixed * params))
|
||||
SDL_PROC_UNUSED(void, glGetPointerv, (GLenum pname, void **params))
|
||||
SDL_PROC_UNUSED(const GLubyte *, glGetString, (GLenum name))
|
||||
SDL_PROC_UNUSED(void, glGetTexEnviv, (GLenum env, GLenum pname, GLint *params))
|
||||
SDL_PROC_UNUSED(void, glGetTexEnvxv, (GLenum env, GLenum pname, GLfixed *params))
|
||||
SDL_PROC_UNUSED(void, glGetTexParameteriv, (GLenum target, GLenum pname, GLint *params))
|
||||
SDL_PROC_UNUSED(void, glGetTexParameterxv, (GLenum target, GLenum pname, GLfixed *params))
|
||||
SDL_PROC_UNUSED(void, glGetTexEnviv,
|
||||
(GLenum env, GLenum pname, GLint * params))
|
||||
SDL_PROC_UNUSED(void, glGetTexEnvxv,
|
||||
(GLenum env, GLenum pname, GLfixed * params))
|
||||
SDL_PROC_UNUSED(void, glGetTexParameteriv,
|
||||
(GLenum target, GLenum pname, GLint * params))
|
||||
SDL_PROC_UNUSED(void, glGetTexParameterxv,
|
||||
(GLenum target, GLenum pname, GLfixed * params))
|
||||
SDL_PROC_UNUSED(void, glHint, (GLenum target, GLenum mode))
|
||||
SDL_PROC_UNUSED(GLboolean, glIsBuffer, (GLuint buffer))
|
||||
SDL_PROC_UNUSED(GLboolean, glIsEnabled, (GLenum cap))
|
||||
|
@ -106,28 +155,38 @@ SDL_PROC_UNUSED(GLboolean, glIsTexture, (GLuint texture))
|
|||
SDL_PROC_UNUSED(void, glLightModelx, (GLenum pname, GLfixed param))
|
||||
SDL_PROC_UNUSED(void, glLightModelxv, (GLenum pname, const GLfixed * params))
|
||||
SDL_PROC_UNUSED(void, glLightx, (GLenum light, GLenum pname, GLfixed param))
|
||||
SDL_PROC_UNUSED(void, glLightxv, (GLenum light, GLenum pname, const GLfixed *params))
|
||||
SDL_PROC_UNUSED(void, glLightxv,
|
||||
(GLenum light, GLenum pname, const GLfixed * params))
|
||||
SDL_PROC_UNUSED(void, glLineWidthx, (GLfixed width))
|
||||
SDL_PROC(void, glLoadIdentity, (void))
|
||||
SDL_PROC_UNUSED(void, glLoadMatrixx, (const GLfixed * m))
|
||||
SDL_PROC_UNUSED(void, glLogicOp, (GLenum opcode))
|
||||
SDL_PROC_UNUSED(void, glMaterialx, (GLenum face, GLenum pname, GLfixed param))
|
||||
SDL_PROC_UNUSED(void, glMaterialxv, (GLenum face, GLenum pname, const GLfixed *params))
|
||||
SDL_PROC_UNUSED(void, glMaterialxv,
|
||||
(GLenum face, GLenum pname, const GLfixed * params))
|
||||
SDL_PROC(void, glMatrixMode, (GLenum mode))
|
||||
SDL_PROC_UNUSED(void, glMultMatrixx, (const GLfixed * m))
|
||||
SDL_PROC_UNUSED(void, glMultiTexCoord4x, (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q))
|
||||
SDL_PROC_UNUSED(void, glMultiTexCoord4x,
|
||||
(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q))
|
||||
SDL_PROC_UNUSED(void, glNormal3x, (GLfixed nx, GLfixed ny, GLfixed nz))
|
||||
SDL_PROC_UNUSED(void, glNormalPointer, (GLenum type, GLsizei stride, const GLvoid *pointer))
|
||||
SDL_PROC_UNUSED(void, glOrthox, (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar))
|
||||
SDL_PROC_UNUSED(void, glNormalPointer,
|
||||
(GLenum type, GLsizei stride, const GLvoid * pointer))
|
||||
SDL_PROC_UNUSED(void, glOrthox,
|
||||
(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top,
|
||||
GLfixed zNear, GLfixed zFar))
|
||||
SDL_PROC(void, glPixelStorei, (GLenum pname, GLint param))
|
||||
SDL_PROC_UNUSED(void, glPointParameterx, (GLenum pname, GLfixed param))
|
||||
SDL_PROC_UNUSED(void, glPointParameterxv, (GLenum pname, const GLfixed *params))
|
||||
SDL_PROC_UNUSED(void, glPointParameterxv,
|
||||
(GLenum pname, const GLfixed * params))
|
||||
SDL_PROC_UNUSED(void, glPointSizex, (GLfixed size))
|
||||
SDL_PROC_UNUSED(void, glPolygonOffsetx, (GLfixed factor, GLfixed units))
|
||||
SDL_PROC_UNUSED(void, glPopMatrix, (void))
|
||||
SDL_PROC_UNUSED(void, glPushMatrix, (void))
|
||||
SDL_PROC_UNUSED(void, glReadPixels, (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels))
|
||||
SDL_PROC_UNUSED(void, glRotatex, (GLfixed angle, GLfixed x, GLfixed y, GLfixed z))
|
||||
SDL_PROC_UNUSED(void, glReadPixels,
|
||||
(GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type, GLvoid * pixels))
|
||||
SDL_PROC_UNUSED(void, glRotatex,
|
||||
(GLfixed angle, GLfixed x, GLfixed y, GLfixed z))
|
||||
SDL_PROC_UNUSED(void, glSampleCoverage, (GLclampf value, GLboolean invert))
|
||||
SDL_PROC_UNUSED(void, glSampleCoveragex, (GLclampx value, GLboolean invert))
|
||||
SDL_PROC_UNUSED(void, glScalex, (GLfixed x, GLfixed y, GLfixed z))
|
||||
|
@ -136,22 +195,36 @@ SDL_PROC_UNUSED(void, glShadeModel, (GLenum mode))
|
|||
SDL_PROC_UNUSED(void, glStencilFunc, (GLenum func, GLint ref, GLuint mask))
|
||||
SDL_PROC_UNUSED(void, glStencilMask, (GLuint mask))
|
||||
SDL_PROC_UNUSED(void, glStencilOp, (GLenum fail, GLenum zfail, GLenum zpass))
|
||||
SDL_PROC(void, glTexCoordPointer, (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer))
|
||||
SDL_PROC(void, glTexCoordPointer,
|
||||
(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
|
||||
SDL_PROC_UNUSED(void, glTexEnvi, (GLenum target, GLenum pname, GLint param))
|
||||
SDL_PROC_UNUSED(void, glTexEnvx, (GLenum target, GLenum pname, GLfixed param))
|
||||
SDL_PROC_UNUSED(void, glTexEnviv, (GLenum target, GLenum pname, const GLint *params))
|
||||
SDL_PROC_UNUSED(void, glTexEnvxv, (GLenum target, GLenum pname, const GLfixed *params))
|
||||
SDL_PROC(void, glTexImage2D, (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels))
|
||||
SDL_PROC_UNUSED(void, glTexEnviv,
|
||||
(GLenum target, GLenum pname, const GLint * params))
|
||||
SDL_PROC_UNUSED(void, glTexEnvxv,
|
||||
(GLenum target, GLenum pname, const GLfixed * params))
|
||||
SDL_PROC(void, glTexImage2D,
|
||||
(GLenum target, GLint level, GLint internalformat, GLsizei width,
|
||||
GLsizei height, GLint border, GLenum format, GLenum type,
|
||||
const GLvoid * pixels))
|
||||
SDL_PROC(void, glTexParameteri, (GLenum target, GLenum pname, GLint param))
|
||||
SDL_PROC_UNUSED(void, glTexParameterx, (GLenum target, GLenum pname, GLfixed param))
|
||||
SDL_PROC(void, glTexParameteriv, (GLenum target, GLenum pname, const GLint *params))
|
||||
SDL_PROC_UNUSED(void, glTexParameterxv, (GLenum target, GLenum pname, const GLfixed *params))
|
||||
SDL_PROC(void, glTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels))
|
||||
SDL_PROC_UNUSED(void, glTexParameterx,
|
||||
(GLenum target, GLenum pname, GLfixed param))
|
||||
SDL_PROC(void, glTexParameteriv,
|
||||
(GLenum target, GLenum pname, const GLint * params))
|
||||
SDL_PROC_UNUSED(void, glTexParameterxv,
|
||||
(GLenum target, GLenum pname, const GLfixed * params))
|
||||
SDL_PROC(void, glTexSubImage2D,
|
||||
(GLenum target, GLint level, GLint xoffset, GLint yoffset,
|
||||
GLsizei width, GLsizei height, GLenum format, GLenum type,
|
||||
const GLvoid * pixels))
|
||||
SDL_PROC_UNUSED(void, glTranslatex, (GLfixed x, GLfixed y, GLfixed z))
|
||||
SDL_PROC(void, glVertexPointer, (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer))
|
||||
SDL_PROC(void, glVertexPointer,
|
||||
(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
|
||||
SDL_PROC(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height))
|
||||
|
||||
/* extension functions used */
|
||||
SDL_PROC(void, glDrawTexiOES, (GLint x, GLint y, GLint z, GLint width, GLint height))
|
||||
SDL_PROC(void, glDrawTexiOES,
|
||||
(GLint x, GLint y, GLint z, GLint width, GLint height))
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
|
|
@ -60,17 +60,20 @@ static int GLES_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
|
|||
const SDL_Rect * rect, const void *pixels,
|
||||
int pitch);
|
||||
static int GLES_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||
const SDL_Rect * rect, int markDirty, void **pixels,
|
||||
int *pitch);
|
||||
static void GLES_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture);
|
||||
const SDL_Rect * rect, int markDirty,
|
||||
void **pixels, int *pitch);
|
||||
static void GLES_UnlockTexture(SDL_Renderer * renderer,
|
||||
SDL_Texture * texture);
|
||||
static void GLES_DirtyTexture(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||
int numrects, const SDL_Rect * rects);
|
||||
static int GLES_RenderFill(SDL_Renderer * renderer, Uint8 r, Uint8 g, Uint8 b,
|
||||
Uint8 a, const SDL_Rect * rect);
|
||||
static int GLES_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||
const SDL_Rect * srcrect, const SDL_Rect * dstrect);
|
||||
const SDL_Rect * srcrect,
|
||||
const SDL_Rect * dstrect);
|
||||
static void GLES_RenderPresent(SDL_Renderer * renderer);
|
||||
static void GLES_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture);
|
||||
static void GLES_DestroyTexture(SDL_Renderer * renderer,
|
||||
SDL_Texture * texture);
|
||||
static void GLES_DestroyRenderer(SDL_Renderer * renderer);
|
||||
|
||||
|
||||
|
@ -234,7 +237,8 @@ GLES_CreateRenderer(SDL_Window * window, Uint32 flags)
|
|||
renderer->driverdata = data;
|
||||
|
||||
|
||||
renderer->info.flags = (SDL_RENDERER_PRESENTDISCARD | SDL_RENDERER_ACCELERATED);
|
||||
renderer->info.flags =
|
||||
(SDL_RENDERER_PRESENTDISCARD | SDL_RENDERER_ACCELERATED);
|
||||
|
||||
if (GLES_LoadFunctions(data) < 0) {
|
||||
GLES_DestroyRenderer(renderer);
|
||||
|
@ -269,8 +273,7 @@ GLES_CreateRenderer(SDL_Window * window, Uint32 flags)
|
|||
if (SDL_GL_ExtensionSupported("GL_OES_draw_texture")) {
|
||||
data->GL_OES_draw_texture_supported = SDL_TRUE;
|
||||
data->useDrawTexture = SDL_TRUE;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
data->GL_OES_draw_texture_supported = SDL_FALSE;
|
||||
data->useDrawTexture = SDL_FALSE;
|
||||
}
|
||||
|
@ -290,7 +293,8 @@ GLES_CreateRenderer(SDL_Window * window, Uint32 flags)
|
|||
return renderer;
|
||||
}
|
||||
|
||||
static int GLES_ActivateRenderer(SDL_Renderer * renderer)
|
||||
static int
|
||||
GLES_ActivateRenderer(SDL_Renderer * renderer)
|
||||
{
|
||||
|
||||
GLES_RenderData *data = (GLES_RenderData *) renderer->driverdata;
|
||||
|
@ -572,8 +576,8 @@ GLES_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
|
|||
}
|
||||
|
||||
static void
|
||||
GLES_DirtyTexture(SDL_Renderer * renderer, SDL_Texture * texture, int numrects,
|
||||
const SDL_Rect * rects)
|
||||
GLES_DirtyTexture(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||
int numrects, const SDL_Rect * rects)
|
||||
{
|
||||
GLES_TextureData *data = (GLES_TextureData *) texture->driverdata;
|
||||
int i;
|
||||
|
@ -605,7 +609,8 @@ GLES_RenderFill(SDL_Renderer * renderer, Uint8 r, Uint8 g, Uint8 b, Uint8 a,
|
|||
data->glDisable(GL_SCISSOR_TEST);
|
||||
|
||||
/* reset clear color */
|
||||
data->glClearColor(oldClearColor[0], oldClearColor[1], oldClearColor[2], oldClearColor[2]);
|
||||
data->glClearColor(oldClearColor[0], oldClearColor[1], oldClearColor[2],
|
||||
oldClearColor[2]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -634,7 +639,9 @@ GLES_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
|
|||
data->glBindTexture(texturedata->type, texturedata->texture);
|
||||
for (dirty = texturedata->dirty.list; dirty; dirty = dirty->next) {
|
||||
SDL_Rect *rect = &dirty->rect;
|
||||
pixels = (void *) ((Uint8 *) texturedata->pixels + rect->y * pitch + rect->x * bpp);
|
||||
pixels =
|
||||
(void *) ((Uint8 *) texturedata->pixels + rect->y * pitch +
|
||||
rect->x * bpp);
|
||||
/* There is no GL_UNPACK_ROW_LENGTH in OpenGLES
|
||||
we must do this reformatting ourselves(!)
|
||||
|
||||
|
@ -722,10 +729,11 @@ GLES_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
|
|||
cropRect[1] = srcrect->y + srcrect->h;
|
||||
cropRect[2] = srcrect->w;
|
||||
cropRect[3] = -srcrect->h;
|
||||
data->glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect);
|
||||
data->glDrawTexiOES(dstrect->x, window->h - dstrect->y - dstrect->h, 0, dstrect->w, dstrect->h);
|
||||
}
|
||||
else {
|
||||
data->glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES,
|
||||
cropRect);
|
||||
data->glDrawTexiOES(dstrect->x, window->h - dstrect->y - dstrect->h,
|
||||
0, dstrect->w, dstrect->h);
|
||||
} else {
|
||||
|
||||
minx = dstrect->x;
|
||||
miny = dstrect->y;
|
||||
|
@ -744,15 +752,23 @@ GLES_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
|
|||
GLshort vertices[8];
|
||||
GLfloat texCoords[8];
|
||||
|
||||
vertices[0] = minx; vertices[1] = miny;
|
||||
vertices[2] = maxx; vertices[3] = miny;
|
||||
vertices[4] = minx; vertices[5] = maxy;
|
||||
vertices[6] = maxx; vertices[7] = maxy;
|
||||
vertices[0] = minx;
|
||||
vertices[1] = miny;
|
||||
vertices[2] = maxx;
|
||||
vertices[3] = miny;
|
||||
vertices[4] = minx;
|
||||
vertices[5] = maxy;
|
||||
vertices[6] = maxx;
|
||||
vertices[7] = maxy;
|
||||
|
||||
texCoords[0] = minu; texCoords[1] = minv;
|
||||
texCoords[2] = maxu; texCoords[3] = minv;
|
||||
texCoords[4] = minu; texCoords[5] = maxv;
|
||||
texCoords[6] = maxu; texCoords[7] = maxv;
|
||||
texCoords[0] = minu;
|
||||
texCoords[1] = minv;
|
||||
texCoords[2] = maxu;
|
||||
texCoords[3] = minv;
|
||||
texCoords[4] = minu;
|
||||
texCoords[5] = maxv;
|
||||
texCoords[6] = maxu;
|
||||
texCoords[7] = maxv;
|
||||
|
||||
data->glVertexPointer(2, GL_SHORT, 0, vertices);
|
||||
data->glEnableClientState(GL_VERTEX_ARRAY);
|
||||
|
|
|
@ -37,7 +37,8 @@ typedef struct SDL_VideoDisplay SDL_VideoDisplay;
|
|||
typedef struct SDL_VideoDevice SDL_VideoDevice;
|
||||
|
||||
/* Define the SDL texture structure */
|
||||
struct SDL_Texture {
|
||||
struct SDL_Texture
|
||||
{
|
||||
Uint32 id;
|
||||
|
||||
Uint32 format; /**< The pixel format of the texture */
|
||||
|
@ -57,7 +58,8 @@ struct SDL_Texture {
|
|||
};
|
||||
|
||||
/* Define the SDL renderer structure */
|
||||
struct SDL_Renderer {
|
||||
struct SDL_Renderer
|
||||
{
|
||||
int (*ActivateRenderer) (SDL_Renderer * renderer);
|
||||
int (*DisplayModeChanged) (SDL_Renderer * renderer);
|
||||
int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
|
||||
|
@ -105,7 +107,8 @@ struct SDL_Renderer {
|
|||
};
|
||||
|
||||
/* Define the SDL render driver structure */
|
||||
struct SDL_RenderDriver {
|
||||
struct SDL_RenderDriver
|
||||
{
|
||||
SDL_Renderer *(*CreateRenderer) (SDL_Window * window, Uint32 flags);
|
||||
|
||||
/* Info about the renderer capabilities */
|
||||
|
@ -113,7 +116,8 @@ struct SDL_RenderDriver {
|
|||
};
|
||||
|
||||
/* Define the SDL window structure, corresponding to toplevel windows */
|
||||
struct SDL_Window {
|
||||
struct SDL_Window
|
||||
{
|
||||
Uint32 id;
|
||||
|
||||
char *title;
|
||||
|
@ -136,7 +140,8 @@ struct SDL_Window {
|
|||
* Define the SDL display structure This corresponds to physical monitors
|
||||
* attached to the system.
|
||||
*/
|
||||
struct SDL_VideoDisplay {
|
||||
struct SDL_VideoDisplay
|
||||
{
|
||||
int max_display_modes;
|
||||
int num_display_modes;
|
||||
SDL_DisplayMode *display_modes;
|
||||
|
@ -167,7 +172,8 @@ struct SDL_VideoDisplay {
|
|||
/* Define the SDL video driver structure */
|
||||
#define _THIS SDL_VideoDevice *_this
|
||||
|
||||
struct SDL_VideoDevice {
|
||||
struct SDL_VideoDevice
|
||||
{
|
||||
/* * * */
|
||||
/* The name of this video driver */
|
||||
const char *name;
|
||||
|
@ -268,7 +274,8 @@ struct SDL_VideoDevice {
|
|||
|
||||
/* * * */
|
||||
/* Data used by the GL drivers */
|
||||
struct {
|
||||
struct
|
||||
{
|
||||
int red_size;
|
||||
int green_size;
|
||||
int blue_size;
|
||||
|
@ -301,7 +308,8 @@ struct SDL_VideoDevice {
|
|||
void (*free) (_THIS);
|
||||
};
|
||||
|
||||
typedef struct VideoBootStrap {
|
||||
typedef struct VideoBootStrap
|
||||
{
|
||||
const char *name;
|
||||
const char *desc;
|
||||
int (*available) (void);
|
||||
|
@ -384,11 +392,9 @@ extern SDL_VideoDevice *SDL_GetVideoDevice();
|
|||
extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode);
|
||||
extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display);
|
||||
extern SDL_bool
|
||||
SDL_AddDisplayMode(int displayIndex,
|
||||
const SDL_DisplayMode * mode);
|
||||
SDL_AddDisplayMode(int displayIndex, const SDL_DisplayMode * mode);
|
||||
extern void
|
||||
SDL_AddRenderDriver(int displayIndex,
|
||||
const SDL_RenderDriver * driver);
|
||||
SDL_AddRenderDriver(int displayIndex, const SDL_RenderDriver * driver);
|
||||
|
||||
extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
|
||||
extern SDL_Window *SDL_GetWindowFromID(SDL_WindowID windowID);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue