SDL/include
Sam Lantinga 719eabe5ee 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
..
begin_code.h Fixed structure alignment mismatch between Visual Studio and gcc on 64-bit architectures. 2012-01-09 07:07:43 -05:00
close_code.h Happy New Year! 2011-12-31 09:28:07 -05:00
doxyfile Removing some more references to SDL 1.3 2012-01-22 17:26:45 -05:00
SDL_assert.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_atomic.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_audio.h Removing some more references to SDL 1.3 2012-01-22 17:26:45 -05:00
SDL_blendmode.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_clipboard.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_config_android.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_config_iphoneos.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_config_macosx.h Patched to compile on Mac OS X with Xcode (Unix configure already worked). 2012-07-11 20:40:02 -04:00
SDL_config_minimal.h Check for _STDINT_H in SDL_config_minimal.h 2012-02-07 01:26:00 -05:00
SDL_config_nintendods.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_config_pandora.h Initial support for XInput2 by Dimitris Zenios 2012-05-30 11:25:35 -04:00
SDL_config_windows.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_config_wiz.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_config.h Switched back to configure generating SDL_config.h 2012-01-19 01:55:51 -05:00
SDL_config.h.in 1.Fixed a memory leak inside XInput2 code 2012-05-31 19:23:30 +03:00
SDL_copying.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_cpuinfo.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_endian.h Fixed inline assembly warning for PPC 2012-01-14 00:49:25 -05:00
SDL_error.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_events.h Removed the SDL 1.2 compatibility API... we'll see how painful this is. 2012-01-22 18:11:41 -05:00
SDL_gesture.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_haptic.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_hints.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_input.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_joystick.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_keyboard.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_keycode.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_loadso.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_log.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_main.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_mouse.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_mutex.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_name.h Added a new header file: SDL_loadso.h 2002-03-06 05:20:11 +00:00
SDL_opengl.h Patched to compile on FreeBSD 8.2. 2012-07-11 22:20:02 -04:00
SDL_opengles.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_opengles2.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_pixels.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_platform.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_power.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_quit.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_rect.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_render.h RenderCopyEx,rotation and flipping for all hardware/software backends (#1308) 2012-06-01 19:51:08 -03:00
SDL_revision.h Unofficial builds should have a 0 revision number - if this accidentally gets checked in with a different revision, this file should be reverted to this content. 2012-01-14 13:17:01 -05:00
SDL_rwops.h Fixes issue #1500 "SDL_RWops fails under Android 4" by removing stale Local Refs 2012-05-25 15:35:41 -03:00
SDL_scancode.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_shape.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_stdinc.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_surface.h Re-added SDL_SWSURFACE, because it looks silly to always pass 0 to SDL_CreateRGBSurface() 2012-01-22 18:37:46 -05:00
SDL_system.h Disable the SDL event pump after the SDL main routine returns, since events will be dispatched by the Cocoa event loop. 2012-06-25 11:10:34 -04:00
SDL_syswm.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_thread.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_timer.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_touch.h Created a header file for system dependent API functions, and added SDL_iPhoneSetAnimationCallback() 2012-06-22 19:19:18 -04:00
SDL_types.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_version.h 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
SDL_video.h Improved simultaneous support for OpenGL and OpenGL ES 2012-07-18 15:17:27 -07:00
SDL.h Created a header file for system dependent API functions, and added SDL_iPhoneSetAnimationCallback() 2012-06-22 19:19:18 -04:00