Commit Graph

240 Commits

Author SHA1 Message Date
Andreas Schiffler
f70416e545 Added VS2012 project files 2012-11-08 21:53:57 -08:00
Sam Lantinga
4d5b6cd8b7 Updated the Visual Studio 2010 project with the new message box functionality. 2012-10-30 19:21:42 -07:00
Sam Lantinga
913254a6e8 Added Windows message box implementation, but it needs a little work on layout. 2012-10-30 18:59:56 -07:00
Sam Lantinga
b53cdc758a Whoops, that's a header! 2012-10-01 00:02:07 -07:00
Sam Lantinga
af274bb9f5 Added SDL_dropevents.c to the Visual C projects 2012-09-30 23:08:46 -07:00
Ryan C. Gordon
0a26fda2e1 Patched to compile on Windows with VS2008 and VS2010. 2012-07-11 20:56:15 -04:00
Sam Lantinga
ffabd91859 Added SDL_system.h to the various projects 2012-06-23 06:46:06 -04:00
Sam Lantinga
e3179ba01b Fixed compiling with Visual Studio 2012-06-19 13:50:14 -04:00
Sam Lantinga
7fda375925 Updated VS2010 project for the new version.rc location - thanks to Rainer Deyke 2012-02-04 10:42:12 -05:00
Sam Lantinga
254cf2c53c Removed old compat files from Visual Studio and Xcode projects 2012-01-22 22:09:29 -05: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
27f336ae6e Added the correct version.rc to the Visual Studio build. 2012-01-21 12:10:14 -05:00
Sam Lantinga
ce42b7c89d Added spaces for the include path 2012-01-16 20:40:10 -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
Sam Lantinga
cc8501bdc4 I can't test Visual Studio 2005 configurations anymore, and I don't think anyone is using it for production games. 2012-01-09 04:38:34 -05:00
Sam Lantinga
5972cfa610 Fixed bug 1287 - VS2010 project doesn't include the SDL_syscond.c file
Liam 2011-08-23 09:09:18 PDT
Hiya!

Seems like there's no implementation of condition variables included when
building with VS2010, adding the generic SDL_syscond.c file to the project
seems to fix it right up.
2012-01-08 01:15:20 -05:00
Sam Lantinga
e256711bb9 Happy New Year! 2011-12-31 09:28:07 -05:00
Andreas Schiffler
7d44cb1995 Updated VS2010 project files 2011-12-04 21:45:34 -08:00
Ryan C. Gordon
3bd23ad70f Removed SDL_xaudio2.h ... no real need for this to be separate. 2011-08-22 14:37:45 -04:00
Ryan C. Gordon
854a2e9098 Implemented XAudio2 target for Windows (and Xbox360, theoretically!). 2011-08-04 01:07:09 -04:00
Ryan C. Gordon
7de8cc401e Reworked Windows waveOut code.
Implemented multi-device support, changed name to "winmm".
2011-08-04 01:24:22 -04:00
Ryan C. Gordon
26705b7afc Reworked Windows DirectSound code.
Now supports multiple devices, and uses DirectSound 8 instead of 5. Changed
name to "directsound" and renamed source directory.
2011-08-04 01:26:12 -04:00
Tim Angus
e4de79558c * SDL_IOS_IDLE_TIMER_DISABLED hint 2011-06-10 14:23:36 +01:00
Dennis Cappendijk
61b88719cb Debug win 32 settings was wrongfully set to build the Release 32bit version. 2011-04-20 11:25:01 +02:00
Sam Lantinga
4b0ddc8d7c Fixed bug 1185 (VS 2010 project files do not support side-by-side 32-bit and 64-bit builds)
Ed Kiser      2011-04-19 09:28:53 PDT

The Visual Studio 2010 project files have hard-coded relative paths which
prevent them from doing side-by-side 32-bit and 64-bit builds.

