Commit graph

920 commits

Author SHA1 Message Date
Sam Lantinga
d71e0546a9 Updated to SDL 2.0, and SDL 2.0 can now be installed coexisting with SDL 1.2
--HG--
rename : sdl-config.in => sdl2-config.in
rename : sdl.m4 => sdl2.m4
rename : sdl.pc.in => sdl2.pc.in
2012-01-22 17:21:00 -05:00
Sam Lantinga
0458fa488a Renamed SetTargetTexture() to SetRenderTarget() 2012-01-22 01:26:28 -05:00
Sam Lantinga
a49a88676f Implementation of render targets, by Mason Wheeler and Gabriel Jacobo
Thanks guys!
2012-01-18 22:45:49 -05:00
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
Sam Lantinga
c160c5c596 Updated SDL test projects 2012-01-07 17:08:17 -05:00
Sam Lantinga
e9cad496a6 Added testnative to the Makefile and fixed building on Mac OS X 2012-01-07 16:57:09 -05:00
Sam Lantinga
f1b292b5fd Ryan gets fewer nuts. :) 2011-12-07 20:34:43 -05:00
Ryan C. Gordon
95de92cbf2 Backed out most of changeset 4b88086910d3, at Andreas's request. 2011-12-05 12:43:50 -05:00
Andreas Schiffler
a6b353dfa5 Fix buildbot sdl-macosx-unix-x86 and sdl-macosx-amd64 compiler warnings 2011-12-05 07:41:20 -08:00
Andreas Schiffler
ab5d30e6b4 Add clipboard tests 2011-10-29 23:34:19 -07:00
Sam Lantinga
a1f3db2298 Updated from configure.in 2011-10-19 20:23:40 -04:00
Andreas Schiffler
b1bd23a25d Refactored audio device enumeration/naming tests ana added negative cases 2011-10-05 08:08:06 -07:00
Ryan C. Gordon
0863dee582 1.3 API CHANGE: Add support for naming threads.
--HG--
extra : rebase_source : ae532d4b4d68ef86de0fc2cb6794a622e0841bce
2011-10-02 00:29:16 -04:00
Markus Kauppila
e534989ee1 Fixed option parsing code of test harness. 2011-09-18 13:01:33 +03:00
Andreas Schiffler
e9174b8226 Add tests for SDL_RectEquals and empty rectangle cases 2011-09-17 22:37:31 -07:00
Andreas Schiffler
9d8f2b6917 Add test cases for SDL_RectEmpty 2011-09-16 08:26:20 -07:00
Andreas Schiffler
13e13cd331 Added tests for SDL_UnionRect to testrect suite 2011-09-15 08:21:54 -07:00
Markus Kauppila
0ad7b65021 Cleans up the logger output a bit. Removes fuzzer invocation count
from the log if the fuzzer isn't used.
2011-09-10 19:27:39 +03:00
Andreas Schiffler
d1cc70ba65 Added tests for SDL_EnclosePoints. 2011-09-12 09:00:34 -07:00
Ryan C. Gordon
484c18aa15 Fixed a compiler warning on Visual Studio. 2011-09-09 04:17:47 -04:00
Ryan C. Gordon
caedc60d07 Removed legacy Mac OS X dlcompat code.
It was only needed for Mac OS X 10.0 through 10.2, so it seems silly to keep
 it around for SDL 1.3.

I'll leave it in the 1.2 branch for now, though.
2011-09-09 00:34:48 -04:00
Andreas Schiffler
d9a3255b23 Refactored IntersectRectAndLine tests and increased coverage 2011-09-06 23:51:46 -07:00
Andreas Schiffler
be0531f0fc Added tests for SDL_HasIntersection; added negative parameter tests; refactored existing test code 2011-09-04 20:37:01 -07:00
Andreas Schiffler
6584aa6a03 Added tests to testrect suite. Simple logger improvements. Fixed int-range fuzzer. 2011-09-04 14:57:10 -07:00
Ryan C. Gordon
d2587c649d Automated merge with https://bitbucket.org/Markusk/sdl-gsoc 2011-08-29 13:17:07 -04:00
Markus Kauppila
b47b88a0e9 Fixed an error in doxygen markup. 2011-08-28 22:27:26 +03:00
Markus Kauppila
967992d4d3 Fixed a typo. 2011-08-28 22:24:00 +03:00
Markus Kauppila
31ecfe3d3a Updated TODO. 2011-08-28 22:22:37 +03:00
Markus Kauppila
1a84329937 Minor cleaning. 2011-08-28 22:18:56 +03:00
Markus Kauppila
f4870f3996 Added elementary fuzzer-randgen invocation count. 2011-08-28 22:06:56 +03:00
Markus Kauppila
ab1eaa672b Added TODO. 2011-08-28 21:06:00 +03:00
Markus Kauppila
87e1417923 Test cases executed in their own process can now bail out if
assertion fails.

Note: Bailing out doesn't work with --in-proc option.
2011-08-28 21:00:38 +03:00
Markus Kauppila
103124ac9f Option --show-tests prints test description. 2011-08-28 20:27:25 +03:00
Markus Kauppila
877c391020 Fixed timestamp issue. 2011-08-28 20:08:36 +03:00
Markus Kauppila
d2d3506958 Changed logging behavior. Runner uses stdout as default and
file logging is enabled with --logfile [BASENAME] (or --logdir).
2011-08-28 20:01:25 +03:00
Markus Kauppila
f7a79ddf4c Refined install script to be more helpful. 2011-08-28 18:58:13 +03:00
Markus Kauppila
45e6823e5f Created SetUp and TearDown functions for testrwops suite. 2011-08-28 11:55:54 +03:00
Ryan C. Gordon
84d42b9a9f Fixed wrong datatype for shaders and programs.
This is a pointer on Mac OS X, so it risked losing data in 64-bit builds.
2011-08-23 06:27:04 -04:00
Ryan C. Gordon
cfa202c1f5 Fixed another printf() compiler warning, this time in the 1.3 branch. 2011-08-23 03:12:27 -04:00
Markus Kauppila
8632b5f433 Fixed unit float and unit double generators. 2011-08-17 12:57:14 +03:00
Markus Kauppila
7d8de2d4ba Renamed RandomInteger to RandomSint32 and RandomUnsignedInteger
to RandomUint32.
2011-08-17 11:44:57 +03:00
Markus Kauppila
38ba3e6433 Fixed an issue with nonexistant function. 2011-08-17 10:34:42 +03:00
Markus Kauppila
cdb6aa7fcf Fixes based on CR.
Some tests in rwops suite broken up to smaller tests.
2011-08-15 21:41:28 +03:00
Markus Kauppila
516b5e80a7 Fixed 'runner > mylog' problem.
Runner will tell if verbose logging is switched on.
2011-08-15 19:40:41 +03:00
Markus Kauppila
d5a4d0b8bd Cleaning up render test suite. 2011-08-15 19:18:59 +03:00
Markus Kauppila
2832493550 Renamed tests in dummy suite. 2011-08-14 21:36:43 +03:00
Markus Kauppila
499e8b0f01 Clean up. 2011-08-14 21:29:00 +03:00
Markus Kauppila
7ebdc0e829 Fixed the exec-key option. 2011-08-14 21:27:47 +03:00
Markus Kauppila
6c319b5d2b Updating dummy test suite. 2011-08-14 21:05:08 +03:00
Markus Kauppila
04b2c7e316 Cleaning up render test suite. 2011-08-14 14:38:19 +03:00