Sam Lantinga
f366b098d4
Added SDL_RenderSetScale() and SDL_RenderGetScale()
2012-10-01 20:59:33 -07:00
Sam Lantinga
f380ecb137
Removed executable bit from source files
2012-09-27 14:35:28 -07:00
Ryan C. Gordon
8912814135
Removed some unused variables that gcc 4.6.1 complains about.
2012-08-09 14:14:41 -04:00
Ryan C. Gordon
82ebf2d4ff
Fixed some minor compiler warnings.
...
--HG--
extra : rebase_source : 9466732b4e5ab87e92e8eb9e2377aa5405bdc23b
2012-07-20 13:33:15 -04:00
Sam Lantinga
beb1db9b5b
Fixed compiling with Visual Studio
2012-06-19 13:50:14 -04:00
Sam Lantinga
924fe8e26e
Fixed SDL_config.h build include path
2012-06-01 20:31:50 -04:00
Gabriel Jacobo
17bdcc6e8e
RenderCopyEx,rotation and flipping for all hardware/software backends ( #1308 )
2012-06-01 19:51:08 -03:00
Sam Lantinga
6552e51a2b
Fixed bug 1412 - Patch - Software renderer crash
...
Dimitris Zenios Date: 2012-02-06 15:12:37 GMT
Hi gus there is a bug when using software renderer and the window
surface gets destroyed (Fullscreen and back).The solution is easy
2012-02-07 19:34:24 -05:00
Sam Lantinga
0458fa488a
Renamed SetTargetTexture() to SetRenderTarget()
2012-01-22 01:26:28 -05:00
Sam Lantinga
da686e5bd4
Reorganized the render target code, moving the viewport handling to the general code and adding software implementation.
2012-01-21 22:22:30 -05:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Sam Lantinga
ad2a21d404
Lots of fixes importing SDL source wholesale into a new iOS project
...
--HG--
rename : src/libm/math.h => src/libm/math_libm.h
2011-10-31 05:56:58 -04:00
Ryan C. Gordon
bc13816375
Fixed a whole slew of compiler warnings that -Wall exposed.
2011-10-13 01:08:30 -04:00
Dimitris Zenios
b43aca329d
Fixes a bug in SDL_UpdateTexture when using SDL_RENDERER_SOFTWARE and texture access is SDL_TEXTUREACCESS_STATIC
2011-06-10 12:13:06 +03:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
3746025d7f
Allow the application to explicitly request a software renderer.
2011-02-17 12:03:48 -08:00
Sam Lantinga
7fda55f8d4
Fixed warnings about unused variables and so forth.
2011-02-17 02:18:41 -08:00
Sam Lantinga
2a4134c20a
Whoops, need to actually clip to the viewport in the software renderer.
2011-02-15 14:10:50 -08:00
Sam Lantinga
c804b92b9e
Changed the concept of a render clip rect to a render viewport.
...
The render viewport is automatically re-centered when the window changes size, so applications that don't care will not have to handle recalculating their rendering coordinates.
Fixed API for drawing and filling multiple rectangles - the parameter should be an array of rects, not an array of pointers to rects.
Fixed API for updating window rects for consistency with other APIs - the order is pointer to array followed by count in array.
2011-02-15 13:59:59 -08:00
Ken Rogoway
32d70d6f2b
Software scaling support. Not very fast, but it seems to work.
2011-02-14 11:50:18 -06:00
Sam Lantinga
5095592ce5
A few fixes:
...
Fixed creating render texture framebuffer.
Removed the need for palette watch, added surface format caching.
Added an SDL_DONTFREE flag so you can't free the window and 1.2 shadow surfaces.
2011-02-13 13:46:10 -08:00
Sam Lantinga
93ab733085
Fixed bug #1117
...
There's a new event that's always sent when the window changes size, and that event is what the renderers listen for to determine if they need to rebind their context.
2011-02-12 19:02:14 -08:00
Sam Lantinga
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -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
8253658837
Added function SDL_RenderSetClipRect()
2011-02-07 20:06:26 -08:00
Sam Lantinga
f002356b91
Renamed files for consistency
...
--HG--
rename : src/render/direct3d/SDL_d3drender.c => src/render/direct3d/SDL_render_d3d.c
rename : src/render/opengl/SDL_renderer_gl.c => src/render/opengl/SDL_render_gl.c
rename : src/render/opengles/SDL_renderer_gles.c => src/render/opengles/SDL_render_gles.c
rename : src/render/software/SDL_renderer_sw.c => src/render/software/SDL_render_sw.c
rename : src/render/software/SDL_renderer_sw_c.h => src/render/software/SDL_render_sw_c.h
2011-02-05 12:01:11 -08:00
Sam Lantinga
d3229ca45a
Removed execute permissions on source files.
2011-02-05 01:03:51 -08:00
Sam Lantinga
8209e2a9a9
Restored SDL_BLENDMODE_MOD for MAME
2011-02-04 19:50:56 -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
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
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
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