Commit Graph

89 Commits

Author SHA1 Message Date
Ozkan Sezer
1bdd06e67c remove testvulkan.vcproj (was a VS2008 left-over.) 2018-05-11 09:37:00 +03:00
Sam Lantinga
d20102e9e1 Fixed building YUV test programs (thanks Ozkan!) 2017-11-17 10:54:46 -08:00
Sam Lantinga
44087f9b2f Updated SDL's YUV support, many thanks to Adrien Descamps
New functions get and set the YUV colorspace conversion mode:
	SDL_SetYUVConversionMode()
	SDL_GetYUVConversionMode()
	SDL_GetYUVConversionModeForResolution()

SDL_ConvertPixels() converts between all supported RGB and YUV formats, with SSE acceleration for converting from planar YUV formats (YV12, NV12, etc) to common RGB/RGBA formats.

Added a new test program, testyuv, to verify correctness and speed of YUV conversion functionality.
2017-11-12 22:51:12 -08:00
Sam Lantinga
316bef38a3 Good bye, Visual Studio 2008 2017-09-22 17:02:18 -07:00
Sam Lantinga
223fc946c1 Added missing Visual Studio 2010 project for testvulkan 2017-08-28 17:28:09 -07:00
Sam Lantinga
ad2289fc49 Added Vulkan support to the Visual Studio 2010 solution 2017-08-27 22:20:17 -07:00
Sam Lantinga
f86eb22f8d Don't need the Vulkan SDK for the Visual Studio 2008 project anymore 2017-08-27 21:55:31 -07:00
Ryan C. Gordon
10d552ae31 vulkan: Initial Vulkan support!
This work was done by Jacob Lifshay and Mark Callow; I'm just merging it
into revision control.
2017-08-27 22:15:57 -04:00
Sam Lantinga
9fca03e6fd Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11
Mark Callow

The attached patch does the following for the X11 and Windows platforms, the only ones where SDL attempts to use context_create_es_profile:

