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
Ryan C. Gordon
941ef5db91
Patch from 1.2 branch...fix compilation on Qtopia video target (reference
...
Bugzilla #285 ).
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401981
2006-07-24 23:30:14 +00:00
Sam Lantinga
1474493514
Implemented Mac OS X video mode selection.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401979
2006-07-24 07:21:16 +00:00
Sam Lantinga
56c1ba8073
Implemented Cocoa window support
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401978
2006-07-24 05:03:02 +00:00
Sam Lantinga
44f7f92b8a
Whoops, that's a while loop. :)
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401977
2006-07-23 09:16:14 +00:00
Sam Lantinga
6822a805b4
The Mac OS X Cocoa video driver is under construction...
...
Note that SDLmain is no longer necessary on Mac OS X. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401976
2006-07-23 09:11:10 +00:00
Sam Lantinga
d4e887aa04
Fixed compiler warnings
...
Updated Visual C++ 2005 project
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401975
2006-07-23 00:55:25 +00:00
Sam Lantinga
74b85ef7fe
Added an environment variable to select which driver the software renderer will use.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401974
2006-07-23 00:48:12 +00:00
Sam Lantinga
1d8a5a2349
Fixed crash with multiple windows
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401973
2006-07-23 00:19:12 +00:00
Sam Lantinga
e06b514882
OpenGL renderer is feature complete!
...
Dynamically load GL functions in the OpenGL renderer.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401972
2006-07-22 23:04:41 +00:00
Sam Lantinga
c05ca3687f
Added SDL_GL_ExtensionSupported()
...
Use GL_ARB_texture_rectangle in the OpenGL renderer, if supported.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401971
2006-07-22 21:58:17 +00:00
Sam Lantinga
f4ac9ed70c
Query the maximum texture size for the D3D renderer.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401970
2006-07-22 21:17:37 +00:00
Sam Lantinga
75ff5f31f2
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.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401969
2006-07-22 21:02:57 +00:00
Sam Lantinga
68df2209ba
Switch OpenGL contexts when switching render contexts.
...
Query the maximum texture size and show the current render parameters.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401968
2006-07-22 19:51:48 +00:00
Sam Lantinga
5c1901a93d
Fixed OpenGL blend modes, added power of 2 texture code
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401967
2006-07-22 19:03:31 +00:00
Sam Lantinga
46ad1ad5d6
Bug fixes to the OpenGL renderer
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401966
2006-07-22 18:01:56 +00:00
Sam Lantinga
2fe561616a
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
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401965
2006-07-22 08:33:18 +00:00
Sam Lantinga
2b538200ba
Fixed to compile while the OpenGL renderer is under construction
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401964
2006-07-19 08:46:57 +00:00
Sam Lantinga
397be19fd2
Starting on the OpenGL renderer...
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401963
2006-07-19 07:18:45 +00:00
Sam Lantinga
cfe0a80302
Implemented scaling in the D3D renderer
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401962
2006-07-19 05:45:42 +00:00
Sam Lantinga
9eea51e280
Implemented blend modes in the D3D renderer
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401961
2006-07-19 05:03:21 +00:00
Sam Lantinga
f2c829616b
Implemented multi-window OpenGL program with test framework.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401960
2006-07-19 04:24:41 +00:00
Sam Lantinga
e0a8c14a39
Implemented Windows OpenGL support
...
Fixed slowdown enumerating display modes, which was hosing OpenGL as well...
Removed SDL_ from the render driver prefixes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401958
2006-07-17 06:47:33 +00:00
Sam Lantinga
2eed452d04
Setting up the OpenGL support
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401957
2006-07-16 09:34:01 +00:00
Sam Lantinga
89484fea07
Create a fake desktop mode for windowed mode apps
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401956
2006-07-16 03:35:44 +00:00
Sam Lantinga
0bd0f1331b
Look at environment variables in SDL_VideoInit() and SDL_AudioInit()
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401954
2006-07-15 19:30:18 +00:00
Sam Lantinga
a73c49024f
Implemented fully featured dummy renderer
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401953
2006-07-15 19:29:42 +00:00
Sam Lantinga
d5d8761b60
Streamlined the API a bit and optimized the software renderer.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401952
2006-07-15 09:46:36 +00:00
Sam Lantinga
dfe1ea2171
Changed the name of the dummy renderer
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401951
2006-07-14 08:24:43 +00:00
Sam Lantinga
0212981bc2
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.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401950
2006-07-14 08:22:45 +00:00
Sam Lantinga
e920af3d1b
Yay! D3D renderer works!
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401949
2006-07-14 07:41:16 +00:00
Sam Lantinga
5877021286
More of the Direct3D renderer is implemented, I'm not sure why it's not showing texture copies yet...
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401948
2006-07-14 06:40:53 +00:00
Sam Lantinga
9cbad57c92
Removed libc dependency on Windows again, to fix building with Visual C++ 2005 Express Edition.
...
Fixed performance problem with testsprite2 on the D3D driver.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401946
2006-07-13 08:13:02 +00:00
Sam Lantinga
ddce62b162
First stab at a D3D renderer, only 30FPS so far... ?
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401945
2006-07-12 09:25:17 +00:00
Sam Lantinga
8b10359107
debug cleanup
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401944
2006-07-12 08:09:57 +00:00
Sam Lantinga
4beaa4e63c
Playing around, trying to find a fast path with GDI
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401943
2006-07-12 07:01:35 +00:00
Sam Lantinga
d1be2d9e1c
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*
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401942
2006-07-12 06:39:26 +00:00
Sam Lantinga
0f030a1802
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401938
2006-07-10 21:04:37 +00:00
Sam Lantinga
d856d38658
Fix for bug #240
...
Christian Walther contributed Cocoa cursor code.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401897
2006-06-24 17:36:55 +00:00
Sam Lantinga
642baf6edb
Fixed bug #258
...
Account for the menu height in AdjustWindowRectEx()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401892
2006-06-24 04:30:01 +00:00
Sam Lantinga
684d11f9fd
Fixed bug #255
...
Fixed memory leaks in the windib driver.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401890
2006-06-24 03:41:14 +00:00
Sam Lantinga
9f57178bfb
Fixed bug #260
...
Fixed SDL_GL_SWAP_CONTROL on Windows, and the query on Linux
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401888
2006-06-24 01:59:43 +00:00
Ryan C. Gordon
90b3fbb429
Swizzle ALSA channels for 5.1 output to match DirectSound and CoreAudio.
...
Untested, but potentially fixes Bugzilla #110 .
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401883
2006-06-23 08:35:48 +00:00
Sam Lantinga
d9c54aecc1
Fixed bug #69
...
Hopefully this takes care of most of the audio dropouts in Windows
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401882
2006-06-23 08:15:47 +00:00
Sam Lantinga
f955c92364
Fixed bug #147
...
Only enable Unicode key events if Unicode translation is enabled.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401881
2006-06-23 04:27:55 +00:00
Ryan C. Gordon
6ba30e1368
Minor bit of sanity-checking debug info in dynamic X11 code.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401879
2006-06-23 02:16:49 +00:00
Sam Lantinga
65be12979c
Renamed, per Mike's comment on bug #157
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401877
2006-06-21 08:26:05 +00:00
Sam Lantinga
06d61220cc
Renamed, per Mike's comment on bug #157
...
--HG--
rename : src/hermes/common.asm => src/hermes/common.inc
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401876
2006-06-21 08:25:28 +00:00
Sam Lantinga
d94573621a
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
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401873
2006-06-21 07:57:34 +00:00
Sam Lantinga
fdfcc79761
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.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401869
2006-06-20 06:50:42 +00:00