Commit graph

4209 commits

Author SHA1 Message Date
Sam Lantinga
13ba84bf0e Whoops, work in progress, didn't mean to commit. 2011-02-13 01:31:07 -08:00
Sam Lantinga
978839d076 Updated the platform test for the new CPU feature functions. 2011-02-13 01:29:29 -08:00
Sam Lantinga
5fe61f6aaa Needed to pass the renderer in. 2011-02-13 00:18:05 -08:00
Eric Wing
38437fce7f Changed output directory of Universal libSDL.a for iOS to respect build configurations. Template generator was updated to reflect these changes as well. 2011-02-12 21:52:30 -08:00
Eric Wing
bfd339b994 merged 2011-02-12 21:34:36 -08:00
Eric Wing
9a464ae798 merged 2011-02-12 19:16:09 -08:00
Sam Lantinga
93ab733085 Fixed bug #1117
There's a new event that's always sent when the window changes size, and that event is what the renderers listen for to determine if they need to rebind their context.
2011-02-12 19:02:14 -08:00
Sam Lantinga
fbfad97573 Fixed bug #1116
Don't allocate the window's texture data until after creating the renderer, in case the renderer recreates the window.
2011-02-12 17:51:47 -08:00
Sam Lantinga
9526c9da70 changeset: 5278:b4b71ec2af73
tag: tip
user: Martin Decky <martin@decky.cz>
date: Sat Feb 12 22:27:14 2011 +0100
summary: fix typo (assigning height value into displayrect.w instead of displayrect.h)
2011-02-12 17:36:09 -08:00
Sam Lantinga
bb1d345990 This should match the header change. 2011-02-12 12:04:23 -08:00
Sam Lantinga
52df6c6092 changeset: 5272:cb08ef104ac4
tag: tip
user: Martin Decky <martin@decky.cz>
date: Sat Feb 12 20:53:06 2011 +0100
summary: improve header files compatibility with SDL 1.2 applications (namely QEMU)
2011-02-12 12:04:00 -08:00
Sam Lantinga
e38cbfcc5a Removed the atomic file for the old API 2011-02-12 11:43:22 -08:00
Sam Lantinga
96656bb924 Frank Zago to sdl
The following patch fixes some of the bitrot for the Nintendo DS port.
The support is still basic at the moment, but it allows to run the "general"
test under the current head of tree (parent: 5269:11bd1585efb5 tip).
Most of the patch is mine, but I integrated a couple changes that John
Magnotti posted on Feb 1st.
2011-02-12 11:36:56 -08:00
Sam Lantinga
5fc9a80e24 The YV12 image isn't w*h*2, it's actually w*h + w*h/4 + w*h/4 2011-02-12 10:13:53 -08:00
Sam Lantinga
ba0ff6d7c8 Fixed a crash caused by the 1.2 code path getting a YV12 texture. :) 2011-02-12 08:17:58 -08:00
Sam Lantinga
e74e437b3c Only expose the OpenGL flag to SDL 1.2 if it was requested.
The window flags mean the window is OpenGL capable.  The surface flag means that the surface is a stub surface representing a window that has an OpenGL context attached.
2011-02-12 08:17:37 -08:00
Sam Lantinga
8443161ffd Removed private API use that was causing AppStore rejection
Pavel Kanzelsberger to SDL

I tried to submit a SDL application to the Mac AppStore and it got rejected because SDL cocoa is using a Private (non-public) API. Problematic part is here:

SDL_cocoaevents.m

@implementation NSApplication(SDL)
- (void)setRunning
{
    _running = 1;
}
@end

