Mercurial > sdl-ios-xcode
annotate include/SDL_opengles.h @ 5282:8e421890cdb8
Fixed bug #1117
There's a new event that's always sent when the window changes size, and that event is what the renderers listen for to determine if they need to rebind their context.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 12 Feb 2011 19:02:14 -0800 |
parents | b530ef003506 |
children |
rev | line source |
---|---|
2746
722339a7a126
Serves a similar purpose as SDL_opengl.h, except for OpenGLES.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
1 /* |
5207
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
2 SDL - Simple DirectMedia Layer |
5267 | 3 Copyright (C) 1997-2011 Sam Lantinga |
5207
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
4 |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
5 This library is free software; you can redistribute it and/or |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
6 modify it under the terms of the GNU Lesser General Public |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
7 License as published by the Free Software Foundation; either |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
8 version 2.1 of the License, or (at your option) any later version. |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
9 |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
10 This library is distributed in the hope that it will be useful, |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
13 Lesser General Public License for more details. |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
14 |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
15 You should have received a copy of the GNU Lesser General Public |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
16 License along with this library; if not, write to the Free Software |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
18 |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
19 Sam Lantinga |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
20 slouken@libsdl.org |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
21 */ |
2746
722339a7a126
Serves a similar purpose as SDL_opengl.h, except for OpenGLES.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
22 |
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
3139
diff
changeset
|
23 /** |
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
3139
diff
changeset
|
24 * \file SDL_opengles.h |
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
3139
diff
changeset
|
25 * |
5207
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
26 * This is a simple file to encapsulate the OpenGL ES 1.X API headers. |
2746
722339a7a126
Serves a similar purpose as SDL_opengl.h, except for OpenGLES.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
27 */ |
722339a7a126
Serves a similar purpose as SDL_opengl.h, except for OpenGLES.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
28 |
2765
f55c87ae336b
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2753
diff
changeset
|
29 #ifdef __IPHONEOS__ |
5207
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
30 #include <OpenGLES/ES1/gl.h> |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
31 #include <OpenGLES/ES1/glext.h> |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
32 #else |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
33 #include <GLES/gl.h> |
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
3697
diff
changeset
|
34 #include <GLES/glext.h> |
2765
f55c87ae336b
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2753
diff
changeset
|
35 #endif |
2753 | 36 |
2746
722339a7a126
Serves a similar purpose as SDL_opengl.h, except for OpenGLES.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
37 #ifndef APIENTRY |
722339a7a126
Serves a similar purpose as SDL_opengl.h, except for OpenGLES.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff
changeset
|
38 #define APIENTRY |
2753 | 39 #endif |