Ethan Lee
c93d43c4e0
SDL_RenderSetIntegerScale
2016-01-05 16:39:18 -05:00
Sam Lantinga
7ee8dda270
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Alex Szpakowski
1c47d39ad1
Updated some header comments and iOS documentation to better clarify high-dpi / retina support and screen-coordinate sizes versus pixel sizes.
2015-12-31 21:16:43 -04:00
Philipp Wiesemann
56e17dd71f
Corrected documentation of the SDL_CreateTexture() functions in header file.
2015-08-21 23:50:59 +02:00
Sam Lantinga
56b58afdbe
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Philipp Wiesemann
26ddac2631
Fix typos in header file documentation comments.
2015-01-30 23:20:15 +01:00
Sam Lantinga
bfedd0228b
Improved the pitch variable description
2014-11-29 11:18:49 -08:00
Philipp Wiesemann
0492432d15
Fixed two typos in header file comment.
2014-10-27 12:53:47 +01:00
Jørgen P. Tjernø
431aca234b
Render: Allow empty cliprect.
...
This fixes an issue where an empty cliprect is treated the same as a NULL
cliprect, causing the render backends to disable clipping.
Also adds a new API, SDL_RenderIsClipEnabled(render) that allows you to
differentiate between:
- SDL_RenderSetClipRect(render, NULL)
- SDL_Rect r = {0,0,0,0}; SDL_RenderSetClipRect(render, &r);
Fixes https://bugzilla.libsdl.org/show_bug.cgi?id=2504
--HG--
extra : amend_source : 9e5ac76e3f009d9ae49bc61c350df3ba891267b5
extra : histedit_source : b92b8be4d05b19a89fa0dee57f7ed6b1e924cb99%2Cce419f6ade87bafc78ff42702c1f263d2469e7e7
2014-04-19 13:15:41 -07:00
Sam Lantinga
d7940a513e
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
Ryan C. Gordon
d2671e8a86
Fixed a few public APIs that we accidentally neglected to mark as SDLCALL.
...
Fixes Bugzilla #2262 .
--HG--
extra : rebase_source : ba28833dc17e3cb29c4566c7396f5e005d448576
2013-11-23 15:52:49 -05:00
Sam Lantinga
43cc5c1cbb
Added optimized YUV texture upload path with SDL_UpdateYUVTexture()
2013-09-28 14:06:47 -07:00
Sam Lantinga
56c6743a1b
Added documentation saying the render API isn't for multi-threading.
2013-07-28 11:24:16 -07:00
Sam Lantinga
20c5cf1e8b
When the window is resized, the viewport is automatically reset.
...
This resolves lots of confusion around resizable windows. Most people don't expect a viewport to be implicitly set when the renderer is created and then not to be reset to the window size if the window is resized.
Added common test command line parameters --logical WxH and --scale N to test the render logical size and scaling APIs.
2013-05-29 03:22:19 -07:00
Sam Lantinga
c55f53aa40
Fixed bug 1622 - SDL_RenderSetViewport with empty SDL_Rect raises wrong error for OpenGL rendering backend
...
It's now legal to set an empty viewport rect - it will prevent any rendering.
Also added an API to query the output size: SDL_GetRendererOutputSize()
2013-05-29 03:07:55 -07:00
Sam Lantinga
0cb6385637
File style cleanup for the SDL 2.0 release
2013-05-18 14:17:52 -07:00
Philipp Wiesemann
f86b25c56e
Fixed Doxygen warnings.
2013-05-18 14:48:19 +02:00
Philipp Wiesemann
74047a3267
Fixed Doxygen warnings.
2013-05-15 22:00:28 +02:00
Philipp Wiesemann
98b4492c37
Fixed bug 1843 - SDL_RenderClear prototype doxygen missing
...
Martin Gerhardy
SDL_RenderClear prototype misses documentation for the return value
2013-05-12 13:25:34 +02:00
Sam Lantinga
866f2e5f9e
First pass on SDL render clip rect functionality
2013-05-04 04:46:00 -07:00
Sam Lantinga
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
4809ef4290
Fixed typo in documentation
2013-01-27 15:53:24 -08:00
Sam Lantinga
59fea78fe0
Added SDL_GetRenderTarget() API function
...
Also fixed a bug with setting logical size for a render target.
2012-10-12 02:20:10 -07:00
Sam Lantinga
3c4b366a81
Added SDL_RenderSetLogicalSize() and SDL_RenderGetLogicalSize()
2012-10-01 22:30:07 -07:00
Sam Lantinga
f366b098d4
Added SDL_RenderSetScale() and SDL_RenderGetScale()
2012-10-01 20:59:33 -07:00
Sam Lantinga
400b953d29
Made it clear that locking a streaming texture is a write-only operation.
2012-09-28 03:29:36 -07:00
Gabriel Jacobo
bd7b381374
Implements SDL_GL_BindTexture and SDL_GL_UnbindTexture ( #1576 )
2012-09-03 11:16:12 -03:00
Gabriel Jacobo
17bdcc6e8e
RenderCopyEx,rotation and flipping for all hardware/software backends ( #1308 )
2012-06-01 19:51:08 -03:00
Sam Lantinga
39b2ae4a20
Added a convenience function SDL_CreateWindowAndRenderer()
2012-01-22 19:22:53 -05:00
Sam Lantinga
8d3c63045f
You need to create the texture with the SDL_TEXTUREACCESS_TARGET flag.
2012-01-22 01:29:26 -05:00
Sam Lantinga
0458fa488a
Renamed SetTargetTexture() to SetRenderTarget()
2012-01-22 01:26:28 -05:00
Sam Lantinga
23b96d3406
Added a renderer flag to expose whether a renderer supports render to texture.
2012-01-19 21:06:47 -05:00
Sam Lantinga
a49a88676f
Implementation of render targets, by Mason Wheeler and Gabriel Jacobo
...
Thanks guys!
2012-01-18 22:45:49 -05:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Sam Lantinga
f7c2849eb9
The draw color affects RenderClear() as well. (thanks to the feedback form to whoever pointed this out)
2011-10-30 17:53:54 -04:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
126bbbaa50
Added SDL_GetRenderer()
2011-04-04 09:29:13 -07:00
Sam Lantinga
fb23223dc1
Fixed typo
2011-03-14 10:58:35 -07:00
Sam Lantinga
3afe890b1f
Whoops, the format parameter was off the page.
2011-02-18 09:30:09 -08:00
Sam Lantinga
3746025d7f
Allow the application to explicitly request a software renderer.
2011-02-17 12:03:48 -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
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
8253658837
Added function SDL_RenderSetClipRect()
2011-02-07 20:06:26 -08:00
Sam Lantinga
6fe14e1791
Updated testoverlay2 to use the SDL 2D rendering API
2011-02-07 00:46:43 -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
ddfdd2c2b9
Added an intro to the features and goals of the 2D rendering API.
2011-02-03 10:03:55 -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
09a8558897
Making the API simpler, removed support for palettized video modes and textures.
2011-02-01 21:23:43 -08:00