annotate include/SDL_opengles.h @ 5207:daa5463466c5

Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
author Sam Lantinga <slouken@libsdl.org>
date Sun, 06 Feb 2011 02:35:14 -0800
parents f7b03b6838cb
children b530ef003506
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
daa5463466c5 Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents: 3697
diff changeset
3 Copyright (C) 1997-2010 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
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
Sam Lantinga <slouken@libsdl.org>
parents: 2746
diff changeset
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
Sam Lantinga <slouken@libsdl.org>
parents: 2746
diff changeset
39 #endif