I have attached a patch that appears to fix this problem.
2011-04-19 09:53:01 -07:00
Sam Lantinga
117146456c Removed buggy and LGPL MMX mixing routines. 2011-04-08 13:16:33 -07:00
Sam Lantinga
f45b146128 Fixed permissions 2011-03-25 10:54:13 -07:00
Sam Lantinga
6af452ca77 Added quotes to the post-build copy commands 2011-03-15 22:42:26 -07:00
Sam Lantinga
de7e7ed3e2 Fixed dependencies for testcursor 2011-03-15 22:41:14 -07:00
Sam Lantinga
9ad3d2ebf8 Copy icon.bmp for the testcursor build 2011-03-11 14:30:00 -08:00
Sam Lantinga
069fbf4861 Gamma support is back!
New API functions:
	SDL_SetWindowBrightness()
	SDL_GetWindowBrightness()
	SDL_SetWindowGammaRamp()
	SDL_GetWindowGammaRamp()
	SDL_CalculateGammaRamp()
2011-03-11 08:49:20 -08:00
Sam Lantinga
b206d7290d Include an updated Version.rc in Visual Studio builds 2011-03-09 18:26:35 -08:00
Sam Lantinga
cd962003a0 Fixed 64-bit compiling 2011-03-07 23:27:51 -08:00
Sam Lantinga
6b919539d3 The msimg library isn't needed anymore. 2011-03-07 22:06:12 -08:00
Sam Lantinga
89d7238dbf Fixed the libraries linked with Visual Studio 2010, the msimg library isn't needed anymore. 2011-03-07 22:03:11 -08:00
Sam Lantinga
572abba9b9 Added support for Windows cursors 2011-02-28 23:50:32 -08:00
Sam Lantinga
a3bb35d039 Removed extra NoStdio configuration 2011-02-28 20:16:12 -08:00
Sam Lantinga
7fa84f6a78 Re-added the 3DNow! and AltiVec instruction support. 2011-02-22 21:44:36 -08:00
Sam Lantinga
c2092ce469 Fixed debug format 2011-02-17 18:53:46 -08:00
Sam Lantinga
579f2fc55e Removed the obsolete NoSTDIO configurations 2011-02-17 12:16:01 -08:00
Sam Lantinga
dbb0a44739 Renamed SDL_keysym.h to SDL_keycode.h to avoid confusion. 2011-02-16 15:46:12 -08:00
Sam Lantinga
307a90d292 Made it possible to build SDL from a fresh checkout without any additional steps.
The trick is that if you're using configure and you don't want to have SDL_config.h and SDL_revision.h to show up as modified, you need to configure and build from a separate directory.

