SDL-mirror/test
Sam Lantinga 296e78b65f Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Scott Percival 2011-07-03 06:41:51 PDT

This submission is aimed at making life easier for OpenGL ES capable devices
running a X11 stack (e.g. Maemo, Meego, TrimSlice, other ARM SoC boards not
running Android). SDL's Pandora support already has the neccesary GLES-to-X11
glue code, however it's all ghetto'd off in Makefile.pandora and not very
flexible.

The patch:
- adds an awesome --enable-video-opengles option to configure
- re-modifies the opengles and opengles2 SDL_renderers to use function pointers
- no idea why this was removed?
- for SDL_Renderers, links in libGLESv1_CM, libGLES_CM (for PowerVR fans) or
libGLESv2 at runtime
- links in libEGL.so at runtime - the old code made an assumption that
eglFunctions could be pulled from the active GLES library, PowerVR for one
doesn't let you do that with their libGLESv2
- allows you to pick which of GLES v1 or v2 to load via
SDL_GL_CONTEXT_MAJOR_VERSION

So far I've tested this on a Nokia N900 (OMAP 3430/SGX 530 running Maemo 5) and
a Toshiba AC100 (Tegra 2 running Ubuntu 10.10). I haven't tested it on... well,
everything that isn't those two, such as a Pandora, iOS or Android device. The
Pandora specific code should be kept intact (fingers crossed), and nothing
painfully drastic has been added to the SDL_renderers. The library loading
sequence in SDL_x11opengles has been updated to accomodate both NVIDIA's
propensity to let developers get away with murder and PowerVR's alternative of
punishing every missed step.

The test apps work okay with GLES or GLES2 as the renderer. For some reason
alpha blending doesn't seem to work on the Tegra 2; last week NVIDIA pushed out
a new set of X11 GLES drivers, so I'll try and investigate once I upgrade
those. Also, this patch adds things to configure.in, include/SDL_config.h.in
and test/configure.in. I didn't know what the policy was re. committing
generated spaghetti from autotools, so ./autogen.sh has to be run again. Sorry.

