No description
Find a file
Sam Lantinga b3219a6db1 Improved simultaneous support for OpenGL and OpenGL ES
From Scott Percival

Okay, I think I have something for this. Tested it on GL and GLES
machines, it seems to work okay.

- Add a new SDL GL attribute SDL_GL_CONTEXT_EGL:
        - Only useful for the X11 video driver at the moment
        - Set to 1 for an EGL context, 0 to use the default for the video driver
        - Default is 0, unless library is built for EGL only
        - Should be set after SDL init, but before window/context
creation (i.e. same place you'd specify attributes for major/minor GL
version)
- After a lot of agony pondering the least-terrible way to go about
it, made it so that X11_GL_LoadLibrary and X11_GLES_LoadLibrary check
SDL_GL_CONTEXT_EGL. If no GL context exists yet, and the attribute
choice doesn't match with the checking function, then it changes all
the function pointers in the video driver and passes control on to the
new LoadLibrary method.
- Likewise, make X11_CreateWindow check this attribute before firing
off a call to X11_GL_GetVisual/X11_GLES_GetVisual
- Added a sanity check to the start of X11_GL_LoadLibrary
- Tidied up SDL_x11opengles.h
- Moved ownership of the gles_data structure over to
X11_GLES_LoadLibrary/UnloadLibrary
- Should incorporate the 3 fixes posted by Andre Heider

This is obviously quite a bit to take in, but is (at least) a proof of
concept for the approach I think EGL/GLX mingling should take. Any
comments/criticism is much appreciated.
2012-07-18 15:17:27 -07:00
acinclude Ozkan Sezer to slouken 2011-01-26 12:23:32 -08:00
android-project Fix Android's SDLActivity for devices that may send more than one surfaceChanged 2012-06-24 21:10:17 -03:00
build-scripts small improvements in the iosbuild.sh script 2012-06-19 20:16:45 -03:00
include Improved simultaneous support for OpenGL and OpenGL ES 2012-07-18 15:17:27 -07:00
src Improved simultaneous support for OpenGL and OpenGL ES 2012-07-18 15:17:27 -07:00
test Automated tests fixes 2012-06-21 12:12:11 -03:00
VisualC Patched to compile on Windows with VS2008 and VS2010. 2012-07-11 20:56:15 -04:00
Xcode Added SDL_system.h to the various projects 2012-06-23 06:46:06 -04:00
Xcode-iOS Added SDL_system.h to the various projects 2012-06-23 06:46:06 -04:00
.DISABLED-hgeol Disable .hgeol for now...it doesn't work well at the moment. 2011-01-20 11:51:23 -05:00
.hgignore Ignore SVN metadata 2012-06-04 12:31:14 -04:00
.hgtags Tagging version before everything gets ripped out. 2010-05-09 17:00:56 -07:00
.indent.pro
aclocal.m4 Made it possible to build SDL from a fresh checkout without any additional steps. 2011-02-16 02:37:09 -08:00
Android.mk Updated Android Makefile for SDL2 2012-01-30 20:09:50 -05:00
autogen.sh SDL_revision.h is always updated as part of the build process now. 2011-02-28 09:06:15 -08:00
BUGS
configure Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD 2012-07-18 13:57:39 -07:00
configure.in Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD 2012-07-18 13:57:39 -07:00
COPYING Updated to SDL 2.0, and SDL 2.0 can now be installed coexisting with SDL 1.2 2012-01-22 17:21:00 -05:00
CREDITS Removed outdated Atari support 2009-09-20 04:15:19 +00:00
INSTALL Added svn checkout install step 2009-12-14 23:43:57 +00:00
Makefile.ds Updated Nintendo DS support 2012-02-12 21:04:01 -05:00
Makefile.in Added SDL_system.h to the various projects 2012-06-23 06:46:06 -04:00
Makefile.minimal Made it possible to build SDL from a fresh checkout without any additional steps. 2011-02-16 02:37:09 -08:00
Makefile.pandora Removed /dev/dsp DMA audio target. 2011-07-24 03:37:13 -07:00
Makefile.wiz Removed /dev/dsp DMA audio target. 2011-07-24 03:37:13 -07:00
README Removing some more references to SDL 1.3 2012-01-22 17:26:45 -05:00
README-SDL.txt Updated documentation to reflect new license 2011-04-15 14:22:08 -07:00
README.android Fixes #1422, removes global JNI Env, uses per thread copies, adds thread auto detaching. 2012-07-09 18:08:06 -03:00
README.DirectFB Updated the DirectFB support, from Couriersud 2011-02-05 16:07:10 -08:00
README.ds Updated Nintendo DS support 2012-02-12 21:04:01 -05:00
README.gesture Fixed some typos in the documentation 2010-08-22 12:03:53 -07:00
README.HG Whitespace change in a README. 2011-01-22 03:57:27 -05:00
README.iOS Created a header file for system dependent API functions, and added SDL_iPhoneSetAnimationCallback() 2012-06-22 19:19:18 -04:00
README.MacOSX
README.pandora Removing some more references to SDL 1.3 2012-01-22 17:26:45 -05:00
README.Platforms SDL still supports older iPod Touch and first generation iPhones. 2011-02-21 11:04:27 -08:00
README.Porting
README.touch Fixed some typos in the documentation 2010-08-22 12:03:53 -07:00
README.WinCE
sdl2-config.in Updated to SDL 2.0, and SDL 2.0 can now be installed coexisting with SDL 1.2 2012-01-22 17:21:00 -05:00
sdl2.m4 Switched the SDL 2 autoconf macro to AM_PATH_SDL2 2012-01-30 21:39:26 -05:00
sdl2.pc.in Updated to SDL 2.0, and SDL 2.0 can now be installed coexisting with SDL 1.2 2012-01-22 17:21:00 -05:00
SDL2.spec.in Successfully built an SDL 2.0 RPM 2012-01-22 23:36:59 -05:00
TODO Removing some more references to SDL 1.3 2012-01-22 17:26:45 -05:00
UNDER_CONSTRUCTION.txt
VisualC.html
WhatsNew Clearing the API changes for the 1.3.0 release 2011-01-19 22:20:44 -08:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 2.0

---
http://www.libsdl.org/

This is the Simple DirectMedia Layer, a general API that provides low
level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
and 2D framebuffer across multiple platforms.

The current version supports Windows, Windows CE, Mac OS X, Linux, FreeBSD,
NetBSD, OpenBSD, BSD/OS, Solaris, iOS, and Android. The code contains
support for other operating systems but those are not officially supported.

SDL is written in C, but works with C++ natively, and has bindings to
several other languages, including Ada, C#, Eiffel, Erlang, Euphoria,
Go, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP,
Pike, Pliant, Python, Ruby, and Smalltalk.

This library is distributed under the zlib license, which can be found
in the file "COPYING".

The best way to learn how to use SDL is to check out the header files in
the "include" subdirectory and the programs in the "test" subdirectory.
The header files and test programs are well commented and always up to date.
More documentation is available in HTML format in "docs/index.html", and
a documentation wiki is available online at:
	http://www.libsdl.org/cgi/docwiki.cgi

The test programs in the "test" subdirectory are in the public domain.

Frequently asked questions are answered online:
	http://www.libsdl.org/faq.php

If you need help with the library, or just want to discuss SDL related
issues, you can join the developers mailing list:
	http://www.libsdl.org/mailing-list.php

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)