Sam Lantinga
05ba63bd32
Added a scaling test program
2011-02-09 15:37:07 -08:00
Sam Lantinga
a429b886d4
Fixed crash when shaders are not supported
2011-02-09 09:36:40 -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
752dd42dea
Added a simple GLSL example using SDL
2011-02-08 22:11:16 -08:00
Sam Lantinga
76a24d278d
Sheena pointed out that "scancode" and "keysym" are single words and shouldn't be camel-cased.
2011-02-07 09:37:11 -08:00
Sam Lantinga
6fe14e1791
Updated testoverlay2 to use the SDL 2D rendering API
2011-02-07 00:46:43 -08:00
Sam Lantinga
1086a1e4a4
Fixed compiling the automated test
2011-02-05 13:06:50 -08:00
Sam Lantinga
12098369fe
Allow resizing of testsprite
2011-02-04 21:46:38 -08:00
Sam Lantinga
8209e2a9a9
Restored SDL_BLENDMODE_MOD for MAME
2011-02-04 19:50:56 -08:00
Sam Lantinga
c1295241c6
Making the API simpler, moved the surface drawing functions to the software renderer.
...
--HG--
rename : src/video/SDL_blendline.c => src/render/software/SDL_blendline.c
rename : src/video/SDL_blendpoint.c => src/render/software/SDL_blendpoint.c
rename : src/video/SDL_draw.h => src/render/software/SDL_draw.h
rename : src/video/SDL_drawline.c => src/render/software/SDL_drawline.c
rename : src/video/SDL_drawpoint.c => src/render/software/SDL_drawpoint.c
2011-02-03 02:45:29 -08:00
Sam Lantinga
348ea88682
Updated for API changes
2011-02-03 02:42:50 -08:00
Sam Lantinga
fe2b0d9703
Simplified and improved the process of creating a texture from a surface.
2011-02-03 00:54:29 -08:00
Sam Lantinga
9623680313
Fixed compiling with the latest API changes
2011-02-02 14:34:24 -08:00
Sam Lantinga
446ad38c37
SDL doesn't actually support the physical/logical palette split anymore.
2011-02-01 21:51:09 -08:00
Sam Lantinga
a47948aab0
Nobody is currently maintaining the QNX code, so removing it for now.
2011-02-01 21:40:03 -08:00
Sam Lantinga
df94d4c6a4
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
d627939049
Making the API simpler, the renderer present semantics are always having a backbuffer and then discarding it. This is best for hardware accelerated rendering.
...
--HG--
extra : rebase_source : bbe6641fce097c79ccd47f4e1ea6b27683fd0acb
2011-02-01 12:19:46 -08:00
Sam Lantinga
825e1da54d
Making the API simpler, the blend modes are "none, blend, add" and are supported by all renderers.
...
--HG--
extra : rebase_source : f06ea01caa64c8ad14170c723e5af52dad64d779
2011-01-31 23:23:57 -08:00
Sam Lantinga
df1f384c5b
Making the API simpler, scaling is always defined as linear interpolation and should be supported as much as possible on all renderers.
...
--HG--
extra : rebase_source : 4edac7fd162a2eb37a50159b958db37a03e944a5
2011-01-31 22:44:43 -08:00
Sam Lantinga
c3daf0f0cd
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
Sam Lantinga
95dbe47cf3
Fixed test
2011-01-27 20:51:54 -08:00
Sam Lantinga
858c92ff35
Added CPU cache line size to the test output.
2011-01-27 20:49:07 -08:00
Sam Lantinga
772009b691
Bump up the default cache line size.
2011-01-27 16:51:47 -08:00
Sam Lantinga
fb824f9a04
Added cache line size info in SDL_cpuinfo.h
...
I also added an implementation to dynamically query it, but didn't expose it since most x86 CPUs have an L1 cache line size of 64 bytes.
2011-01-27 16:46:15 -08:00
Sam Lantinga
1d518f0d73
Fixed compiling under Visual Studio
2011-01-27 15:31:00 -08:00
krogoway
e253e1d991
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
b58487d8bb
Colin Leroy 2011-01-26 04:24:20 PST
...
the pthread implementation of SDL_SemWaitTimeout() uses busy waiting, while
pthread's sem_timedwait() does work. Attached are patches that make use of it
2011-01-27 00:34:12 -08:00
Sam Lantinga
9b3ce56bfd
Since we're directly reading and writing 'active' from different threads, it needs to be flagged volatile.
2011-01-26 19:20:16 -08:00
Sam Lantinga
b609519a5c
Added a test to measure the impact of a separate thread periodically locking the queue entirely.
2011-01-26 00:03:34 -08:00
Sam Lantinga
bbc1ba223a
Added a FIFO test to the atomic test suite.
...
This is really useful because we might be able to use something like this
for the SDL event queue.
2011-01-25 23:23:52 -08:00
Sam Lantinga
10b8372bd3
Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
2011-01-24 15:46:11 -08:00
krogoway
a2f2302255
Renamed SDL_keysym to SDL_KeySym
...
Renamed SDL_scancode to SDL_ScanCode
Added #defines to SDL_compat.h
2011-01-24 13:47:35 -06:00
Sam Lantinga
9d25ba272a
Fixed bug #925
...
Changed "win32" to "windows"
--HG--
rename : include/SDL_config_win32.h => include/SDL_config_windows.h
rename : src/events/scancodes_win32.h => src/events/scancodes_windows.h
rename : src/haptic/win32/SDL_syshaptic.c => src/haptic/windows/SDL_syshaptic.c
rename : src/joystick/win32/SDL_dxjoystick.c => src/joystick/windows/SDL_dxjoystick.c
rename : src/joystick/win32/SDL_dxjoystick_c.h => src/joystick/windows/SDL_dxjoystick_c.h
rename : src/joystick/win32/SDL_mmjoystick.c => src/joystick/windows/SDL_mmjoystick.c
rename : src/loadso/win32/SDL_sysloadso.c => src/loadso/windows/SDL_sysloadso.c
rename : src/main/win32/SDL_win32_main.c => src/main/windows/SDL_windows_main.c
rename : src/main/win32/version.rc => src/main/windows/version.rc
rename : src/thread/win32/SDL_sysmutex.c => src/thread/windows/SDL_sysmutex.c
rename : src/thread/win32/SDL_syssem.c => src/thread/windows/SDL_syssem.c
rename : src/thread/win32/SDL_systhread.c => src/thread/windows/SDL_systhread.c
rename : src/thread/win32/SDL_systhread_c.h => src/thread/windows/SDL_systhread_c.h
rename : src/thread/win32/win_ce_semaphore.c => src/thread/windows/win_ce_semaphore.c
rename : src/thread/win32/win_ce_semaphore.h => src/thread/windows/win_ce_semaphore.h
rename : src/timer/win32/SDL_systimer.c => src/timer/windows/SDL_systimer.c
rename : src/video/win32/SDL_ceddrawrender.c => src/video/windows/SDL_ceddrawrender.c
rename : src/video/win32/SDL_ceddrawrender.h => src/video/windows/SDL_ceddrawrender.h
rename : src/video/win32/SDL_d3drender.c => src/video/windows/SDL_d3drender.c
rename : src/video/win32/SDL_d3drender.h => src/video/windows/SDL_d3drender.h
rename : src/video/win32/SDL_gapirender.c => src/video/windows/SDL_gapirender.c
rename : src/video/win32/SDL_gapirender.h => src/video/windows/SDL_gapirender.h
rename : src/video/win32/SDL_gapirender_c.h => src/video/windows/SDL_gapirender_c.h
rename : src/video/win32/SDL_gdirender.c => src/video/windows/SDL_gdirender.c
rename : src/video/win32/SDL_gdirender.h => src/video/windows/SDL_gdirender.h
rename : src/video/win32/SDL_msctf.h => src/video/windows/SDL_msctf.h
rename : src/video/win32/SDL_vkeys.h => src/video/windows/SDL_vkeys.h
rename : src/video/win32/SDL_win32clipboard.c => src/video/windows/SDL_windowsclipboard.c
rename : src/video/win32/SDL_win32clipboard.h => src/video/windows/SDL_windowsclipboard.h
rename : src/video/win32/SDL_win32events.c => src/video/windows/SDL_windowsevents.c
rename : src/video/win32/SDL_win32events.h => src/video/windows/SDL_windowsevents.h
rename : src/video/win32/SDL_win32gamma.c => src/video/windows/SDL_windowsgamma.c
rename : src/video/win32/SDL_win32gamma.h => src/video/windows/SDL_windowsgamma.h
rename : src/video/win32/SDL_win32keyboard.c => src/video/windows/SDL_windowskeyboard.c
rename : src/video/win32/SDL_win32keyboard.h => src/video/windows/SDL_windowskeyboard.h
rename : src/video/win32/SDL_win32modes.c => src/video/windows/SDL_windowsmodes.c
rename : src/video/win32/SDL_win32modes.h => src/video/windows/SDL_windowsmodes.h
rename : src/video/win32/SDL_win32mouse.c => src/video/windows/SDL_windowsmouse.c
rename : src/video/win32/SDL_win32mouse.h => src/video/windows/SDL_windowsmouse.h
rename : src/video/win32/SDL_win32opengl.c => src/video/windows/SDL_windowsopengl.c
rename : src/video/win32/SDL_win32opengl.h => src/video/windows/SDL_windowsopengl.h
rename : src/video/win32/SDL_win32shape.c => src/video/windows/SDL_windowsshape.c
rename : src/video/win32/SDL_win32shape.h => src/video/windows/SDL_windowsshape.h
rename : src/video/win32/SDL_win32video.c => src/video/windows/SDL_windowsvideo.c
rename : src/video/win32/SDL_win32video.h => src/video/windows/SDL_windowsvideo.h
rename : src/video/win32/SDL_win32window.c => src/video/windows/SDL_windowswindow.c
rename : src/video/win32/SDL_win32window.h => src/video/windows/SDL_windowswindow.h
rename : src/video/win32/wmmsg.h => src/video/windows/wmmsg.h
2011-01-20 18:04:05 -08:00
Sam Lantinga
2c7a66fb27
Removed extra space
2011-01-19 11:35:31 -08:00
Sam Lantinga
42a3df6fd3
Michael gave permission to use his test code
2011-01-18 10:57:28 -08:00
Sam Lantinga
f82346f528
Fixed compiler errors
2011-01-17 13:54:13 -08:00
Sam Lantinga
ce2e619ac9
Fixed compiler warning
2011-01-16 17:48:04 -08:00
Sam Lantinga
d428d9d5a1
Include windows.h in SDL_atomic.h by default, but don't include the atomic API in SDL.h
...
This allows all SDL code to take advantage of the atomic intrinsics on Windows, but doesn't cause applications just including SDL.h to pull in windows.h
2011-01-16 17:45:42 -08:00
Sam Lantinga
b0e0f61c7e
Added native atomic operations for Windows, Mac OS X, and gcc compiler intrinsics.
...
Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier()
Added an atomic test adapted from code by Michael Davidsaver
2011-01-16 15:16:39 -08:00
Sam Lantinga
1bc8fe69ce
Updated the atomic API for better use cases
2011-01-15 12:41:59 -08:00
Sam Lantinga
fdea37a756
Added some missing pixel formats and SDL_GetPixelFormatName()
2011-01-12 14:53:23 -08:00
Sam Lantinga
3693a452e6
Need to include SDL_main.h ... eh, just include everything. :)
2011-01-10 11:22:07 -08:00
Sam Lantinga
6736ca0525
Android has OpenGL ES too...
2011-01-04 20:37:07 -08:00
Sam Lantinga
aac820df50
Missing math library for testgesture
2011-01-01 20:44:38 -08:00
Sam Lantinga
34b38d2798
Allow META-Enter to toggle fullscreen mode
2011-01-01 19:38:56 -08:00
Sam Lantinga
35cc558917
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
dc22c27aad
Fixed crash if the gesture coordinates go negative - FIXME: Should this protection be at a lower level?
2010-11-30 18:08:01 -08:00
Sam Lantinga
f7fc00e75c
Added a Visual Studio project for testgesture
2010-11-30 12:38:46 -08:00
Andreas Schiffler
80c83499bf
Remove superflous sample shapes (same BMPs)
2010-09-15 22:33:46 -07:00
Andreas Schiffler
1975b91fae
- added directx include path to VS2008 solution
...
- updated shape vcproj and add it to VS2008 solution
- minor changes (i.e. typecasting) to get rid of compiler warnings in VS
2010-09-15 22:15:47 -07:00