You also need to include SDL_revision.h directly if you want to use the SDL_REVISION constant, as a side effect of these changes.
2011-02-16 02:37:09 -08:00
Sam Lantinga
e66826bbdf Patch from Ken Rogoway:
Migrate all of the recent changes into the SDL VS2005 project file.
Fix missing return value in SDL_pixels.c
Fix compile error in testscale.c, variable was incorrectly named.
Added VS2005 project file for testscale
2011-02-14 00:45:16 -08:00
Sam Lantinga
76489b5e9e Removed unused leak detection code. 2011-02-11 14:23:22 -08:00
Sam Lantinga
7e3a76e238 Fixed compiling on Windows 2011-02-11 10:13:30 -08:00
Sam Lantinga
efc19178c7 Fixed compiling on Windows
Added an untested shader for YV12 textures
2011-02-09 10:31:12 -08:00
Sam Lantinga
47818cfba9 Added a simple log message API 2011-02-07 16:45:40 -08:00
Sam Lantinga
8d99feca16 Updated projects 2011-02-05 12:01:36 -08:00
Sam Lantinga
64db716d1b Updated Visual Studio 2010 project 2011-02-04 14:06:01 -08:00
Sam Lantinga
9f81da0aa6 Removed missing file 2011-02-04 13:57:55 -08:00
Sam Lantinga
93a4e38e98 Added a way to get a framebuffer interface for a window, and also a way to create a software renderer for an arbitrary surface.
The software renderer has been re-routed to use the framebuffer interface, which makes it possible to have software rendering available even on simple ports.
2011-02-03 15:49:37 -08:00
Sam Lantinga
405d4ed7e4 Made it possible to create a texture of any format, even if not supported by the renderer.
This allows me to reduce the set of formats supported by the renderers to the most optimal set, for a nice speed boost.
2011-02-03 00:19:40 -08:00
Sam Lantinga
8bf50cc83c Moved the rendering code out to a separate directory in the hope that it can someday be completely decoupled from the rest of the library and be expanded to an awesome 2D on 3D library. 2011-02-02 14:34:54 -08:00
Sam Lantinga
adfafcaa35 Removing Visual Studio projects for testpalette 2011-02-01 21:51:54 -08:00
Sam Lantinga
096a6b8d79 Removed partially functional renderers 2011-01-31 22:21:29 -08:00
Sam Lantinga
cff0c4846b Fixed quotes around Mercurial revision text 2011-01-27 20:37:54 -08:00
Sam Lantinga
8903c6651b 0 isn't a valid Mercurial revision 2011-01-27 20:14:10 -08:00
krogoway
ece000dbf1 Always copy the SDL_config_windows.h to SDL_config.h for VisualC 2005, 2008 and 2010 projects. 2011-01-27 20:30:39 -06:00
krogoway
86dd80b24b Added SDL_window.* to the project. 2011-01-24 23:54:21 -06:00
Sam Lantinga
01fa14dc42 Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c
2011-01-24 21:20:30 -08:00
Sam Lantinga
08ad787807 Fixed bug #925
Changed "win32" to "windows"
2011-01-20 18:04:05 -08:00
Sam Lantinga
317257b056 Use the debug C runtime for the debug configuration 2011-01-19 13:50:53 -08:00
Sam Lantinga
127b01bc8a The clipboard API was missing from the 2010 project 2011-01-19 13:44:21 -08:00
Sam Lantinga
8018c7aff8 Added post build step to copy SDL and data files into the test projects 2011-01-19 13:07:25 -08:00
Sam Lantinga
b171384544 Added testshape to the Debug configuration 2011-01-19 13:07:06 -08:00
Sam Lantinga
2454e69555 Added post build step to copy SDL and data files into the test projects 2011-01-19 11:35:54 -08:00
Sam Lantinga
54e9e14daf Added testatomic test project 2011-01-17 13:42:24 -08:00
Sam Lantinga
38e31e4598 Updated the atomic API for better use cases 2011-01-15 12:41:59 -08:00
Sam Lantinga
6e25b65a44 Jcw87 to Sam
The project files for VS 2005 are still outdated/messed up. I have a patch that will bring the VS 2005 project files up to date with the VS 2008 project files, add the x64 platform to the VS 2005 project files, fix a few issues with x64 in VS 2008, and a few other misc changes that don't really change the output at all.
2011-01-09 08:35:18 -08:00
Jim Grandpre
c6627d1b6d Fixed SDL_VS2005.vcproj 2010-12-15 21:31:12 -05:00
Jim Grandpre
0d9ae52c6c Reverted SDL_VS2005.vcproj to revision 4634. 2010-12-15 21:21:13 -05:00
Sam Lantinga
deaf19e6c2 Added a Visual Studio project for testgesture 2010-11-30 12:38:46 -08:00
Sam Lantinga
bd97b747e3 Removed references to testwm 2010-11-30 12:04:01 -08:00
Andreas Schiffler
92523c9d44 Fix and rename VS2010 project files, add tests to VS2010 solution, fix VS compiler warning 2010-11-19 21:51:33 -08:00
Sam Lantinga
a9078b519d Updated build for Visual Studio 2010 2010-09-17 09:08:47 -07:00
Andreas Schiffler
04a527d771 - added directx include path to VS2008 solution
- updated shape vcproj and add it to VS2008 solution
- minor changes (i.e. typecasting) to get rid of compiler warnings in VS
2010-09-15 22:15:47 -07:00
Andreas Schiffler
c366d9cf51 Add missing imm32.lib from VS2010 project 2010-09-07 20:56:02 -07:00
Sam Lantinga
256b2c3990 Compiling in atan()/atan2() implementation on Visual Studio 2008. 2010-08-29 16:55:58 -07:00
Sam Lantinga
d343754786 Fixed compiling with Visual Studio 2008 2010-08-29 14:22:22 -07:00
Andreas Schiffler
b0d0e9f2f0 Update VS2010 project to add new files; update new files so code builds on Win32/Win64 2010-08-23 23:44:28 -07:00
Sam Lantinga
b7c5d88e6a Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows 2010-08-22 13:45:56 -07:00
Sam Lantinga
d4d88abae0 Merged Daniel's Google Summer of Code work from SDL-gsoc2010_IME 2010-08-22 12:39:27 -07:00
egottlieb
1dac65bd3a Finally got the Win32 API code for shaping to work! Just need to fix SDL_CalculateShapeTree() now! 2010-08-14 16:14:36 -04:00
egottlieb
86bd63adea Improving Cocoa implementation and fixed a small bug in SDL_shape.c. 2010-08-05 18:58:45 -04:00
egottlieb
1123728a5d Removed superfluous VS2010 build files. 2010-08-03 10:10:06 -04:00
egottlieb
1d4ad960e8 Added and re-added VS2010 solution files. 2010-08-02 22:20:13 -04:00
egottlieb
d8d77da906 Added VS2010 build files. 2010-08-02 21:43:08 -04:00
egottlieb
ce799da578 Worked on Windows implementation and the quad-trees. 2010-08-02 01:54:59 -04:00
egottlieb
1341532f15 Added VS2010 tests solution file. 2010-08-01 23:27:22 -04:00
egottlieb
94bc2a7db5 Added Windows build files for testshape. 2010-08-01 23:26:37 -04:00
egottlieb
157494348a Converted some project files to VS2010, adding new files. Backups were made. 2010-08-01 23:16:32 -04:00
egottlieb
ad864c387a Changed the file name to its correct, required one. 2010-08-01 23:07:59 -04:00
Eli Gottlieb
c94b94e367 Added Andreas's patch to fix my silly C++-style errors. 2010-07-29 22:57:39 -04:00
Eli Gottlieb
e58ba0a462 Reapplied Win32 make-it-build patch. What's going on? Still get rendering artifacts when testing on x11, have literally no idea why. 2010-07-20 12:42:43 -04:00
dewyatt
ea01e5af61 Merge with main repo (mainly for non-printable character fix) 2010-07-18 13:48:23 -04:00
Eli Gottlieb
bc85c58194 Added in Visual Studio patch. 2010-07-15 01:41:38 -04:00
Jim Grandpre
4b707013d1 Added alternative finger tracking method. Still prefer IPHONE_TOUCH_EFFICIENT_DANGEROUS. 2010-07-13 18:31:09 -04:00
Sam Lantinga
6f2000e6d2 Merged changes from the main SDL codebase 2010-07-12 21:09:23 -07:00
Sam Lantinga
b833ea1351 Amazingly the Windows code is almost identical to the Mac OS X code. :) 2010-07-08 23:07:34 -07:00
Eli Gottlieb
86a73e972e Ported over, to the best of my ability, the code for Win32 shaped windows and patched in the correct C syntax and coding conventions of SDL. 2010-07-08 22:52:49 -04:00
Sam Lantinga
ca5e2aca83 Added Windows clipboard support 2010-07-08 05:43:34 -07:00
Sam Lantinga
2be0429676 Removed obsolete header file 2010-07-06 10:58:23 -07:00
dewyatt
3e89cf84fc Merge 2010-07-06 02:07:42 -04:00
Sam Lantinga
f37a98447c Removed SDL.lib and SDLmain.lib from the projects since the dependencies are set up properly. 2010-07-05 18:18:25 -07:00
Sam Lantinga
acc9de6fd9 Added dependencies on SDL.lib and SDLmain.lib to the test programs 2010-07-05 17:14:37 -07:00
Sam Lantinga
6931049bd6 Split out the Visual C++ 2005 and 2008 projects explicitly.
Added the test programs to the Visual C++ 2008 project.
2010-07-05 17:10:34 -07:00
Sam Lantinga
ee344feef6 Added missing file to the automated test project 2010-07-05 13:10:31 -07:00
jimtla
02a308063c More fixes for windows. Disabled tablet code. 2010-06-10 00:15:17 -04:00
jimtla
abf13d5afd Fixed some windows compilation bugs - Still does not compile. 2010-06-03 11:08:17 -04:00
Sam Lantinga
cb028e3357 Fixed building under Visual Studio 2010-01-15 20:05:49 +00:00
Sam Lantinga
4c1edf5a4e Updated to include new files 2009-12-24 19:18:41 +00:00
Sam Lantinga
5837d39cf6 Added rectangle test 2009-12-24 19:16:08 +00:00
Sam Lantinga
f0f7a43ea2 Added the automated test to the Visual Studio 2008 project 2009-11-25 04:41:09 +00:00
Sam Lantinga
fc787a45f4 Whoops, need " inside quotes 2009-10-17 23:29:52 +00:00
Sam Lantinga
aaa2d5a649 Fixed bug #852
Jesse Anders      2009-10-17 14:17:25 PDT