- Adds SDL_HINT_OPENGL_ES_DRIVER by which the application can
  say to use the OpenGL ES driver & EGL rather than the Open GL
  driver. (For bug #2570)
- Adds code to {WIN,X11}_GL_InitExtensions to determine the maximum
  OpenGL ES version supported by the OpenGL driver (for bug #3145)
- Modifies the test that determines whether to use the OpenGL
  driver or the real OpenGL ES driver to take into account the
  hint, the requested and supported ES version and whether ES 1.X
  is being requested. (For bug #2570 & bug #3145)
- Enables the testgles2 test for __WINDOWS__ and __LINUX__ and adds
  the test to the VisualC projects.

With the fix in place I have run testdraw2, testgl and testgles2 without any issues and have run my own apps that use OpenGL, OpenGL ES 3 and OpenGL ES 1.1.
2017-01-10 08:54:33 -08:00
Sam Lantinga
3d5e8e1b6b Updated Visual Studio projects
There is now a single solution used by Visual Studio 2010 and newer
2015-06-14 18:21:04 -07:00
Sam Lantinga
fe4c10af90 Fixed Visual Studio 2008 projects
Added missing files to SDL2 project
Added missing Visual Studio 2008 tests to the solution
Added output paths which match the 2010+ projects
Added SDL project references instead of old style project dependencies
Removed post-build copy step and added data files to projects
2014-06-15 10:42:28 -07:00
Sam Lantinga
74cee7033b Updated projects for Visual Studio 2010, 2012 and 2013
* Test programs use project references instead of hard-coding SDL library dependencies
* Test data files are copied only when needed.
* Copying SDL2.dll is no longer necessary
* Fixed /SAFESEH warning
* Fixed attempted rebuild of SDL every time a test program is run
2014-06-07 21:58:18 -07:00
Sam Lantinga
e54f9ce675 Added testrumble to the Visual Studio 2013 solution 2014-03-29 12:27:02 -07:00
Andreas Schiffler
353b516a34 Add input validation to SDL_getenv/SDL_setenv; update Stdlib testsuite; add Hints testsuite 2014-03-19 21:39:55 -07:00
Sam Lantinga
eb9c43ac2c Added testoverlay2 to the Visual Studio 2013 solution 2014-03-10 03:59:47 -07:00
Gabriel Jacobo
3fcc35f5bb OpenGL ES support for Windows 2013-11-22 13:24:53 -03:00
Sam Lantinga
b139a615ac Added project files for Visual Studio 2013
Added /arch:SSE code generation option to prevent SSE2 floating point functions from being implicitly called (which aren't linked in SDL)
2013-11-10 11:51:06 -08:00
Andreas Schiffler
7582a71d05 Fix bug 2034: replace printf by SDL_Log in tests; update loopwave VS solution: copy missing dependency 2013-08-14 23:30:10 -07:00
Sam Lantinga
bbb0519eee Fix building the tests with Visual Studio 2012 (thanks Isaac!) 2013-08-07 09:20:41 -07:00
Sam Lantinga
976949bd01 Finished updating testoverlay2 for the new API and added it to the Visual Studio 2010 projects 2013-07-23 12:46:22 -07:00
Andreas Schiffler
ea5874859c Fix bug 1494: add missing test projects to VS2010/VS2010 solution 2013-07-22 06:00:41 -07:00
Sam Lantinga
c70478c904 Added testgamecontroller to the Visual Studio 2012 solution. 2013-06-28 22:42:10 -07:00
Sam Lantinga
b35eab818b Added testautomation to the Visual Studio 2008 project. 2013-06-05 22:33:10 -07:00
Andreas Schiffler
d87052e8fd Add missing VS2012 test projects; update VS2010 and VS2012 solutions; update keybord suite for VS compiler warnings 2013-06-03 19:24:18 -07:00
Andreas Schiffler
0d134ebbc0 Remove deprecated/deleted VS test projects 2013-06-03 07:28:55 -07:00
Andreas Schiffler
4835250790 Fix bug 1492: Visual Studio builds sdl.lib and sdl.dll for version 2.0 (contributed by Jan Reitz); update SDL_bool handling in test_common to fix VS compiler warnings 2013-05-30 20:03:56 -07:00
Sam Lantinga
e3041182ff Fixed Windows build 2013-05-24 03:29:31 -07:00
Andreas Schiffler
196baae63c Deprecate test/automated and test/test-automation (replaced by test/testautomation*.*) 2013-05-18 23:32:53 -07:00
Andreas Schiffler
13ea116dc5 Add pixels test suite; add a test to pixel suite; minor updates to test code to make VisualStudio happy 2013-05-01 22:14:29 -07:00
Sam Lantinga
25650692c6 Fied bug 1719 - Remove unnecessary PrecompiledHeaderOutputFile.
Hiroyuki Iwatsuki
Patch for removing unnecessary PrecompiledHeaderOutputFile.
2013-03-03 22:08:00 -08:00
Jørgen P. Tjernø
75626eac76 New SDL_MSBIndex, updated VS projects, cleanup gamecontroller.
- Updated Visual Studio 2010 project with SDL 2.0 library names
- Don't use a 256 byte LUT, but rather <32 bytes of data on the stack.
- Cleanups in SDL_gamecontroller.h
2013-02-13 17:19:21 -08:00
Jørgen P. Tjernø
4276473f79 Fix linker error for Win32 tests.
This adds the new testautomation_main.c to the VisualC projects.
2013-02-12 12:29:08 -08:00
Andreas Schiffler
5bda818e44 Add SDL_test test suite; add fuzzer test cases; fix fuzzer bug; fix compiler warnings 2013-02-08 07:14:50 -08:00
Andreas Schiffler
ef298de2c7 Added timer test suite 2013-01-14 08:14:53 -08:00
Andreas Schiffler
d58a914fe2 Add new test suite (mouse) with a few new tests 2013-01-06 18:19:30 -08:00
Andreas Schiffler
9da98d7dbf Add new test suites (events, keyboard, syswm, video) with a few new tests each 2013-01-06 15:17:59 -08:00
Andreas Schiffler
3415cc1b9f Fix VS buildbot builds 2012-12-31 19:22:05 -08:00
Andreas Schiffler
4d372b8539 Fix VS2010 and VS2012 solutions. 2012-12-31 19:11:14 -08:00
Sam Lantinga
c31c469ff6 Fixed building tests with Visual Studio 2008 2012-12-31 13:49:06 -08:00
Andreas Schiffler
85fc169e0b Add missing VS project dependencies to fix buildbot build; fix surface suite; minor update to rwops suite 2012-12-30 10:58:18 -08:00
Andreas Schiffler
09e774a39b Add testautomation to VS project; remove automated from VS project; minor update to platform suite 2012-12-30 09:58:03 -08:00
Andreas Schiffler
b8a9bd3784 Revert incorrect change to automated_VS2010 2012-11-26 18:51:17 -08:00
Sam Lantinga
23950f0183 Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds 2012-11-26 16:37:54 -08:00
Andreas Schiffler
84047df68c Fix VS2012 solution; remove accidentally submitted .patch file 2012-11-25 21:57:13 -08:00
Andreas Schiffler
f70416e545 Added VS2012 project files 2012-11-08 21:53:57 -08:00
Sam Lantinga
c484f884c5 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
Sam Lantinga
a2c8422c6c Added testscale and testrendertarget projects 2012-01-21 21:50:28 -05:00
Sam Lantinga
094db18796 Don't hardcode output paths, Visual Studio does the right thing. 2012-01-09 04:53:58 -05:00
Sam Lantinga
91c26c9eb7 Removing test projects for Visual Studio 2005 2012-01-09 04:39:55 -05:00
Andreas Schiffler
7d44cb1995 Updated VS2010 project files 2011-12-04 21:45:34 -08:00