Commit Graph

3966 Commits

Author SHA1 Message Date
Sam Lantinga
59a97fa5e9 Fixed newlines 2011-02-05 11:54:46 -08:00
Sam Lantinga
64db716d1b Updated Visual Studio 2010 project 2011-02-04 14:06:01 -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
1a693a0bd3 Allow SDL_HINT_FRAMEBUFFER_ACCELERATION to specify the renderer to use. 2011-02-05 10:11:27 -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
e113c084a6 Removed execute permissions on source files. 2011-02-05 01:03:51 -08:00
Sam Lantinga
8bbd554984 Fixed permissions on the Android config header. 2011-02-05 01:02:24 -08:00
Sam Lantinga
d4a8b09eda Updated the name of the Direct3D renderer. 2011-02-05 00:34:34 -08:00
Sam Lantinga
7558f02067 Allow resizing of testsprite 2011-02-04 21:46:38 -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
f1e6f7169b Added the X11 framebuffer implementation. Simple! :) 2011-02-04 18:05:20 -08:00
Sam Lantinga
16b53812a8 The format detection code works better with 555 and 565 pixel formats 2011-02-04 16:55:50 -08:00
Sam Lantinga
509c2203d4 SDL_SetTextureBlendMode broken, caught by Kai Sterker - Thanks! 2011-02-05 00:32:04 -08:00
Sam Lantinga
4e34cbe61d These aren't executable files. :) 2011-02-04 23:31:56 -08:00
Sam Lantinga
cc347f201a Fixed compiling on Windows CE 2011-02-04 13:58:29 -08:00
Sam Lantinga
9f81da0aa6 Removed missing file 2011-02-04 13:57:55 -08:00
Sam Lantinga
ce8fba858d Use the exact format of the window if possible, for speed. 2011-02-04 13:47:02 -08:00
Sam Lantinga
976387a5ed Added the Windows framebuffer implementation.
This actually ends up being faster than Direct3D with a dynamic texture. (???)
2011-02-04 12:29:58 -08:00
Sam Lantinga
6bd644058c Don't free the surface since the application might be still using it. 2011-02-04 12:26:01 -08:00
Sam Lantinga
7656894d2a Standardized on using the managed texture pool.
Also experimented with dynamic textures, but didn't get any speed increase with them.  More research and testing is needed.
2011-02-04 12:25:26 -08:00
Sam Lantinga
44c37e3487 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
164a293ce9 Removed unused variables 2011-02-04 12:22:52 -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
8675df42c8 Fixed recursion crash when setting SDL_VIDEO_RENDERER=software 2011-02-03 17:42:58 -08:00
Sam Lantinga
b9dd9284f1 Fixed crash if SDL_VideoDriverName() is passed a NULL namebuf 2011-02-03 16:57:38 -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
ff6324fb43 Updated for API changes 2011-02-03 02:42:50 -08:00
Sam Lantinga
004e4cde9f Fixed building for Android 2011-02-03 01:30:28 -08:00
Sam Lantinga
dd03fe7ff1 Re-ordered platforms based on frequency 2011-02-03 01:19:10 -08:00
Sam Lantinga
599d9d75f5 Create the video texture based on the available texture formats, not the backbuffer format. 2011-02-03 01:13:48 -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
3f10d86ed9 Fixed compiling with the latest API changes 2011-02-02 14:34:24 -08:00
Sam Lantinga
adfafcaa35 Removing Visual Studio projects for testpalette 2011-02-01 21:51:54 -08:00
Sam Lantinga
c7881753b8 SDL doesn't actually support the physical/logical palette split anymore. 2011-02-01 21:51:09 -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
1fceabf43c The DrawRect API is implemented using lines 2011-02-01 20:50:04 -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
f0bd43ac99 The renderers always support texture modulation and blend modes. 2011-02-01 12:54:27 -08:00