In VC++, the build script that creates SDL_config.h and SDL_revision.h fails
when the project directory path includes spaces. For example, if the project
directory path is:

c:\Documents and Settings\Jesse\My Documents\Visual Studio 2008\Projects\SDL
1.3\VisualC\SDL\

The following error is generated:

'and' is not recognized as an internal or external command

Placing all paths in quotes fixes this.
2009-10-17 21:46:08 +00:00
Sam Lantinga
acbb4b1668 Whoops, the ProjectDir is one level lower than the SolutionDir 2009-10-11 10:30:47 +00:00
Sam Lantinga
1ac23708d4 stefanullinger to me
I updated and wanted to compile SDL, but it does not work.
The reason is the new pre-build step.

Currently it says:

"if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY
echo Copying SDL_config_win32.h to SDL_config.h...
copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h
:SDLCONFIGOKAY

if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY
echo Creating stub SDL_revision.h file...
echo #define SDL_REVISION 0 >$(SolutionDir)\..\include\SDL_revision.h
:SDLREVISIONOKAY"


So ... the problem with this lines is, that they lookup the SolutionDir...
I think it should use the ProjectDir here!
I - for example - want to use SDL within my engine...
So my engine is the solutionDir...not SDL...SDL is just a sub-project.

I think you should change this, shouldn't you?!

