Commit graph

1368 commits

Author SHA1 Message Date
Ryan C. Gordon
fd613a1f43 Added int32 adn float32 support to SDL_LoadWAV_RW().
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402041
2006-08-31 21:00:10 +00:00
Ryan C. Gordon
bead079669 Reordered the favored audio format list a little.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402040
2006-08-31 20:59:42 +00:00
Sam Lantinga
a1c6ec6c23 Take advantage of the existing SDL blitters for normal copy blits.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402039
2006-08-29 08:24:16 +00:00
Sam Lantinga
2bd62ed521 Clear the second texture stage explicitly
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402038
2006-08-28 17:35:15 +00:00
Sam Lantinga
1b733db29c The dummy renderer can task advantage of the MASK optimization too, though performance probably doesn't matter here...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402037
2006-08-28 17:34:50 +00:00
Sam Lantinga
04b633b920 Optimized the copy blitters a little bit
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402036
2006-08-28 14:10:46 +00:00
Sam Lantinga
d11e6208f1 Figured out how texture stages work, thanks to this:
http://www.toymaker.info/Games/html/texture_states.html
Both color and alpha source modulation work now! :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402035
2006-08-28 04:39:37 +00:00
Sam Lantinga
357dc8de4a Implemented color modulation in the D3D renderer.
FIXME: Why doesn't alpha modulation appear to work?

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402034
2006-08-28 04:03:32 +00:00
Sam Lantinga
2dc5a97f17 Cleanup for the last checkin
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402033
2006-08-28 03:27:59 +00:00
Sam Lantinga
fdafca64b3 Added source color and alpha modulation support.
Added perl script to generate optimized render copy functions.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402032
2006-08-28 03:17:39 +00:00
Ryan C. Gordon
c500e6c0b4 First shot at new audio data types (int32 and float32).
Notable changes:
 - Converters between types are autogenerated. Instead of making multiple
   passes over the data with seperate filters for endianess, size, signedness,
   etc, converting between data types is always one specialized filter. This
   simplifies SDL_BuildAudioCVT(), which otherwise had a million edge cases
   with the new types, and makes the actually conversions more CPU cache
   friendly. Left a stub for adding specific optimized versions of these
   routines (SSE/MMX/Altivec, assembler, etc)
 - Autogenerated converters are built by SDL/src/audio/sdlgenaudiocvt.pl. This
   does not need to be run unless tweaking the code, and thus doesn't need
   integration into the build system.
 - Went through all the drivers and tried to weed out all the "Uint16"
   references that are better specified with the new SDL_AudioFormat typedef.
 - Cleaned out a bunch of hardcoded bitwise magic numbers and replaced them
   with new SDL_AUDIO_* macros.
 - Added initial float32 and int32 support code. Theoretically, existing
   drivers will push these through converters to get the data they want to
   feed to the hardware.

Still TODO:
 - Optimize and debug new converters.
 - Update the CoreAudio backend to accept float32 data directly.
 - Other backends, too?
 - SDL_LoadWAV() needs to be updated to support int32 and float32 .wav files
   (both of which exist and can be generated by 'sox' for testing purposes).
 - Update the mixer to handle new datatypes.
 - Optionally update SDL_sound and SDL_mixer, etc.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402029
