Sam Lantinga
f0fa63a506
Create an OpenGL 1.1 context by default, if available.
...
This is easier for people to set up and work with, and is more conformant to the way desktop OpenGL works.
2011-02-07 09:23:01 -08:00
Sam Lantinga
4bb96bede2
Whoops, duplicate case
2011-02-06 10:27:05 -08:00
Sam Lantinga
44d8b045b2
At least allow returning the values that were set.
2011-02-06 10:24:08 -08:00
Sam Lantinga
b1c0c48f03
Prefer the OpenGL ES 2.0 context when it's available, make it possible to create an OpenGL 2.0 context on iPhoneOS
2011-02-06 10:22:25 -08:00
Sam Lantinga
f8247546d6
Added the SDL_HINT_RENDER_DRIVER and SDL_HINT_RENDER_VSYNC hints.
2011-02-05 10:35:36 -08:00
Sam Lantinga
37f40cdb19
Allow SDL_HINT_FRAMEBUFFER_ACCELERATION to specify the renderer to use.
2011-02-05 10:11:27 -08:00
Sam Lantinga
ce1ef46aeb
Added a hint to determine whether framebuffer texture acceleration should be used, and added default behaviors for the various platforms.
2011-02-05 10:03:12 -08:00
Sam Lantinga
d8fd1e0861
Don't free the surface since the application might be still using it.
...
Also experimented with texture rectangle updates, but I think at this point the full rect update gives the most consistent results.
2011-02-04 12:24:28 -08:00
Sam Lantinga
125e56851f
Switched the SDL 1.2 compatibility to use the window surface, so it's fast even when there's no hardware acceleration available.
...
This means that the YUV overlay now uses software, but that's okay since fast YUV code should be using the textures now anyway.
2011-02-03 21:13:55 -08:00
Sam Lantinga
1fc2b68be2
Fixed recursion crash when setting SDL_VIDEO_RENDERER=software
2011-02-03 17:42:58 -08:00
Sam Lantinga
052351dbe2
Added a way to get a framebuffer interface for a window, and also a way to create a software renderer for an arbitrary surface.
...
The software renderer has been re-routed to use the framebuffer interface, which makes it possible to have software rendering available even on simple ports.
2011-02-03 15:49:37 -08:00
Sam Lantinga
657d4fd190
Extended SDL_SetWindowData() to allow arbitrary named values.
2011-02-03 11:16:57 -08:00
Sam Lantinga
5897ef7d95
Moved the rendering code out to a separate directory in the hope that it can someday be completely decoupled from the rest of the library and be expanded to an awesome 2D on 3D library.
...
--HG--
rename : src/video/windows/SDL_d3drender.c => src/render/direct3d/SDL_d3drender.c
rename : src/video/SDL_renderer_gl.c => src/render/opengl/SDL_renderer_gl.c
rename : src/video/SDL_renderer_gles.c => src/render/opengles/SDL_renderer_gles.c
rename : src/video/SDL_renderer_sw.c => src/render/software/SDL_renderer_sw.c
2011-02-02 14:34:54 -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
09a8558897
Making the API simpler, removed support for palettized video modes and textures.
2011-02-01 21:23:43 -08:00
Sam Lantinga
b4fff42fc6
The DrawRect API is implemented using lines
2011-02-01 20:50:04 -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
6539ab9c74
The renderers always support texture modulation and blend modes.
2011-02-01 12:54:27 -08:00
Sam Lantinga
4c06e58153
Making the API simpler, texture color and alpha modulation are supported by all renderers.
...
--HG--
extra : rebase_source : 880752438aae8f6526503d220bad91aabc3a7d1c
2011-01-31 23:37:30 -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
d06966d7f2
Nobody is maintaining RISC OS code, so I'm removing it for now.
2011-01-27 00:06:36 -08: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
c4d74517e7
PS3 Linux is no more...
2011-01-19 22:25:40 -08:00
Sam Lantinga
008911fd8a
Nobody has stepped up to maintain an svgalib driver. Bye bye! :)
2011-01-19 22:21:31 -08:00
Sam Lantinga
90a214c4e9
Nobody has stepped up to maintain a framebuffer console driver. Bye bye! :)
2011-01-19 22:18:45 -08:00
Sam Lantinga
36207555fb
Set blend mode for textures that were created from surfaces with a colorkey
2011-01-12 15:58:53 -08:00
Sam Lantinga
a4231ad5d8
Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface()
2011-01-12 15:22:29 -08:00
Sam Lantinga
835dde1a18
You can't change the resolution on some devices
2011-01-12 13:46:37 -08:00
Sam Lantinga
9ec38356d0
Use a valid window when creating the default renderer
2011-01-12 13:38:10 -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
Daniel Wyatt
423b30c5df
Windows candidate list support.
...
Candidate list should now be drawn and function normally.
Tested in XP and 7.
2010-11-23 17:46:47 -05:00
Sam Lantinga
51b19abe02
Minor cleanup in patches from Coursoud
2010-09-27 01:30:42 -07:00
Sam Lantinga
45e68f6c5c
Merged the Windows custom window system hooks into the union used by X11.
...
Added Cocoa custom window system hooks
2010-09-27 01:24:05 -07:00
Sam Lantinga
bbf3279972
SDL_DestroyWindow is setting window->magic to NULL too early. -
...
window->magic is also checked in SDL_DestroyRenderer. All cleanup code
like freeing the renderer and textures is not executed.
The patch moves window_magic = NULL behind the SDL_DestroyRenderer call.
Kind regards,
André
2010-09-27 00:49:34 -07:00
Sam Lantinga
4d97d1a549
Whoops, return "" even if the window is invalid.
2010-08-29 16:28:04 -07:00
Sam Lantinga
b59ef043a6
The title is stored internally as NULL if it's empty, and returned as ""
2010-08-29 16:26:35 -07:00
Sam Lantinga
a64fc29cfb
Merged Paul's Google Summer of Code work from SDL-gsoc2010_android
2010-08-22 12:23:55 -07:00
Sam Lantinga
8d14ec12cc
Andrey A.
...
I made a video driver GAPI/RAW for WinCE (SDL-1.3).
RAW mode has a priority, and also, GAPI mode works with environment
"SDL_VIDEO_RENDERER=gapi" and for RAW mode "SDL_VIDEO_RENDERER=raw".
I checked the work on the screens of VGA, WVGA, QVGA, WQVGA, HVGA,
+ tested all modes with WindowsMobile Emulator.
Also, correctly draws the pointer position and the scale of the pointer
for VGA/WVGA modes,
correctly draws top left position for DM orientation screen, and
portrait/landscape/square geometry the screen also correct.
Also, I added a small fix for GDI fullscreen mode.
Patch for latest revision SDL-1.3 in an attachment.
Also added small path for mingw32ce build.
2010-07-27 21:31:28 -07:00
Sam Lantinga
43503a8b99
Fixed bug #1000
...
Don't crash if someone tries to delete a context after we've unloaded the library. In this case it's SDL_compat that doesn't know SDL_VideoQuit() has been called. Hmm...
2010-07-14 07:48:35 -07:00
Sam Lantinga
c2c15058b1
Simplified clipboard API for sanity's sake.
...
A complete clipboard implementation would support multiple formats that could be queried at runtime, events for when the clipboard contents changed, support for HTML, images, etc. We're not going that crazy, at least for now. :)
2010-07-07 23:54:03 -07:00
Sam Lantinga
95fbd50b15
Mostly cleaned up warnings with -Wmissing-prototypes
2010-06-26 08:56:48 -07:00
Paul Hunkin
dc9ee5ef88
Added (partially implemented) android video backend and associated files needed to build
2010-06-10 18:54:23 +12:00
Sam Lantinga
6f34ceab02
Fixed bug 984
...
SDL_CreateTexture allows the creation of textures of size 0, which can lead to div by 0 errors
2010-04-15 21:27:32 -07:00
Sam Lantinga
db2e29b2d0
Fixed showing and hiding fullscreen windows
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404457
2010-02-01 01:19:37 +00:00
Sam Lantinga
4d3df8b3e3
Fixed bug #926
...
Updated copyright to LGPL version 2.1 and year 2010
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404453
2010-01-24 21:10:53 +00:00
Sam Lantinga
73074be94a
Added magic to detect already freed or otherwise invalid windows and textures.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404451
2010-01-24 20:21:51 +00:00
Sam Lantinga
80a88bc0d3
Fixed bug #916
...
Shutting down the video shuts down the event loop, so don't do that after starting the event loop. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404449
2010-01-24 19:47:17 +00:00
Sam Lantinga
51c2d1714d
update window prev links
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404446
2010-01-22 16:17:11 +00:00