Regards,
Stefan
2009-10-11 10:22:22 +00:00
Sam Lantinga
f0329e3a42 Fixed bug #830
Added pre-build step to generate required headers
2009-10-08 09:37:58 +00:00
Sam Lantinga
94640ca082 Fixed bug #830
Added pre-build step to generate required headers
2009-10-08 09:32:07 +00:00
Sam Lantinga
2cf789384c Upgraded solution to Visual Studio 2008 and added 64-bit target 2009-09-06 04:40:29 +00:00
Sam Lantinga
1578afe5da Removed CD-ROM code from Visual C projects 2009-09-05 21:31:50 +00:00
Ryan C. Gordon
015036e09c Added power API and test program to Visual C++ project files. 2009-06-17 04:26:19 +00:00
Sam Lantinga
9695d7f91c Added missing files 2009-02-19 04:03:05 +00:00
Sam Lantinga
2b662375d6 Added testdraw2 to Visual C++ tests 2008-12-31 07:35:55 +00:00
Sam Lantinga
b549312e0d Added project for testdraw2 2008-12-30 03:54:34 +00:00
Sam Lantinga
792319a9e6 Visual C++ 5 and 6 are no longer supported. You can use Visual C++ Express Edition to build SDL. 2008-12-30 03:51:20 +00:00
Sam Lantinga
0465595d39 Updated to build on Windows 2008-12-25 05:11:29 +00:00
Sam Lantinga
befb0f7f42 Updated copyright date 2008-12-08 00:27:32 +00:00
Sam Lantinga
1394a9a4dc Added testsprite test projects for Visual Studio 2008-11-24 23:55:18 +00:00
Sam Lantinga
6a2047e7ea Added software fallback for YUV overlay code when YUV textures aren't available. 2008-11-24 23:25:36 +00:00
Sam Lantinga
e6e45a547d Updated Visual C++ build 2008-09-15 07:34:36 +00:00
Sam Lantinga
d4c23af239 Updated Visual C++ project 2008-02-10 05:14:28 +00:00
Sam Lantinga
99d8df4fc1 Enabled SSE2 intrinsics 2007-08-17 06:41:20 +00:00
Sam Lantinga
d5d655cc43 Enabled 3DNow! intrinsic support 2007-08-17 03:22:03 +00:00
Sam Lantinga
fd5ae1f46d SSE and MMX intrinsics work with Visual Studio now... 2007-08-16 06:37:22 +00:00
Sam Lantinga
b886cc3b5c Fixed a few compiler warnings.
Added SDL_blit_copy.c to the Visual C++ project

The SSE and MMX intrinsics don't compile on Visual Studio yet...
2007-08-16 06:20:51 +00:00
Sam Lantinga
686b4969d1 Switched afxres.h to winresrc.h 2007-07-23 18:46:09 +00:00
Sam Lantinga
7839797798 Unpacked project archives to get individual file history in subversion 2007-07-21 17:09:01 +00:00