I think that's about everything, let me know if there's anything I've
overlooked.
2012-01-08 02:23:37 -05:00
..
automated Fixed global suite declaration segfault via external linkage declaration 2011-05-26 20:13:49 -07:00
nds-test-progs NDS update 2011-03-26 21:28:17 -07:00
shapes Remove superflous sample shapes (same BMPs) 2010-09-15 22:33:46 -07:00
test-automation Add clipboard tests 2011-10-29 23:34:19 -07:00
acinclude.m4 Don't add NONE/bin to the path - inexplicably fixes building on mingw+msys, apparently 2006-05-01 07:23:46 +00:00
aclocal.m4 Made it possible to build SDL from a fresh checkout without any additional steps. 2011-02-16 02:37:09 -08:00
autogen.sh Added yet another variant of autoconf to the list 2006-05-15 06:39:10 +00:00
checkkeys.c Fixed a compiler warning on Visual Studio. 2011-09-09 04:17:47 -04:00
common.c Added testnative to the Makefile and fixed building on Mac OS X 2012-01-07 16:57:09 -05:00
common.h SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
configure Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11 2012-01-08 02:23:37 -05:00
configure.in Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11 2012-01-08 02:23:37 -05:00
COPYING
gcc-fat.sh Fat test programs! :) 2006-05-09 16:10:04 +00:00
graywin.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
icon.bmp Switched data files to binary format 2003-11-24 00:21:24 +00:00
loopwave.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
Makefile.in Added testnative to the Makefile and fixed building on Mac OS X 2012-01-07 16:57:09 -05:00
moose.dat
picture.xbm
README Rewrote test program for shaped windows. It definitely displays recognizable pictures now, but the resizing and shaping functionality isn't behaving correctly, possibly due to a miscalculation of alpha values. 2010-07-18 21:31:22 -04:00
sample.bmp Switched data files to binary format 2003-11-24 00:21:24 +00:00
sample.wav Switched data files to binary format 2003-11-24 00:21:24 +00:00
testalpha.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testatomic.c 1.3 API CHANGE: Add support for naming threads. 2011-10-02 00:29:16 -04:00
testaudioinfo.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testbitmap.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testblitspeed.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testcursor.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testdraw2.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testdyngl.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testdyngles.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testerror.c 1.3 API CHANGE: Add support for naming threads. 2011-10-02 00:29:16 -04:00
testfile.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testfill.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testgamma.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testgesture.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testgl.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testgl2.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testgles.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testhaptic.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testiconv.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testime.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testintersections.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testjoystick.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testkeys.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testloadso.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testlock.c 1.3 API CHANGE: Add support for naming threads. 2011-10-02 00:29:16 -04:00
testmultiaudio.c testmultiaudio.c needs to #include <stdio.h>. 2011-08-03 03:12:07 -04:00
testnative.c Added testnative to the Makefile and fixed building on Mac OS X 2012-01-07 16:57:09 -05:00
testnative.h Updated SDL test projects 2012-01-07 17:08:17 -05:00
testnativecocoa.m Added test program for SDL_CreateWindowFrom() 2009-02-09 05:32:12 +00:00
testnativew32.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testnativex11.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testoverlay.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testoverlay2.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testplatform.c Fixed another printf() compiler warning, this time in the 1.3 branch. 2011-08-23 03:12:27 -04:00
testpower.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testresample.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testrumble.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testscale.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testsem.c 1.3 API CHANGE: Add support for naming threads. 2011-10-02 00:29:16 -04:00
testshader.c Fixed wrong datatype for shaders and programs. 2011-08-23 06:27:04 -04:00
testshape.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testsprite.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testsprite2.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testspriteminimal.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
teststreaming.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testthread.c 1.3 API CHANGE: Add support for naming threads. 2011-10-02 00:29:16 -04:00
testtimer.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testver.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testvidinfo.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testwin.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testwm.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
testwm2.c SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
threadwin.c 1.3 API CHANGE: Add support for naming threads. 2011-10-02 00:29:16 -04:00
torturethread.c 1.3 API CHANGE: Add support for naming threads. 2011-10-02 00:29:16 -04:00
utf8.txt Updated by Ryan Gordon 2006-03-13 16:56:01 +00:00

These are test programs for the SDL library:

	checkkeys	Watch the key events to check the keyboard
	graywin		Display a gray gradient and center mouse on spacebar
	loopwave	Audio test -- loop playing a WAV file
	testalpha	Display an alpha faded icon -- paint with mouse
	testaudioinfo	Lists audio device capabilities
	testbitmap	Test displaying 1-bit bitmaps
	testblitspeed	Tests performance of SDL's blitters and converters.
	testcdrom	Sample audio CD control program
	testcursor	Tests custom mouse cursor
	testdyngl	Tests dynamically loading OpenGL library
	testerror	Tests multi-threaded error handling
	testfile	Tests RWops layer
	testgamma	Tests video device gamma ramp
	testgl		A very simple example of using OpenGL with SDL
	testgl2		An even simpler example using the SDL 1.3 API
	testhread	Hacked up test of multi-threading
	testiconv	Tests international string conversion
	testjoystick	List joysticks and watch joystick events
	testkeys	List the available keyboard keys
	testloadso	Tests the loadable library layer
	testlock	Hacked up test of multi-threading and locking
	testmultiaudio	Tests using several audio devices
	testoverlay	Tests the software/hardware overlay functionality.
	testoverlay2	Tests the overlay flickering/scaling during playback.
	testpalette	Tests palette color cycling
	testplatform	Tests types, endianness and cpu capabilities
	testsem		Tests SDL's semaphore implementation
	testshape	Tests shaped windows
	testsprite	Example of fast sprite movement on the screen
	testsprite2	Improved version of testsprite
	testtimer	Test the timer facilities
	testver		Check the version and dynamic loading and endianness
	testvidinfo	Show the pixel format of the display and perfom the benchmark
	testwin		Display a BMP image at various depths
	testwm		Test window manager -- title, icon, events
	testwm2		Improved version of testwm
	threadwin	Test multi-threaded event handling
	torturethread	Simple test for thread creation/destruction