Mercurial > sdl-ios-xcode
annotate src/video/SDL_glesfuncs.h @ 3485:e77a69aae239
Mason Wheeler to sdl
I updated SDL, and suddenly my SDL frames stopped working. They'd "initialize" full of gibberish, and I couldn't render anything to them. After a bit of digging, I found a problem: the renderer initialization routine in my SDL frame code wasn't getting called anymore.
procedure TSdlFrame.Paint;
begin
if SDL_SelectRenderer(FWindowID) = -1 then
CreateRenderer;
SDL_RenderPresent;
end;
function TSdlFrame.CreateRenderer: boolean;
const
pf: tagPIXELFORMATDESCRIPTOR = (nSize: sizeof(pf); nVersion: 1;
dwFlags: PFD_DRAW_TO_WINDOW or PFD_SUPPORT_OPENGL or PFD_DOUBLEBUFFER;
iPixelType: PFD_TYPE_RGBA; cColorBits: 24; cAlphaBits: 8;
iLayerType: PFD_MAIN_PLANE);
RENDERERS: array[TRendererType] of AnsiString = ('software', 'gdi', 'opengl', 'd3d');
var
pFormat: integer;
begin
if (SDL_SelectRenderer(FWindowID) = 0) then
begin
result := true;
Exit;
end;
if FRendererType = rtOpenGL then
begin
pFormat := ChoosePixelFormat(canvas.Handle, @pf);
if not SetPixelFormat(canvas.Handle, pFormat, @pf) then
outputDebugString(PChar(SysErrorMessage(GetLastError)));
if wglCreateContext(canvas.Handle) = 0 then
outputDebugString(PChar(SysErrorMessage(GetLastError)));
end;
if (SDL_CreateRenderer(FWindowID, SDL_RendererIndex(RENDERERS[FRendererType]), [sdlrPresentFlip3, sdlrAccelerated]) = 0) then
begin
SDL_ShowWindow(FWindowID);
assert(SDL_SetRenderDrawColor(0, 0, 0, 255) = 0);
FFlags := SDL_GetWindowFlags(FWindowID);
if assigned(FOnAvailable) then
FOnAvailable(self);
end
else outputDebugString(pChar(format('SDL_CreateRenderer failed: %s', [sdl_GetError])));
result := SDL_SelectRenderer(FWindowID) = 0;
end;
This is a critical issue. The Paint method gets called when the control receives a WM_PAINT message from Windows. I can't create the renderer before then, or it will fail and cause trouble. And when I do create it, it needs to be created with certain parameters. So imagine my surprise when I started debugging into the DLL and found that SDL_SelectRenderer was trying to be "helpful" by creating the renderer for me if it didn't already exist! Now not only does my initialization code not get called, I end up with the wrong renderer and so things don't render as expected when I try to use the window.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 24 Nov 2009 04:48:12 +0000 |
parents | 0faae272a372 |
children |
rev | line source |
---|---|
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
1 /* list of OpenGL ES functions sorted alphabetically |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
2 If you need to use a GLES function from the SDL video subsystem, |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
3 change it's entry from SDL_PROC_UNUSED to SDL_PROC and rebuild. |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
4 */ |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
5 #define SDL_PROC_UNUSED(ret,func,params) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
6 |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
7 SDL_PROC_UNUSED(void, glAlphaFunc, (GLenum func, GLclampf ref)) |
2753 | 8 SDL_PROC(void, glClearColor, |
9 (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
10 SDL_PROC_UNUSED(void, glClearDepthf, (GLclampf depth)) |
2753 | 11 SDL_PROC_UNUSED(void, glClipPlanef, (GLenum plane, const GLfloat * equation)) |
12 SDL_PROC(void, glColor4f, | |
13 (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
14 SDL_PROC_UNUSED(void, glDepthRangef, (GLclampf zNear, GLclampf zFar)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
15 SDL_PROC_UNUSED(void, glFogf, (GLenum pname, GLfloat param)) |
2753 | 16 SDL_PROC_UNUSED(void, glFogfv, (GLenum pname, const GLfloat * params)) |
17 SDL_PROC_UNUSED(void, glFrustumf, | |
18 (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, | |
19 GLfloat zNear, GLfloat zFar)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
20 SDL_PROC_UNUSED(void, glGetClipPlanef, (GLenum pname, GLfloat eqn[4])) |
2753 | 21 SDL_PROC(void, glGetFloatv, (GLenum pname, GLfloat * params)) |
22 SDL_PROC_UNUSED(void, glGetLightfv, | |
23 (GLenum light, GLenum pname, GLfloat * params)) | |
24 SDL_PROC_UNUSED(void, glGetMaterialfv, | |
25 (GLenum face, GLenum pname, GLfloat * params)) | |
26 SDL_PROC_UNUSED(void, glGetTexEnvfv, | |
27 (GLenum env, GLenum pname, GLfloat * params)) | |
28 SDL_PROC_UNUSED(void, glGetTexParameterfv, | |
29 (GLenum target, GLenum pname, GLfloat * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
30 SDL_PROC_UNUSED(void, glLightModelf, (GLenum pname, GLfloat param)) |
2753 | 31 SDL_PROC_UNUSED(void, glLightModelfv, (GLenum pname, const GLfloat * params)) |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
32 SDL_PROC_UNUSED(void, glLightf, (GLenum light, GLenum pname, GLfloat param)) |
2753 | 33 SDL_PROC_UNUSED(void, glLightfv, |
34 (GLenum light, GLenum pname, const GLfloat * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
35 SDL_PROC_UNUSED(void, glLineWidth, (GLfloat width)) |
2753 | 36 SDL_PROC_UNUSED(void, glLoadMatrixf, (const GLfloat * m)) |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
37 SDL_PROC_UNUSED(void, glMaterialf, (GLenum face, GLenum pname, GLfloat param)) |
2753 | 38 SDL_PROC_UNUSED(void, glMaterialfv, |
39 (GLenum face, GLenum pname, const GLfloat * params)) | |
40 SDL_PROC_UNUSED(void, glMultMatrixf, (const GLfloat * m)) | |
41 SDL_PROC_UNUSED(void, glMultiTexCoord4f, | |
42 (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
43 SDL_PROC_UNUSED(void, glNormal3f, (GLfloat nx, GLfloat ny, GLfloat nz)) |
2753 | 44 SDL_PROC(void, glOrthof, |
45 (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, | |
46 GLfloat zNear, GLfloat zFar)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
47 SDL_PROC_UNUSED(void, glPointParameterf, (GLenum pname, GLfloat param)) |
2753 | 48 SDL_PROC_UNUSED(void, glPointParameterfv, |
49 (GLenum pname, const GLfloat * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
50 SDL_PROC_UNUSED(void, glPointSize, (GLfloat size)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
51 SDL_PROC_UNUSED(void, glPolygonOffset, (GLfloat factor, GLfloat units)) |
2753 | 52 SDL_PROC_UNUSED(void, glRotatef, |
53 (GLfloat angle, GLfloat x, GLfloat y, GLfloat z)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
54 SDL_PROC_UNUSED(void, glScalef, (GLfloat x, GLfloat y, GLfloat z)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
55 SDL_PROC(void, glTexEnvf, (GLenum target, GLenum pname, GLfloat param)) |
2753 | 56 SDL_PROC_UNUSED(void, glTexEnvfv, |
57 (GLenum target, GLenum pname, const GLfloat * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
58 SDL_PROC(void, glTexParameterf, (GLenum target, GLenum pname, GLfloat param)) |
2753 | 59 SDL_PROC_UNUSED(void, glTexParameterfv, |
60 (GLenum target, GLenum pname, const GLfloat * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
61 SDL_PROC_UNUSED(void, glTranslatef, (GLfloat x, GLfloat y, GLfloat z)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
62 |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
63 /* Available in both Common and Common-Lite profiles */ |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
64 SDL_PROC_UNUSED(void, glActiveTexture, (GLenum texture)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
65 SDL_PROC_UNUSED(void, glAlphaFuncx, (GLenum func, GLclampx ref)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
66 SDL_PROC_UNUSED(void, glBindBuffer, (GLenum target, GLuint buffer)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
67 SDL_PROC(void, glBindTexture, (GLenum target, GLuint texture)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
68 SDL_PROC(void, glBlendFunc, (GLenum sfactor, GLenum dfactor)) |
2753 | 69 SDL_PROC_UNUSED(void, glBufferData, |
70 (GLenum target, GLsizeiptr size, const GLvoid * data, | |
71 GLenum usage)) | |
72 SDL_PROC_UNUSED(void, glBufferSubData, | |
73 (GLenum target, GLintptr offset, GLsizeiptr size, | |
74 const GLvoid * data)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
75 SDL_PROC(void, glClear, (GLbitfield mask)) |
2753 | 76 SDL_PROC_UNUSED(void, glClearColorx, |
77 (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
78 SDL_PROC_UNUSED(void, glClearDepthx, (GLclampx depth)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
79 SDL_PROC_UNUSED(void, glClearStencil, (GLint s)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
80 SDL_PROC_UNUSED(void, glClientActiveTexture, (GLenum texture)) |
2753 | 81 SDL_PROC_UNUSED(void, glClipPlanex, (GLenum plane, const GLfixed * equation)) |
82 SDL_PROC_UNUSED(void, glColor4ub, | |
83 (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)) | |
84 SDL_PROC_UNUSED(void, glColor4x, | |
85 (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)) | |
86 SDL_PROC_UNUSED(void, glColorMask, | |
87 (GLboolean red, GLboolean green, GLboolean blue, | |
88 GLboolean alpha)) | |
2949
4eabc35fbb4a
Modified OpenGL ES render driver to support new SDL_RenderFill, SDL_RenderLine, and SDL_RenderPoint.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
2753
diff
changeset
|
89 SDL_PROC(void, glColorPointer, |
2964 | 90 (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer)) |
2753 | 91 SDL_PROC_UNUSED(void, glCompressedTexImage2D, |
92 (GLenum target, GLint level, GLenum internalformat, | |
93 GLsizei width, GLsizei height, GLint border, | |
94 GLsizei imageSize, const GLvoid * data)) | |
95 SDL_PROC_UNUSED(void, glCompressedTexSubImage2D, | |
96 (GLenum target, GLint level, GLint xoffset, GLint yoffset, | |
97 GLsizei width, GLsizei height, GLenum format, | |
98 GLsizei imageSize, const GLvoid * data)) | |
99 SDL_PROC_UNUSED(void, glCopyTexImage2D, | |
100 (GLenum target, GLint level, GLenum internalformat, GLint x, | |
101 GLint y, GLsizei width, GLsizei height, GLint border)) | |
102 SDL_PROC_UNUSED(void, glCopyTexSubImage2D, | |
103 (GLenum target, GLint level, GLint xoffset, GLint yoffset, | |
104 GLint x, GLint y, GLsizei width, GLsizei height)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
105 SDL_PROC_UNUSED(void, glCullFace, (GLenum mode)) |
2753 | 106 SDL_PROC_UNUSED(void, glDeleteBuffers, (GLsizei n, const GLuint * buffers)) |
107 SDL_PROC_UNUSED(void, glDeleteTextures, (GLsizei n, const GLuint * textures)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
108 SDL_PROC_UNUSED(void, glDepthFunc, (GLenum func)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
109 SDL_PROC_UNUSED(void, glDepthMask, (GLboolean flag)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
110 SDL_PROC_UNUSED(void, glDepthRangex, (GLclampx zNear, GLclampx zFar)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
111 SDL_PROC(void, glDisable, (GLenum cap)) |
2949
4eabc35fbb4a
Modified OpenGL ES render driver to support new SDL_RenderFill, SDL_RenderLine, and SDL_RenderPoint.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
2753
diff
changeset
|
112 SDL_PROC(void, glDisableClientState, (GLenum array)) |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
113 SDL_PROC(void, glDrawArrays, (GLenum mode, GLint first, GLsizei count)) |
2753 | 114 SDL_PROC_UNUSED(void, glDrawElements, |
115 (GLenum mode, GLsizei count, GLenum type, | |
116 const GLvoid * indices)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
117 SDL_PROC(void, glEnable, (GLenum cap)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
118 SDL_PROC(void, glEnableClientState, (GLenum array)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
119 SDL_PROC_UNUSED(void, glFinish, (void)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
120 SDL_PROC_UNUSED(void, glFlush, (void)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
121 SDL_PROC_UNUSED(void, glFogx, (GLenum pname, GLfixed param)) |
2753 | 122 SDL_PROC_UNUSED(void, glFogxv, (GLenum pname, const GLfixed * params)) |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
123 SDL_PROC_UNUSED(void, glFrontFace, (GLenum mode)) |
2753 | 124 SDL_PROC_UNUSED(void, glFrustumx, |
125 (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, | |
126 GLfixed zNear, GLfixed zFar)) | |
127 SDL_PROC_UNUSED(void, glGetBooleanv, (GLenum pname, GLboolean * params)) | |
128 SDL_PROC_UNUSED(void, glGetBufferParameteriv, | |
129 (GLenum target, GLenum pname, GLint * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
130 SDL_PROC_UNUSED(void, glGetClipPlanex, (GLenum pname, GLfixed eqn[4])) |
2753 | 131 SDL_PROC_UNUSED(void, glGenBuffers, (GLsizei n, GLuint * buffers)) |
132 SDL_PROC(void, glGenTextures, (GLsizei n, GLuint * textures)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
133 SDL_PROC(GLenum, glGetError, (void)) |
2753 | 134 SDL_PROC_UNUSED(void, glGetFixedv, (GLenum pname, GLfixed * params)) |
135 SDL_PROC(void, glGetIntegerv, (GLenum pname, GLint * params)) | |
136 SDL_PROC_UNUSED(void, glGetLightxv, | |
137 (GLenum light, GLenum pname, GLfixed * params)) | |
138 SDL_PROC_UNUSED(void, glGetMaterialxv, | |
139 (GLenum face, GLenum pname, GLfixed * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
140 SDL_PROC_UNUSED(void, glGetPointerv, (GLenum pname, void **params)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
141 SDL_PROC_UNUSED(const GLubyte *, glGetString, (GLenum name)) |
2753 | 142 SDL_PROC_UNUSED(void, glGetTexEnviv, |
143 (GLenum env, GLenum pname, GLint * params)) | |
144 SDL_PROC_UNUSED(void, glGetTexEnvxv, | |
145 (GLenum env, GLenum pname, GLfixed * params)) | |
146 SDL_PROC_UNUSED(void, glGetTexParameteriv, | |
147 (GLenum target, GLenum pname, GLint * params)) | |
148 SDL_PROC_UNUSED(void, glGetTexParameterxv, | |
149 (GLenum target, GLenum pname, GLfixed * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
150 SDL_PROC_UNUSED(void, glHint, (GLenum target, GLenum mode)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
151 SDL_PROC_UNUSED(GLboolean, glIsBuffer, (GLuint buffer)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
152 SDL_PROC_UNUSED(GLboolean, glIsEnabled, (GLenum cap)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
153 SDL_PROC_UNUSED(GLboolean, glIsTexture, (GLuint texture)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
154 SDL_PROC_UNUSED(void, glLightModelx, (GLenum pname, GLfixed param)) |
2753 | 155 SDL_PROC_UNUSED(void, glLightModelxv, (GLenum pname, const GLfixed * params)) |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
156 SDL_PROC_UNUSED(void, glLightx, (GLenum light, GLenum pname, GLfixed param)) |
2753 | 157 SDL_PROC_UNUSED(void, glLightxv, |
158 (GLenum light, GLenum pname, const GLfixed * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
159 SDL_PROC_UNUSED(void, glLineWidthx, (GLfixed width)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
160 SDL_PROC(void, glLoadIdentity, (void)) |
2753 | 161 SDL_PROC_UNUSED(void, glLoadMatrixx, (const GLfixed * m)) |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
162 SDL_PROC_UNUSED(void, glLogicOp, (GLenum opcode)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
163 SDL_PROC_UNUSED(void, glMaterialx, (GLenum face, GLenum pname, GLfixed param)) |
2753 | 164 SDL_PROC_UNUSED(void, glMaterialxv, |
165 (GLenum face, GLenum pname, const GLfixed * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
166 SDL_PROC(void, glMatrixMode, (GLenum mode)) |
2753 | 167 SDL_PROC_UNUSED(void, glMultMatrixx, (const GLfixed * m)) |
168 SDL_PROC_UNUSED(void, glMultiTexCoord4x, | |
169 (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
170 SDL_PROC_UNUSED(void, glNormal3x, (GLfixed nx, GLfixed ny, GLfixed nz)) |
2753 | 171 SDL_PROC_UNUSED(void, glNormalPointer, |
172 (GLenum type, GLsizei stride, const GLvoid * pointer)) | |
173 SDL_PROC_UNUSED(void, glOrthox, | |
174 (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, | |
175 GLfixed zNear, GLfixed zFar)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
176 SDL_PROC(void, glPixelStorei, (GLenum pname, GLint param)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
177 SDL_PROC_UNUSED(void, glPointParameterx, (GLenum pname, GLfixed param)) |
2753 | 178 SDL_PROC_UNUSED(void, glPointParameterxv, |
179 (GLenum pname, const GLfixed * params)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
180 SDL_PROC_UNUSED(void, glPointSizex, (GLfixed size)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
181 SDL_PROC_UNUSED(void, glPolygonOffsetx, (GLfixed factor, GLfixed units)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
182 SDL_PROC_UNUSED(void, glPopMatrix, (void)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
183 SDL_PROC_UNUSED(void, glPushMatrix, (void)) |
2753 | 184 SDL_PROC_UNUSED(void, glReadPixels, |
185 (GLint x, GLint y, GLsizei width, GLsizei height, | |
186 GLenum format, GLenum type, GLvoid * pixels)) | |
187 SDL_PROC_UNUSED(void, glRotatex, | |
188 (GLfixed angle, GLfixed x, GLfixed y, GLfixed z)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
189 SDL_PROC_UNUSED(void, glSampleCoverage, (GLclampf value, GLboolean invert)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
190 SDL_PROC_UNUSED(void, glSampleCoveragex, (GLclampx value, GLboolean invert)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
191 SDL_PROC_UNUSED(void, glScalex, (GLfixed x, GLfixed y, GLfixed z)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
192 SDL_PROC(void, glScissor, (GLint x, GLint y, GLsizei width, GLsizei height)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
193 SDL_PROC_UNUSED(void, glShadeModel, (GLenum mode)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
194 SDL_PROC_UNUSED(void, glStencilFunc, (GLenum func, GLint ref, GLuint mask)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
195 SDL_PROC_UNUSED(void, glStencilMask, (GLuint mask)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
196 SDL_PROC_UNUSED(void, glStencilOp, (GLenum fail, GLenum zfail, GLenum zpass)) |
2753 | 197 SDL_PROC(void, glTexCoordPointer, |
198 (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
199 SDL_PROC_UNUSED(void, glTexEnvi, (GLenum target, GLenum pname, GLint param)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
200 SDL_PROC_UNUSED(void, glTexEnvx, (GLenum target, GLenum pname, GLfixed param)) |
2753 | 201 SDL_PROC_UNUSED(void, glTexEnviv, |
202 (GLenum target, GLenum pname, const GLint * params)) | |
203 SDL_PROC_UNUSED(void, glTexEnvxv, | |
204 (GLenum target, GLenum pname, const GLfixed * params)) | |
205 SDL_PROC(void, glTexImage2D, | |
206 (GLenum target, GLint level, GLint internalformat, GLsizei width, | |
207 GLsizei height, GLint border, GLenum format, GLenum type, | |
208 const GLvoid * pixels)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
209 SDL_PROC(void, glTexParameteri, (GLenum target, GLenum pname, GLint param)) |
2753 | 210 SDL_PROC_UNUSED(void, glTexParameterx, |
211 (GLenum target, GLenum pname, GLfixed param)) | |
212 SDL_PROC(void, glTexParameteriv, | |
213 (GLenum target, GLenum pname, const GLint * params)) | |
214 SDL_PROC_UNUSED(void, glTexParameterxv, | |
215 (GLenum target, GLenum pname, const GLfixed * params)) | |
216 SDL_PROC(void, glTexSubImage2D, | |
217 (GLenum target, GLint level, GLint xoffset, GLint yoffset, | |
218 GLsizei width, GLsizei height, GLenum format, GLenum type, | |
219 const GLvoid * pixels)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
220 SDL_PROC_UNUSED(void, glTranslatex, (GLfixed x, GLfixed y, GLfixed z)) |
2753 | 221 SDL_PROC(void, glVertexPointer, |
222 (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
223 SDL_PROC(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height)) |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
224 |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
225 /* extension functions used */ |
2753 | 226 SDL_PROC(void, glDrawTexiOES, |
227 (GLint x, GLint y, GLint z, GLint width, GLint height)) | |
2741
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
228 |
6d6c89513529
This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
229 /* vi: set ts=4 sw=4 expandtab: */ |