Sam Lantinga
82f91da2d0
Added API for simple messagebox, courtesy of Mike Sartain
2012-10-23 17:11:22 -07:00
Sam Lantinga
dabd9f547c
Use Ctrl modifier for window resize key bindings
2012-10-03 13:39:42 -07:00
Sam Lantinga
152311bd12
Added key bindings to resize the window (+/-)
2012-10-03 13:38:22 -07:00
Sam Lantinga
ab8c4eaac7
If the window is resizable, reset the viewport by default if the window size changes.
2012-09-29 01:12:40 -07:00
Sam Lantinga
0cdb7950b4
SDL 2.0 supports 32-bit icons with alpha. :)
2012-09-28 15:59:36 -07:00
Sam Lantinga
9d6d75b762
Show the size changed window message
2012-09-28 14:42:47 -07:00
Sam Lantinga
7bcf07766a
Print the bounds of each display when showing mode information
2012-09-28 14:21:15 -07:00
Sam Lantinga
fa419b737d
Don't warn about the window size changing if the window is resizable
2012-09-28 14:00:43 -07:00
Sam Lantinga
7754d8a1d1
Print a message if the window size was changed from the requested size.
2012-09-27 11:13:30 -07:00
Ryan C. Gordon
49d8c6fb12
Added SDL_SetWindowBordered() API.
2012-09-13 01:43:53 -04:00
Sam Lantinga
0f304b0d9e
Added testnative to the Makefile and fixed building on Mac OS X
2012-01-07 16:57:09 -05:00
Sam Lantinga
6196aa221e
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
93d1e1f0bf
Backed out changeset ef550bdb8c1b
2011-03-28 20:33:41 -07:00
Ryan C. Gordon
af4cde4abc
If a test program window resizes, resize its viewport, too.
2011-03-28 23:20:54 -04:00
Sam Lantinga
ae58a49f62
NDS update
...
Frank Zago to SDL
There's also a patch to adapt one test for the nds, and that adds several
makefiles to compile these tests. Whenever you apply it, could you completely
remove the test/nds-test-progs/sprite and test/nds-test-progs/sprite2
directories ?
2011-03-26 21:28:17 -07:00
Sam Lantinga
9a54623af4
Added screenshot support for tests using the common framework.
2011-03-10 00:58:45 -08:00
Sam Lantinga
f0ee261c7b
Implemented mouse relative mode on Mac OS X.
2011-02-27 22:06:46 -08:00
Sam Lantinga
8b92536842
Fixed minimizing fullscreen windows.
...
Removed misleading hide/unhide Cocoa notifications.
We have no way of knowing when a Cocoa window is maximized and then restored (right?)
Disabled spamy mouse motion events by default.
2011-02-27 21:17:06 -08:00
Sam Lantinga
437682d6dc
Fixed testgles on iOS (bug 1136)
2011-02-20 14:16:11 -08:00
Sam Lantinga
b8b0cce2e0
We have the correct window, we don't have to search for it, duh. :)
2011-02-19 11:26:49 -08:00
Sam Lantinga
749abb9261
Allow centering on a different display
2011-02-15 22:51:29 -08:00
Sam Lantinga
d43d02f3c3
Allow windows to be created on non-primary displays.
2011-02-10 22:37:01 -08:00
Sam Lantinga
37993063c6
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
debc4678c8
Be explicit about what display you're querying. The default display is 0.
2011-02-10 12:14:37 -08:00
Sam Lantinga
16627e0975
Added the ability to turn on logging output to the test programs
2011-02-08 23:13:28 -08:00
Sam Lantinga
adaab5944f
The rendering functions take a context so it's clear what window they're drawing to. This also potentially opens to the door to multi-threaded rendering in the future.
2011-02-01 19:19:43 -08:00
Sam Lantinga
88718ffabe
Making the API simpler, the renderer present semantics are always having a backbuffer and then discarding it. This is best for hardware accelerated rendering.
2011-02-01 12:19:46 -08:00
Sam Lantinga
0efb1ea0b2
Making the API simpler, the blend modes are "none, blend, add" and are supported by all renderers.
2011-01-31 23:23:57 -08:00
Sam Lantinga
471a85fb52
Making the API simpler, scaling is always defined as linear interpolation and should be supported as much as possible on all renderers.
2011-01-31 22:44:43 -08:00
Sam Lantinga
74a3510cf2
Removed completely non-portable event thread hack.
...
Next I'll be working on generalizing the event sources and making the event queue lock-free. :)
2011-01-27 22:44:08 -08:00
krogoway
16881d932e
When the last window is closed and the SDL_WINDOWEVENT_CLOSE event is sent, send the SDL_QUIT event.
...
Common.c now destroys the SDL_Window upon a SDL_WINDOWEVENT_CLOSE event to ensure that all windows get closed properly and the new code to handle the last window closes gets executed.
2011-01-27 15:58:30 -06:00
Sam Lantinga
be09e4e9a0
Added some missing pixel formats and SDL_GetPixelFormatName()
2011-01-12 14:53:23 -08:00
Sam Lantinga
d6eac2c481
Use the enumerated type for blend and scale mode instead of int
...
Renamed SDL_TextureScaleMode to SDL_ScaleMode
2010-12-12 15:19:05 -08:00
Sam Lantinga
17fd339bb6
Added missing pixel format
2010-07-28 01:32:39 -07:00
Sam Lantinga
774e4ce3f5
Added support for testing window manager icons
2010-07-14 21:25:15 -07:00
Sam Lantinga
31e17885c7
Added test case for maximize code
2010-07-13 23:05:14 -07:00
Sam Lantinga
ddf0465549
Added an event when the clipboard is updated, triggered after the window gains the keyboard focus.
2010-07-08 22:54:03 -07:00
Sam Lantinga
4ceea8d275
Added simple clipboard test
2010-07-08 00:00:07 -07:00
Sam Lantinga
f6b92912cd
Fixed usage message - it shouldn't have a printf format specifier
2010-07-05 22:45:15 -07:00
Sam Lantinga
4b1c945432
Removed multi-mouse / multi-keyboard support in anticipation of a real multi-mouse and multi-touch API.
...
Plus, this lets me start implementing cursor support.
2010-05-09 20:47:22 -07:00
Sam Lantinga
e0a31b4dbb
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
2010-01-21 06:21:52 +00:00
Sam Lantinga
e250d2e0f5
Default to allow either accelerated or not
2009-12-15 20:53:09 +00:00
Sam Lantinga
262da78936
Added Ctrl-Z common key binding
2009-12-02 07:56:09 +00:00
Sam Lantinga
8adb9fc3cc
Work in progress on multi-display support:
...
* Added display parameter to many internal functions so video modes can be set on displays that aren't the public current one.
* The fullscreen mode is associated with fullscreen windows - not displays, so different windows more naturally have a mode associated with them based on their width and height. It's no longer necessary to specify a fullscreen mode, a default one will be picked automatically for fullscreen windows.
2009-12-01 05:57:15 +00:00
Mike Gorchak
f53e17a4df
Support for GL initialization parameters has been added.
2009-10-21 14:51:42 +00:00
Mike Gorchak
aafbae15c5
Options --double --triple have been added to test double and triple buffering.
2009-10-13 11:24:36 +00:00
Mike Gorchak
696387e501
Revert back. Sorry.
2009-10-10 17:07:49 +00:00
Mike Gorchak
2b98843157
Created windows must be destroyed at CommonQuit().
2009-10-10 13:21:21 +00:00
Mike Gorchak
2949fd46f1
Proper window resize handling in GLES test application.
2009-06-11 06:03:05 +00:00
Sam Lantinga
aed8be2521
indent
2009-06-10 13:34:20 +00:00