Sam Lantinga
a19e258730
Added the SDL_HINT_RENDER_SCALE_QUALITY hint, which defaults to nearest pixel sampling.
2011-03-13 11:18:35 -07:00
Sam Lantinga
45d991f20d
Fixed permissions for C source files
2011-03-11 11:52:41 -08:00
Sam Lantinga
2f6aa755d6
Fixed bug 1162 (Error calling SDL_RenderReadPixels() with format=0)
2011-03-10 01:03:43 -08:00
Sam Lantinga
ce2aa2ee1d
Zero streaming textures at the driver level
2011-02-26 21:39:34 -08:00
Sam Lantinga
0dd9ad216f
Hopefully fixed crashes when creating multiple streaming textures of different sizes.
2011-02-24 23:42:58 -08:00
Sam Lantinga
9da77abd36
Fixed compiler warnings
2011-02-21 22:26:59 -08:00
Sam Lantinga
ee61cc3170
Added OpenGL state caching for decent speed improvement.
2011-02-19 21:51:21 -08:00
Sam Lantinga
9b4905af3b
Fixed warning on Mac OS X 10.4
2011-02-19 14:27:16 -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
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
78a17dbc64
Ah there, that fixed it. :)
2011-02-12 00:42:39 -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
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
0f1080b558
Fixed compiling on Windows
...
Added an untested shader for YV12 textures
2011-02-09 10:31:12 -08:00
Sam Lantinga
85a93efaec
Fixed crash when shaders aren't available.
2011-02-09 10:13:26 -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
505dd64abe
Made the shaders easier to debug when they don't compile
2011-02-08 20:31:39 -08:00
Sam Lantinga
296fa03f71
Fixed the shaders (needed to use texture2DRect) - thanks Ryan!
2011-02-08 20:23:52 -08:00
Sam Lantinga
fd61299f87
Fixed setting the texture unit, still doesn't work.
2011-02-08 16:50:51 -08:00
Sam Lantinga
e66660c5f6
Beginning of a framework for OpenGL shaders
2011-02-08 16:27:52 -08:00
Sam Lantinga
e455951633
Reduce duplicated code in the texture update code paths
2011-02-08 10:38:12 -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
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
cc1f36b7dc
Minor consistency cleanup and documentation link update.
2011-02-06 00:48:41 -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
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
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