Sam Lantinga
5d0480d014
Added a way to replace the default logging mechanism
2011-02-08 23:13:58 -08:00
Sam Lantinga
ca8ed0c39d
Added a hint to control whether the OpenGL driver uses shaders.
2011-02-08 22:40:19 -08:00
Sam Lantinga
5069986bff
Made it possible to disable the rendering subsystem with configure --disable-render
2011-02-08 10:04:09 -08:00
Sam Lantinga
7d207a3141
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
da46bc3be3
Added function SDL_RenderSetClipRect()
2011-02-07 20:06:26 -08:00
Sam Lantinga
47818cfba9
Added a simple log message API
2011-02-07 16:45:40 -08:00
Sam Lantinga
f1d38d9c1c
Renamed SDL_Key to SDL_Keycode to clarify terminology.
2011-02-07 10:40:21 -08:00
Sam Lantinga
60016c514e
Renamed SDLKey and SDLMod for consistency
2011-02-07 09:42:08 -08:00
Sam Lantinga
23370c8928
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
1163ebc192
Updated testoverlay2 to use the SDL 2D rendering API
2011-02-07 00:46:43 -08:00
Sam Lantinga
92c1973815
Since we changed the API entirely, just remove the old function names
2011-02-06 08:57:29 -08:00
Sam Lantinga
bbf99fa10b
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
2011-02-06 02:35:14 -08:00
Sam Lantinga
ae2ce1d91e
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
3d231d07df
Created a simpler version of SDL_SetHint() that doesn't need a priority.
2011-02-05 20:02:37 -08:00
Sam Lantinga
b31aaaaad7
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
dd42a41854
Added the SDL_HINT_RENDER_DRIVER and SDL_HINT_RENDER_VSYNC hints.
2011-02-05 10:35:36 -08:00
Sam Lantinga
1012c06b0a
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
8322900075
Added a hint system to allow configuration hints to be specified by the application.
2011-02-05 10:02:39 -08:00
Sam Lantinga
8bbd554984
Fixed permissions on the Android config header.
2011-02-05 01:02:24 -08:00
Sam Lantinga
4f6e1878af
Restored SDL_BLENDMODE_MOD for MAME
2011-02-04 19:50:56 -08:00
Sam Lantinga
e37fdde92a
Removed a bunch of X11 support that we no longer need.
2011-02-04 19:18:08 -08:00
Sam Lantinga
6d8925632d
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
93a4e38e98
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
7880fa3997
Extended SDL_SetWindowData() to allow arbitrary named values.
2011-02-03 11:16:57 -08:00
Sam Lantinga
4360f9d15a
Added an intro to the features and goals of the 2D rendering API.
2011-02-03 10:03:55 -08:00
Sam Lantinga
e4569cfdca
Making the API simpler, moved the surface drawing functions to the software renderer.
2011-02-03 02:45:29 -08:00
Sam Lantinga
dd03fe7ff1
Re-ordered platforms based on frequency
2011-02-03 01:19:10 -08:00
Sam Lantinga
533d4862d6
Simplified and improved the process of creating a texture from a surface.
2011-02-03 00:54:29 -08:00
Sam Lantinga
a5bfac214f
Making the API simpler, removed the writepixels interface
2011-02-03 00:22:18 -08:00
Sam Lantinga
405d4ed7e4
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.
2011-02-03 00:19:40 -08:00
Sam Lantinga
433b8c4189
Fixed compiling on Windows
2011-02-02 22:55:12 -08:00
Sam Lantinga
8bf50cc83c
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.
2011-02-02 14:34:54 -08:00
Sam Lantinga
482e5c0697
Nobody is currently maintaining the QNX code, so removing it for now.
2011-02-01 21:40:03 -08:00
Sam Lantinga
1f34b65342
Making the API simpler, removed support for palettized video modes and textures.
2011-02-01 21:23:43 -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
5978f70063
Added functions to watch events as they go through the event queue.
2011-02-01 19:15:42 -08:00
Sam Lantinga
f729dd20de
Split the rendering API out into a separate header file.
2011-02-01 15:02:21 -08:00
Sam Lantinga
5d5f352744
Renumbered the renderer flags
2011-02-01 12:44:52 -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
fb80cf39a4
Making the API simpler, texture color and alpha modulation are supported by all renderers.
2011-01-31 23:37:30 -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
f9ebc0527f
Removed more partially functional renderers
2011-01-31 22:53:45 -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
096a6b8d79
Removed partially functional renderers
2011-01-31 22:21:29 -08:00
Sam Lantinga
2a2df3d2b1
Spacing for documentation tweaks
2011-02-01 12:01:37 -08:00
Sam Lantinga
e191dd269c
Tweak for documentation
2011-02-01 11:53:29 -08:00
Sam Lantinga
a961fbabfe
Added Edgar's blog to the haptic documentation
2011-01-28 12:09:25 -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
Sam Lantinga
357519de5a
Added API function to get CPU cache line size.
2011-01-27 20:46:45 -08:00
Sam Lantinga
c5035c553b
Bump up the default cache line size.
2011-01-27 16:51:47 -08:00