Symbol _running in NSApplication is private and shouldn't be used. Any ideas what could I do about this?
2011-02-12 07:57:35 -08:00
Sam Lantinga
78a17dbc64 Ah there, that fixed it. :) 2011-02-12 00:42:39 -08:00
Sam Lantinga
53654196fd Initial pass at shader YV12 support - doesn't quite work yet. 2011-02-12 00:25:02 -08:00
Sam Lantinga
8ecd7110d2 Fixed SSE4 detection, and split it into SSE 4.1 and 4.2 2011-02-11 23:02:35 -08:00
Sam Lantinga
e5803d148c Happy 2011! :) 2011-02-11 22:37:15 -08:00
Sam Lantinga
059ef6ad0d There is only one width and height for the window. If those are changed during the course of a fullscreen mode change, then they'll stay that size when returning to windowed mode. 2011-02-11 20:49:13 -08:00
Sam Lantinga
d63ef6e2a4 itsnotabigtruck has given me permission to replace the license for his contribution. 2011-02-11 19:11:27 -08:00
Sam Lantinga
0314fd4e0f Updated CPU detection code for SSE3 and SSE4 and removed obsolete 3DNow! and Altivec support. 2011-02-11 14:51:04 -08:00
Sam Lantinga
e8f3f1e948 More removal of leak code. 2011-02-11 14:42:58 -08:00
Sam Lantinga
fcc17ebcb2 Finished removing unused leak detection code. 2011-02-11 14:42:06 -08:00
Sam Lantinga
5a0ad0fca0 Removed unused leak detection code. 2011-02-11 14:23:22 -08:00
Sam Lantinga
aef1c8834a Cleaned up the file a bit for tutorial viewing 2011-02-11 13:06:35 -08:00
Sam Lantinga
5540f2dba3 Added a very simple example of texture streaming 2011-02-11 12:24:59 -08:00
Sam Lantinga
8bee2482d7 Fixed creating the window on Mac OS X. 2011-02-11 12:17:40 -08:00
Sam Lantinga
07f6bb6e16 Fixed error check 2011-02-11 11:43:58 -08:00
Sam Lantinga
bff537f964 Fixed compile in Xcode 2011-02-11 10:18:34 -08:00
Sam Lantinga
b26aaee0f2 Fixed compiling on Windows 2011-02-11 10:13:30 -08:00
Sam Lantinga
9560b718a2 Mostly fixed fullscreen mode on Mac OS X, and you can toggle it on and off.
There are still some problems with the ConvertNSRect() calculations when switching video modes, which causes wierd window positioning issues, and the fullscreen window is still minimized on exit.
2011-02-11 00:25:44 -08:00
Sam Lantinga
e3b131e170 Fixed cocoa trying to shuffling windows when going fullscreen on the main display. 2011-02-10 22:49:14 -08:00
Sam Lantinga
4187161566 Allow windows to be created on non-primary displays. 2011-02-10 22:37:01 -08:00
Sam Lantinga
018af55e16 Window coordinates are in the global space and windows are not tied to a particular display.
Also added Ctrl-Enter keybinding to the test code to toggle fullscreen mode for testing.
2011-02-10 14:44:25 -08:00
Sam Lantinga
2c021d9b34 Fixed line endings - in Mercurial they're \n 2011-02-10 14:36:09 -08:00
Sam Lantinga
e9689c29d5 Be explicit about what display you're querying. The default display is 0. 2011-02-10 12:14:37 -08:00
Sam Lantinga
e0f869b698 Removed gamma support since it wasn't widely used and not well supported. 2011-02-10 11:39:08 -08:00
Sam Lantinga
c4f308a1be Better window parameter checking 2011-02-10 10:37:35 -08:00
Sam Lantinga
b20054dfb4 Surfaces aren't in hardware memory anymore! 2011-02-10 05:10:05 -08:00
Sam Lantinga
05ba63bd32 Added a scaling test program 2011-02-09 15:37:07 -08:00
Sam Lantinga
bc838ec7ba Updated Xcode project with OpenGL shader files 2011-02-09 10:37:52 -08:00
Sam Lantinga
0f1080b558 Fixed compiling on Windows
Added an untested shader for YV12 textures
2011-02-09 10:31:12 -08:00
Sam Lantinga
85a93efaec Fixed crash when shaders aren't available. 2011-02-09 10:13:26 -08:00
Sam Lantinga
a429b886d4 Fixed crash when shaders are not supported 2011-02-09 09:36:40 -08:00
Sam Lantinga
631784d9a2 Added a way to replace the default logging mechanism 2011-02-08 23:13:58 -08:00
Sam Lantinga
8f92919310 Added the ability to turn on logging output to the test programs 2011-02-08 23:13:28 -08:00
Sam Lantinga
9c86971ac9 Added a hint to control whether the OpenGL driver uses shaders. 2011-02-08 22:40:19 -08:00