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
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
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
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
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
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
b20054dfb4
Surfaces aren't in hardware memory anymore!
2011-02-10 05:10:05 -08:00
Sam Lantinga
631784d9a2
Added a way to replace the default logging mechanism
2011-02-08 23:13:58 -08:00
Sam Lantinga
9c86971ac9
Added a hint to control whether the OpenGL driver uses shaders.
2011-02-08 22:40:19 -08:00
Sam Lantinga
7133afac5f
Made it possible to disable the rendering subsystem with configure --disable-render
2011-02-08 10:04:09 -08:00
Sam Lantinga
8f205278b1
It's now possible to disable the fast atomic operations, at a huge performance penalty.
2011-02-07 22:57:33 -08:00
Sam Lantinga
8253658837
Added function SDL_RenderSetClipRect()
2011-02-07 20:06:26 -08:00
Sam Lantinga
f582f9e58e
Added a simple log message API
2011-02-07 16:45:40 -08:00
Sam Lantinga
acee78a1c2
Renamed SDL_Key to SDL_Keycode to clarify terminology.
2011-02-07 10:40:21 -08:00
Sam Lantinga
cc52151bca
Renamed SDLKey and SDLMod for consistency
2011-02-07 09:42:08 -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
a83bca04d0
Since we changed the API entirely, just remove the old function names
2011-02-06 08:57:29 -08:00
Sam Lantinga
58e9ea986f
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
...
--HG--
rename : src/video/SDL_glfuncs.h => src/render/opengl/SDL_glfuncs.h
2011-02-06 02:35:14 -08:00
Sam Lantinga
f2c40726b6
Added an OpenGL ES 2.0 renderer, contributed by itsnotabigtruck
...
This compiles, but it untested.
2011-02-06 00:00:13 -08:00
Sam Lantinga
a51c332dfe
Created a simpler version of SDL_SetHint() that doesn't need a priority.
2011-02-05 20:02:37 -08:00
Sam Lantinga
8b3eb38df2
Updated the DirectFB support, from Couriersud
...
attached is a working directfb driver diff which works with the current
changes. There are a number of changes around it as well, e.g.
configure.in.
The directfb renderdriver right now still depends on a some "includes"
from src/video/directfb. That's why it is not yet moved to the new
render folder.
2011-02-05 16:07:10 -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
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
7f7bf51bdb
Added a hint system to allow configuration hints to be specified by the application.
2011-02-05 10:02:39 -08:00
Sam Lantinga
08c975d3ab
Fixed permissions on the Android config header.
2011-02-05 01:02:24 -08:00
Sam Lantinga
8209e2a9a9
Restored SDL_BLENDMODE_MOD for MAME
2011-02-04 19:50:56 -08:00
Sam Lantinga
31f1dceb0c
Removed a bunch of X11 support that we no longer need.
2011-02-04 19:18:08 -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
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
ddfdd2c2b9
Added an intro to the features and goals of the 2D rendering API.
2011-02-03 10:03:55 -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
5689d8ef80
Re-ordered platforms based on frequency
2011-02-03 01:19:10 -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
31b3ad2414
Making the API simpler, removed the writepixels interface
2011-02-03 00:22:18 -08:00
Sam Lantinga
d2b54f7d24
Made it possible to create a texture of any format, even if not supported by the renderer.
...
This allows me to reduce the set of formats supported by the renderers to the most optimal set, for a nice speed boost.
--HG--
rename : src/video/SDL_yuv_mmx.c => src/render/SDL_yuv_mmx.c
rename : src/video/SDL_yuv_sw.c => src/render/SDL_yuv_sw.c
rename : src/video/SDL_yuv_sw_c.h => src/render/SDL_yuv_sw_c.h
rename : src/video/mmx.h => src/render/mmx.h
2011-02-03 00:19:40 -08:00
Sam Lantinga
613d92a832
Fixed compiling on Windows
2011-02-02 22:55:12 -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
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
52cf8a6451
Added functions to watch events as they go through the event queue.
2011-02-01 19:15:42 -08:00
Sam Lantinga
b231d0b93d
Split the rendering API out into a separate header file.
2011-02-01 15:02:21 -08:00
Sam Lantinga
32406a59c6
Renumbered the renderer flags
2011-02-01 12:44:52 -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
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