2006-08-24 12:10:46 +00:00
Sam Lantinga
03794d9be1 The GGI driver hasn't been maintained in 8 years. It's probably safe to remove. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402028
2006-08-10 15:15:06 +00:00
Sam Lantinga
d942ec3207 MacOS Classic is no longer supported.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402025
2006-08-10 14:54:23 +00:00
Sam Lantinga
f63cb9f282 David Hedbor is no longer maintaining the Qtopia code.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402024
2006-08-10 14:35:42 +00:00
Sam Lantinga
3972b7795d Whoops, remove debug code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402023
2006-08-07 05:25:13 +00:00
Sam Lantinga
3e23ac57e2 Added resize support for GDI and Direct3D renderers
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402022
2006-08-07 05:24:13 +00:00
Sam Lantinga
e16c932a5c Added paletted OpenGL texture support.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402021
2006-08-06 23:34:59 +00:00
Sam Lantinga
1c97a53526 Fixed fullscreen modes with Cocoa video driver.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402020
2006-08-06 08:55:37 +00:00
Sam Lantinga
296ed89309 Fixed bug recreating OpenGL textures on window resize
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402019
2006-08-06 07:29:38 +00:00
Sam Lantinga
c018c14412 Added window resize support for the software renderer
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402018
2006-08-06 04:57:28 +00:00
Sam Lantinga
a1ced0d971 Allow the render context to do necessary work when the video mode changes.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402017
2006-08-06 04:39:13 +00:00
Sam Lantinga
461c8e2db4 Clarified the difference between render drivers and render contexts
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402016
2006-08-06 00:09:04 +00:00
Sam Lantinga
a90680c736 In general, fill in pointers to structures, rather than return them.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402014
2006-08-05 22:34:23 +00:00
Sam Lantinga
bfe4f31c0e SDL constants are all uppercase.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402012
2006-08-05 17:09:42 +00:00
Sam Lantinga
7b00c63ef6 Added SDL_GetCurrentVideoDisplay()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402009
2006-08-02 03:20:52 +00:00
Sam Lantinga
8cff7eb76a Hack to stop the beeping
Fixed keyboard window focus.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402008
2006-07-30 08:09:20 +00:00
Sam Lantinga
3123b3cae3 Removed debug code. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402007
2006-07-30 06:11:52 +00:00
Sam Lantinga
ef1639f220 Added numlock support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402006
2006-07-30 06:11:24 +00:00
Sam Lantinga
f5ebc5ae8c Implemented Cocoa key event handling.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402005
2006-07-30 05:18:33 +00:00
Sam Lantinga
032809097b Added right/other drag code for Cocoa windows
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402004
2006-07-29 23:00:15 +00:00
Sam Lantinga
be01a86b9e Implemented Cocoa mouse wheel events
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402003
2006-07-29 22:42:48 +00:00
Sam Lantinga
c8d7322dc6 Simplified driver window creation code.
Implemented several Cocoa window functions

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402002
2006-07-29 21:51:00 +00:00
Sam Lantinga
7f0d36082f --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402001
2006-07-29 03:57:55 +00:00
Sam Lantinga
89ab980b38 Don't unload the OpenGL library before the X display is closed.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402000
2006-07-29 03:56:35 +00:00
Sam Lantinga
529b4ad049 We're not querying the glX attributes anymore...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401999
2006-07-28 08:46:24 +00:00
Sam Lantinga
931e1c106d Implemented X11 OpenGL support.
Added support for the SDL_VIDEO_OPENGL environment variable.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401998
2006-07-28 08:43:17 +00:00
Sam Lantinga
cc0b655042 Initial work on X11 window code in.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401997
2006-07-27 06:53:23 +00:00
Sam Lantinga
3ec5d40b87 Started work on the new X11 driver.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401996
2006-07-26 06:34:54 +00:00
Sam Lantinga
ed7da31472 Placate versions of ranlib which complain about empty files (Mac OS X 10.4)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401995
2006-07-26 06:34:31 +00:00
Sam Lantinga
532023bd76 Starting fresh with the X11 driver
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401994
2006-07-26 04:22:32 +00:00
Sam Lantinga
fe52e82bd9 Oh yeah, more DGA removal
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401993
2006-07-26 04:20:59 +00:00
Sam Lantinga
126d32c582 PicoGUI is no longer maintained by the author.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401991
2006-07-26 03:55:56 +00:00
Sam Lantinga
81cdb586d2 The AAlib driver is fun, but not worth rewriting for SDL 1.3
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401990
2006-07-26 03:24:27 +00:00
Sam Lantinga
dc3126175d The old windows video drivers are superceded by the unified win32 driver.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401989
2006-07-26 03:15:41 +00:00
Sam Lantinga
bd9931afdd Hopefully glSDL has been superceded by the OpenGL render driver.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401988
2006-07-26 03:12:05 +00:00
Sam Lantinga
7a4007d93d More DGA removal
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401987
2006-07-26 03:08:25 +00:00
Sam Lantinga
da98d71bff Removing DGA support for SDL 1.3 - it's still buggy years later, and now
it's deprecated by the developers in favor of the render APIs.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401986
2006-07-26 03:06:07 +00:00
Sam Lantinga
c5da9eeff1 Actually use the function we took the trouble to get the pointer for.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401984
2006-07-25 07:14:40 +00:00
Sam Lantinga
7c4bd5839a Fixed Objective-C memory leaks
Send an SDL quit event when Command-Q is pressed.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401983
2006-07-25 06:59:14 +00:00
Sam Lantinga
79452369ef Implemented OpenGL support on Mac OS X
The OpenGL renderer works without changes, yay! :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401982
2006-07-25 06:22:42 +00:00