Commit Graph

1269 Commits

Author SHA1 Message Date
Sam Lantinga
bcbb41b25f Implemented OpenGL support on Mac OS X
The OpenGL renderer works without changes, yay! :)
2006-07-25 06:22:42 +00:00
Ryan C. Gordon
d3f4c37f08 Patch from 1.2 branch...fix compilation on Qtopia video target (reference
Bugzilla #285).
2006-07-24 23:30:14 +00:00
Sam Lantinga
7b3e83b5be Implemented Mac OS X video mode selection. 2006-07-24 07:21:16 +00:00
Sam Lantinga
216e80ae61 Implemented Cocoa window support 2006-07-24 05:03:02 +00:00
Sam Lantinga
35f5dd14d3 Whoops, that's a while loop. :) 2006-07-23 09:16:14 +00:00
Sam Lantinga
ab6710f259 The Mac OS X Cocoa video driver is under construction...
Note that SDLmain is no longer necessary on Mac OS X. :)
2006-07-23 09:11:10 +00:00
Sam Lantinga
051f429e25 Fixed compiler warnings
Updated Visual C++ 2005 project
2006-07-23 00:55:25 +00:00
Sam Lantinga
b570fa5712 Added an environment variable to select which driver the software renderer will use. 2006-07-23 00:48:12 +00:00
Sam Lantinga
44935b57ae Fixed crash with multiple windows 2006-07-23 00:19:12 +00:00
Sam Lantinga
ef12c290da OpenGL renderer is feature complete!
Dynamically load GL functions in the OpenGL renderer.
2006-07-22 23:04:41 +00:00
Sam Lantinga
f6948f99cb Added SDL_GL_ExtensionSupported()
Use GL_ARB_texture_rectangle in the OpenGL renderer, if supported.
2006-07-22 21:58:17 +00:00
Sam Lantinga
7893fee098 Query the maximum texture size for the D3D renderer. 2006-07-22 21:17:37 +00:00
Sam Lantinga
b7e5c8f440 If the OpenGL renderer is selected for a non-OpenGL window, recreate the window with OpenGL enabled.
Added OpenGL renderer error checking.
Use fast-path texture formats in the OpenGL renderer.
2006-07-22 21:02:57 +00:00
Sam Lantinga
5b2ef05897 Switch OpenGL contexts when switching render contexts.
Query the maximum texture size and show the current render parameters.
2006-07-22 19:51:48 +00:00
Sam Lantinga
84d5c98403 Fixed OpenGL blend modes, added power of 2 texture code 2006-07-22 19:03:31 +00:00
Sam Lantinga
accc2c8f4e Bug fixes to the OpenGL renderer 2006-07-22 18:01:56 +00:00
Sam Lantinga
d533be8505 Convert SDL_malloc to SDL_calloc if appropriate, slightly faster on operating systems which map the zero page for memory allocations.
OpenGL renderer in progress
2006-07-22 08:33:18 +00:00
Sam Lantinga
e127759e0c Fixed to compile while the OpenGL renderer is under construction 2006-07-19 08:46:57 +00:00
Sam Lantinga
678d3604b9 Starting on the OpenGL renderer... 2006-07-19 07:18:45 +00:00
Sam Lantinga
26eb39ffa6 Implemented scaling in the D3D renderer 2006-07-19 05:45:42 +00:00
Sam Lantinga
6bdc957609 Implemented blend modes in the D3D renderer 2006-07-19 05:03:21 +00:00
Sam Lantinga
e48bd78a26 Implemented multi-window OpenGL program with test framework. 2006-07-19 04:24:41 +00:00
Sam Lantinga
4385bca869 Implemented Windows OpenGL support
Fixed slowdown enumerating display modes, which was hosing OpenGL as well...
Removed SDL_ from the render driver prefixes
2006-07-17 06:47:33 +00:00
Sam Lantinga
c71b106d69 Setting up the OpenGL support 2006-07-16 09:34:01 +00:00
Sam Lantinga
b8e8d039b1 Create a fake desktop mode for windowed mode apps 2006-07-16 03:35:44 +00:00
Sam Lantinga
b2d6bc4134 Look at environment variables in SDL_VideoInit() and SDL_AudioInit() 2006-07-15 19:30:18 +00:00
Sam Lantinga
edf9d1b930 Implemented fully featured dummy renderer 2006-07-15 19:29:42 +00:00
Sam Lantinga
ed287169af Streamlined the API a bit and optimized the software renderer. 2006-07-15 09:46:36 +00:00
Sam Lantinga
ec2b9003f7 Changed the name of the dummy renderer 2006-07-14 08:24:43 +00:00
Sam Lantinga
73fccc0fbd Prefer the D3D renderer over GDI, at least for testing.
Added support for the SDL_VIDEO_RENDERER environment variable to pick the desired render driver.
Implemented WritePixels support for the D3D renderer.
2006-07-14 08:22:45 +00:00
Sam Lantinga
aa2eab852a Yay! D3D renderer works! 2006-07-14 07:41:16 +00:00
Sam Lantinga
0c86ca7a06 More of the Direct3D renderer is implemented, I'm not sure why it's not showing texture copies yet... 2006-07-14 06:40:53 +00:00
Sam Lantinga
f3567e6d90 Removed libc dependency on Windows again, to fix building with Visual C++ 2005 Express Edition.
Fixed performance problem with testsprite2 on the D3D driver.
2006-07-13 08:13:02 +00:00
Sam Lantinga
c5d19656cd First stab at a D3D renderer, only 30FPS so far... ? 2006-07-12 09:25:17 +00:00
Sam Lantinga
4a6e3053ed debug cleanup 2006-07-12 08:09:57 +00:00
Sam Lantinga
04b16088cc Playing around, trying to find a fast path with GDI 2006-07-12 07:01:35 +00:00
Sam Lantinga
c1ff714652 Solved the performance problems by introducing the concept of a single-buffered
display, which is a fast path used for the whole-surface SDL 1.2 API.
Solved the flicker problems by implementing a backbuffer in the GDI renderer.

