Commit Graph

2009 Commits

Author SHA1 Message Date
Sam Lantinga
e16df2dc1f Clear the second texture stage explicitly 2006-08-28 17:35:15 +00:00
Sam Lantinga
bf0ce2faf3 The dummy renderer can task advantage of the MASK optimization too, though performance probably doesn't matter here... 2006-08-28 17:34:50 +00:00
Sam Lantinga
c4d65a8405 Optimized the copy blitters a little bit 2006-08-28 14:10:46 +00:00
Sam Lantinga
a257277b32 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! :)
2006-08-28 04:39:37 +00:00
Sam Lantinga
82c3752b9e Implemented color modulation in the D3D renderer.
FIXME: Why doesn't alpha modulation appear to work?
2006-08-28 04:03:32 +00:00
Sam Lantinga
f105c474a1 Cleanup for the last checkin 2006-08-28 03:27:59 +00:00
Sam Lantinga
7462d2796b Added source color and alpha modulation support.
Added perl script to generate optimized render copy functions.
2006-08-28 03:17:39 +00:00
Ryan C. Gordon
1ee9fc8f50 Added SDL_SwapFloat* function/macros. Reference Bugzilla #293. 2006-08-24 12:49:59 +00:00
Ryan C. Gordon
2de95c23ba Forgot to check in updated SDL_audio.h ... 2006-08-24 12:48:16 +00:00
Ryan C. Gordon
2acb0d9528 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.
2006-08-24 12:10:46 +00:00
Sam Lantinga
dd630ba3e7 The GGI driver hasn't been maintained in 8 years. It's probably safe to remove. :) 2006-08-10 15:15:06 +00:00
Sam Lantinga
06a7b965e7 Missed a Qtopia change. 2006-08-10 14:55:45 +00:00
Sam Lantinga
c106fc0acd MacOS Classic is no longer supported. 2006-08-10 14:55:00 +00:00
Sam Lantinga
4d17a22012 MacOS Classic is no longer supported. 2006-08-10 14:54:23 +00:00
Sam Lantinga
00de315a97 David Hedbor is no longer maintaining the Qtopia code. 2006-08-10 14:35:42 +00:00
Sam Lantinga
d9d2534a27 Whoops, remove debug code 2006-08-07 05:25:13 +00:00
Sam Lantinga
7b3d5a6de2 Added resize support for GDI and Direct3D renderers 2006-08-07 05:24:13 +00:00
Sam Lantinga
40c9aca9e3 Added paletted OpenGL texture support. 2006-08-06 23:34:59 +00:00
Sam Lantinga
0ca97b7fa7 Fixed fullscreen modes with Cocoa video driver. 2006-08-06 08:55:37 +00:00
Sam Lantinga
fd1c0ee67b Fixed bug recreating OpenGL textures on window resize 2006-08-06 07:29:38 +00:00
Sam Lantinga
cdcc9f4ee7 Added window resize support for the software renderer 2006-08-06 04:57:28 +00:00
Sam Lantinga
71d3a5c67b Allow the render context to do necessary work when the video mode changes. 2006-08-06 04:39:13 +00:00
Sam Lantinga
34b09cb9e1 Clarified the difference between render drivers and render contexts 2006-08-06 00:09:04 +00:00
Sam Lantinga
5559b37173 Updated header documentation 2006-08-05 22:41:33 +00:00
Sam Lantinga
b59f1d5aff In general, fill in pointers to structures, rather than return them. 2006-08-05 22:34:23 +00:00
Sam Lantinga
dac1c877d9 Removed old function 2006-08-05 17:12:22 +00:00
Sam Lantinga
5b0dc2c1d5 SDL constants are all uppercase. 2006-08-05 17:09:42 +00:00
Ryan C. Gordon
13894e5028 1.3 API proposals for audio subsystem. Nothing in here is guaranteed to
stay as-is! And none of it is implemented yet!

 Use at own risk!
2006-08-03 19:34:05 +00:00
Sam Lantinga
c6ca286be1 Added SDL_GetCurrentVideoDisplay() 2006-08-02 03:20:52 +00:00
Sam Lantinga
d20c00db5b Hack to stop the beeping
Fixed keyboard window focus.
2006-07-30 08:09:20 +00:00
Sam Lantinga
9c2e46d4f2 Removed debug code. :) 2006-07-30 06:11:52 +00:00
Sam Lantinga
6387686fed Added numlock support 2006-07-30 06:11:24 +00:00
Sam Lantinga
30ee864ff5 Implemented Cocoa key event handling. 2006-07-30 05:18:33 +00:00
Sam Lantinga
b8c0a0e2ba Added right/other drag code for Cocoa windows 2006-07-29 23:00:15 +00:00
Sam Lantinga
9617df5b60 Implemented Cocoa mouse wheel events 2006-07-29 22:42:48 +00:00
Sam Lantinga
453f45eaca Simplified driver window creation code.
Implemented several Cocoa window functions
2006-07-29 21:51:00 +00:00
Sam Lantinga
4c17a4b19c 2006-07-29 03:57:55 +00:00
Sam Lantinga
a889de3fea Don't unload the OpenGL library before the X display is closed. 2006-07-29 03:56:35 +00:00
Sam Lantinga
8b676b9b28 We're not querying the glX attributes anymore... 2006-07-28 08:46:24 +00:00
Sam Lantinga
b27343c5db Implemented X11 OpenGL support.
Added support for the SDL_VIDEO_OPENGL environment variable.
2006-07-28 08:43:17 +00:00
Sam Lantinga
069c86ace4 Initial work on X11 window code in. 2006-07-27 06:53:23 +00:00
Sam Lantinga
cd7e54862e Started work on the new X11 driver. 2006-07-26 06:34:54 +00:00
Sam Lantinga
a266b805db Placate versions of ranlib which complain about empty files (Mac OS X 10.4) 2006-07-26 06:34:31 +00:00
Sam Lantinga
a12230e98a Starting fresh with the X11 driver 2006-07-26 04:22:32 +00:00
Sam Lantinga
fcf09fbc29 Oh yeah, more DGA removal 2006-07-26 04:20:59 +00:00
Sam Lantinga
0d8aa9d5f1 Added the dummy audio driver to instructions 2006-07-26 03:57:45 +00:00
Sam Lantinga
90bdbbe865 PicoGUI is no longer maintained by the author. 2006-07-26 03:55:56 +00:00
Sam Lantinga
8f13f6729b The AAlib driver is fun, but not worth rewriting for SDL 1.3 2006-07-26 03:24:27 +00:00
Sam Lantinga
5362adf858 The old windows video drivers are superceded by the unified win32 driver. 2006-07-26 03:15:41 +00:00
Sam Lantinga
74a48d3fd5 Hopefully glSDL has been superceded by the OpenGL render driver. 2006-07-26 03:12:05 +00:00