Philipp Wiesemann
8158274826
Removed unused variable from test program.
2014-04-04 23:56:15 +02:00
Sam Lantinga
07f74cbbcc
Fixed assertion loading button.bmp in testgamecontroller
2014-03-29 12:27:27 -07:00
Gabriel Jacobo
e79e6a8637
Fixes #2456 , controllermap's undo does not work correctly (by Bogdan Marinov)
2014-03-24 11:42:09 -03:00
Sam Lantinga
4d02b5b07d
Fixed warning on Mac OS X
2014-03-23 23:08:26 -07:00
Andreas Schiffler
5c3a763f09
Fix visualstudio build break introduced by changeset 8645
2014-03-19 21:48:32 -07:00
Andreas Schiffler
721340f510
Add input validation to SDL_getenv/SDL_setenv; update Stdlib testsuite; add Hints testsuite
2014-03-19 21:39:55 -07:00
Ryan C. Gordon
14e7c1e341
controllermap: Don't treat SDL_HAT_CENTERED as a valid input.
...
--HG--
extra : rebase_source : d3d69e6f0f44f04fb8bf910b5888a5040be579d3
2014-03-18 12:33:57 -04:00
Andreas Schiffler
abd90144b3
Fix bug/add test coverage for SDLTest_GenerateRunSeed helper; improve test harness adding output of repro steps for failures; improve negative test for SDL_GetError/SDL_SetError
2014-03-11 07:17:56 -07:00
Sam Lantinga
a7d2ebb8d6
Integrated David Ludwig's support for Windows RT
2014-03-09 11:36:47 -07:00
Sam Lantinga
211b54deef
Fixed line endings on WinRT source code
2014-03-09 11:06:11 -07:00
Gabriel Jacobo
42a3d5f36d
Improve testgles2 exit behavior (useful on Android)
2014-02-20 16:12:11 -03:00
Ryan C. Gordon
f4f293ae2a
Make controllermap, etc, work on platforms with hardcoded window sizes.
...
This makes sure everything renders correctly, even if, say, an Android device
gives you a certain "window" size no matter what you ask for.
2014-02-10 11:29:48 -05:00
Gabriel Jacobo
fddd6a295f
Backed out 51935d107921
...
The render target usage in controllermap is required if you are forced to use
the app at a different resolution than the one the art has been made for, for
example on Android, where you don't control the resolution.
(The coordinates for each button are hardcoded to the art size, and appear out
of place otherwise)
2014-02-10 09:26:22 -03:00
Ryan C. Gordon
a2021a76d6
Removed unused function.
2014-02-10 01:43:01 -05:00
Ryan C. Gordon
49fd59d20d
Replace testgamecontroller visualization mode with something more useful.
2014-02-10 01:41:58 -05:00
Ryan C. Gordon
755c18bf87
No need to use a render target here.
2014-02-09 15:20:41 -05:00
Edward Rudd
b299b73be1
slight adjustment to the hot plug test to allow it to be run with hap tics disabled
2014-02-07 09:35:33 -05:00
Ryan C. Gordon
a2debb00d3
Fixed return values on testhotplug mainline.
2014-02-06 07:38:41 -05:00
Ryan C. Gordon
b012f2f251
Fixed copyright date.
2014-02-06 07:38:04 -05:00
Edward Rudd
4325bf478a
add testdropfile to OS X Project
...
--HG--
extra : rebase_source : 117218f4581fb34babfa059a70a75e73ffd0c933
2014-02-04 18:21:39 -05:00
Edward Rudd
0f21a3fc45
allow safely quitting the hotplug test by pressing button 0 on the joystick
...
--HG--
extra : rebase_source : 9efb5a80803409ed4ae754c133b03e5051620a68
2014-02-04 15:40:51 -05:00
Edward Rudd
c174c3f279
testhotplug: Actually log the SDL_Error that occured on failures
2014-02-03 23:08:53 -05:00
Edward Rudd
6c52055fd6
add logging for the case when haptic is not detected on the joystick as well.
2014-02-03 23:01:19 -05:00
Edward Rudd
1e7e71be86
add simple test showing off hotplugging of joysticks w/ haptic.
...
--HG--
extra : rebase_source : 89ded9c8f4d99dc64497d7ff82a7811cf40ace3c
2014-02-03 22:52:18 -05:00
Sam Lantinga
d7940a513e
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
Sam Lantinga
420a70436c
Fixed bug 2376 - no SDL_HasAVX
...
Haneef Mubarak
AVX is the successor to SSE* and is fairly widely available. As such, it really ought to be detectable.
This functionality ought to be trivial to implement, and not having it means being forced to write an ugly workaround to check for AVX (so that normal SSE can be used if AVX is not available).
Here is an example on detecting AVX from SO (it actually shows ways to cehck for all of teh fancy instructions):
http://stackoverflow.com/questions/6121792/how-to-check-if-a-cpu-supports-the-sse3-instruction-set
2014-02-02 00:33:31 -08:00
Edward Rudd
80089de1b0
some fixes to the testshape.c code so it more correctly works.
...
--HG--
extra : rebase_source : 16e302aa18fca6d543bcefa99768a665385fa208
extra : amend_source : 5b2210968e25d6ff3851e1884de6109740fdddd1
2014-01-08 14:18:11 -05:00
David Ludwig
ebfac58560
WinRT: merged with latest SDL 2.x/HG code
...
SDL 2.x recently accepted patches to enable OpenGL ES 2 support via Google's ANGLE library. The thought is to try to eventually merge SDL/WinRT's OpenGL code with SDL-official's.
2013-11-28 22:09:21 -05:00
Ryan C. Gordon
5a281a4fda
Regenerate the configure scripts.
...
--HG--
extra : rebase_source : 9b08e819168f81497f6c37422b0e253f0ab0bef2
2013-11-25 00:11:52 -05:00
Philipp Wiesemann
0319037b72
Fixed access of command line arguments on Android in two test programs.
2013-12-25 00:11:28 +01:00
Philipp Wiesemann
eee2bcca85
Fixed unused local variable warning in test program source.
2013-12-25 00:04:31 +01:00
Philipp Wiesemann
99bebc64ce
Fixed missing return warning in test program source.
2013-12-24 19:55:41 +01:00
Sam Lantinga
b2bb6f1da1
Changed testgamecontroller to wait for controllers to be reattached, the way testjoystick does.
2013-12-23 15:55:08 -08:00
Gabriel Jacobo
3308d271b5
Wayland support
...
Based on the original port to Wayland by: Joel Teichroeb, Benjamin Franzke, Scott Moreau, et al.
Additional changes in this commit, done by me:
* Wayland uses the common EGL framework
* EGL can now create a desktop OpenGL context
* testgl2 loads GL functions dynamically, no need to link to libGL anymore
* Assorted fixes to the Wayland backend
Tested on the Weston Compositor (v1.0.5) that ships with Ubuntu 13.10,
running Weston under X. Tests ran: testrendercopyex (all backends), testgl2, testgles2,testintersections
2013-12-14 20:18:43 -03:00
Sam Lantinga
37b1229722
Fixed bug 2294 - testdrawchessboard.c Sets the render color alpha to 0x0.
...
Brandon Schaefer
This means everything will render black if the software rendering backend selects a pixel format that supports alpha. So it seems best to at lease assume alpha is supported.
2013-12-11 21:13:45 -08:00
Gabriel Jacobo
b3fa9a3e55
[Android] Handle native thread finishing when not commanded from the Java side
2013-12-05 10:51:38 -03:00
Gabriel Jacobo
137f4aedc1
Adds SDL_GameControllerAddMappingsFromRW, updates controllermap
...
SDL_GameControllerAddMappingsFromFile is now a convenience macro.
controllermap can now skip bindings by pressing space or clicking/touching the
screen.
2013-12-03 12:01:28 -03:00
Gabriel Jacobo
9054b03edb
Adds controllermap utility to test suite.
2013-12-02 19:35:04 -03:00
Philipp Wiesemann
10ad7c5969
Removed second return statement.
2013-11-23 18:37:36 +01:00
Gabriel Jacobo
f21d3e7e2a
OpenGL ES support for Windows
2013-11-22 13:24:53 -03:00
Gabriel Jacobo
67b0e2ce38
Adds testgles2
...
Source code copied from: https://github.com/fantasydr/sdl-2.0-gles (thanks!)
Minor fixes, configure script changes done by me.
2013-11-19 10:56:38 -03:00
Sam Lantinga
829e1a8d20
Fixed compile warning, thanks to Michael Pohoreski
2013-11-16 10:25:46 -08:00
Sam Lantinga
dd88bbb8d8
Added viewport test, contributed by Andreas Schiffler and improved by me and Ryan Gordon.
...
If it works correctly you should see a square moving from the upper left to the lower right, with a little yellow box at the top of the moving square.
You can pass --target as a command line option to have it use a render target instead of rendering directly to the screen. The output should be identical in this case.
2013-11-15 22:05:26 -08:00
Ryan C. Gordon
30c46bacc8
Renamed things named after BeOS to be named after Haiku instead.
...
--HG--
rename : src/audio/baudio/SDL_beaudio.cc => src/audio/haiku/SDL_haikuaudio.cc
rename : src/audio/baudio/SDL_beaudio.h => src/audio/haiku/SDL_haikuaudio.h
rename : src/filesystem/beos/SDL_sysfilesystem.cc => src/filesystem/haiku/SDL_sysfilesystem.cc
rename : src/joystick/beos/SDL_bejoystick.cc => src/joystick/haiku/SDL_haikujoystick.cc
rename : src/loadso/beos/SDL_sysloadso.c => src/loadso/haiku/SDL_sysloadso.c
rename : src/main/beos/SDL_BApp.h => src/main/haiku/SDL_BApp.h
rename : src/main/beos/SDL_BeApp.cc => src/main/haiku/SDL_BeApp.cc
rename : src/main/beos/SDL_BeApp.h => src/main/haiku/SDL_BeApp.h
rename : src/power/beos/SDL_syspower.c => src/power/haiku/SDL_syspower.c
rename : src/timer/beos/SDL_systimer.c => src/timer/haiku/SDL_systimer.c
rename : src/video/bwindow/SDL_BWin.h => src/video/haiku/SDL_BWin.h
rename : src/video/bwindow/SDL_bclipboard.cc => src/video/haiku/SDL_bclipboard.cc
rename : src/video/bwindow/SDL_bclipboard.h => src/video/haiku/SDL_bclipboard.h
rename : src/video/bwindow/SDL_bevents.cc => src/video/haiku/SDL_bevents.cc
rename : src/video/bwindow/SDL_bevents.h => src/video/haiku/SDL_bevents.h
rename : src/video/bwindow/SDL_bframebuffer.cc => src/video/haiku/SDL_bframebuffer.cc
rename : src/video/bwindow/SDL_bframebuffer.h => src/video/haiku/SDL_bframebuffer.h
rename : src/video/bwindow/SDL_bkeyboard.cc => src/video/haiku/SDL_bkeyboard.cc
rename : src/video/bwindow/SDL_bkeyboard.h => src/video/haiku/SDL_bkeyboard.h
rename : src/video/bwindow/SDL_bmodes.cc => src/video/haiku/SDL_bmodes.cc
rename : src/video/bwindow/SDL_bmodes.h => src/video/haiku/SDL_bmodes.h
rename : src/video/bwindow/SDL_bopengl.cc => src/video/haiku/SDL_bopengl.cc
rename : src/video/bwindow/SDL_bopengl.h => src/video/haiku/SDL_bopengl.h
rename : src/video/bwindow/SDL_bvideo.cc => src/video/haiku/SDL_bvideo.cc
rename : src/video/bwindow/SDL_bvideo.h => src/video/haiku/SDL_bvideo.h
rename : src/video/bwindow/SDL_bwindow.cc => src/video/haiku/SDL_bwindow.cc
rename : src/video/bwindow/SDL_bwindow.h => src/video/haiku/SDL_bwindow.h
extra : rebase_source : afd5a42647878e283dbee3a666cef2214f0e7941
2013-11-14 11:51:24 -05:00
Sam Lantinga
3a64a5a86d
Turn off resizable flag by default, you can always pass the --resize command line option if you need it.
2013-11-11 02:00:58 -08:00
Gabriel Jacobo
dd726d96bf
[Android] Fixes Bug 2041 - can't get SDL_QUIT event...
...
Thanks to Denis Bernard!
Also, changed the Android manifest so the app doesn't quit with orientation
changes, and made testgles.c exit properly on Android.
2013-11-06 11:23:24 -03:00
Sam Lantinga
3d37a0f6c9
Fixed bug 2190 - test/testdrawchessboard.c line endings
...
Joseph Carter
test/testdrawchessboard.c checks out of hg with DOS line endings on non-dos systems. Fixed via:
perl -pi -e 's/\r//g' test/testdrawchessboard.c
2013-11-03 11:27:06 -08:00
Philipp Wiesemann
0bc9aaf406
Changed parameter name for gesture template save functions from "src" to "dst".
2013-11-02 12:07:21 +01:00
David Ludwig
59df93166d
WinRT: merged with SDL 2.0.1 codebase
2013-10-27 21:26:46 -04:00
Andreas Schiffler
55dd456631
Fix error assert for negative cases of pixels_getPixelFormatName test
2013-10-21 23:17:37 -07:00