Unfortunately, now using the GDI renderer with a backbuffer and HBITMAPs is
significantly slower than SDL's surface code.  *sigh*
2006-07-12 06:39:26 +00:00
Sam Lantinga
6bc598ea61 SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
Sam Lantinga
1d95e86391 Fix for bug #240
Christian Walther contributed Cocoa cursor code.
2006-06-24 17:36:55 +00:00
Sam Lantinga
38e7b9ce94 Fixed bug #258
Account for the menu height in AdjustWindowRectEx()
2006-06-24 04:30:01 +00:00
Sam Lantinga
afd236a42a Fixed bug #255
Fixed memory leaks in the windib driver.
2006-06-24 03:41:14 +00:00
Sam Lantinga
94d74c1271 Fixed bug #260
Fixed SDL_GL_SWAP_CONTROL on Windows, and the query on Linux
2006-06-24 01:59:43 +00:00
Ryan C. Gordon
dc1d31ffc9 Swizzle ALSA channels for 5.1 output to match DirectSound and CoreAudio.
Untested, but potentially fixes Bugzilla #110.
2006-06-23 08:35:48 +00:00
Sam Lantinga
1f2b2f370c Fixed bug #69
Hopefully this takes care of most of the audio dropouts in Windows
2006-06-23 08:15:47 +00:00
Sam Lantinga
a9a3b84a56 Fixed bug #147
Only enable Unicode key events if Unicode translation is enabled.
2006-06-23 04:27:55 +00:00
Ryan C. Gordon
f496989fdc Minor bit of sanity-checking debug info in dynamic X11 code. 2006-06-23 02:16:49 +00:00
Sam Lantinga
a272763e42 Renamed, per Mike's comment on bug #157 2006-06-21 08:26:05 +00:00
Sam Lantinga
f508424971 Renamed, per Mike's comment on bug #157 2006-06-21 08:25:28 +00:00
Sam Lantinga
8cba9367ac Fixed bug #157
[patch tweaked to handle older nasm, which doesn't support :function syntax]

------- Comment #5 From Mike Frysinger 2006-05-22 01:24 [reply] -------
Created an attachment (id=132) [edit]
libsdl-hidden-nasm.patch

here's the patch i posted here:
http://www.libsdl.org/pipermail/sdl/2006-March/073618.html

this will hide the symbols dynamically if the build nasm/yasm supports the
hidden stuff ... in other words, this patch should be safe with both older and
new versions of nasm/yasm
2006-06-21 07:57:34 +00:00
Sam Lantinga
0ef7c6c8f3 Date: Fri, 9 Jun 2006 11:35:23 +0300
From: "Janne Junnila"
Subject: [SDL] SDL_SetGamma bug

You can't set the the gamma 'brighter' than 1.0. There's a patch attached.
2006-06-20 06:50:42 +00:00