summaryrefslogtreecommitdiff
path: root/include/SDL_render.h
AgeCommit message (Collapse)AuthorFilesLines
2019-01-04Updated copyright for 2019Sam Lantinga1-1/+1
2018-10-23render: Add floating point versions of various draw APIs.Ryan C. Gordon1-0/+142
--HG-- branch : SDL-ryan-batching-renderer
2018-10-04render: Added SDL_RenderFlush().Ryan C. Gordon1-0/+25
--HG-- branch : SDL-ryan-batching-renderer
2018-01-03Updated copyright for 2018Sam Lantinga1-1/+1
2017-12-08Added SDL_RenderGetMetalLayer() and SDL_RenderGetMetalCommandEncoder()Sam Lantinga1-0/+21
2017-08-12Note that texture contents are undefined when the texture is created.Sam Lantinga1-0/+2
2017-08-11Fixed bug 3492 - SDL_RenderCopyEx angle direction not documentedSam Lantinga1-1/+1
xyzdragon Reading https://wiki.libsdl.org/SDL_RenderCopyEx there is no mention what the angle means. Normally in a mathematically environment positive angles translate to counter-clockwise rotations, but in SDL positive angles means clockwise rotation.
2017-08-10Fixed bug 3681 - SDL_UpateTexture documentation not specific enough about ↵Sam Lantinga1-1/+4
format requirement Simon Hug The documentation of SDL_UpateTexture does not say that the pixel data has to be in the format of the texture.
2017-01-01Updated copyright for 2017Sam Lantinga1-1/+1
2016-11-20Renaming of guard header names to quiet -Wreserved-id-macroSam Lantinga1-3/+3
Patch contributed by Sylvain
2016-10-01Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRectSam Lantinga1-1/+2
Simon Hug The description of the SDL_RenderClear function in the SDL_render.h header says the following: "This function clears the entire rendering target, ignoring the viewport." The word "entire" implies that the clipping rectangle set with SDL_RenderSetClipRect also gets ignored. This is left somewhat ambiguous if only the viewport is mentioned. Minor thing, but let's see what the implementations actually do. The software renderer ignores the clipping rectangle when clearing. It even has a comment on this: /* By definition the clear ignores the clip rect */ Most other render drivers (opengl, opengles, opengles2, direct3d, and psp [I assume. Can't test it.]) use the scissor test for the ClipRect and don't disable it when clearing. Clearing will only happen within the clipping rectangle for these drivers. An exception is direct3d11 which uses a clear function that ignores the scissor test.
2016-01-05SDL_RenderSetIntegerScaleEthan Lee1-0/+24
2016-01-02Updated copyright to 2016Sam Lantinga1-1/+1
2015-12-31Updated some header comments and iOS documentation to better clarify ↵Alex Szpakowski1-1/+1
high-dpi / retina support and screen-coordinate sizes versus pixel sizes.
2015-08-21Corrected documentation of the SDL_CreateTexture() functions in header file.Philipp Wiesemann1-2/+2
2015-05-26Updated the copyright year to 2015Sam Lantinga1-1/+1
2015-01-30Fix typos in header file documentation comments.Philipp Wiesemann1-3/+3
2014-11-29Improved the pitch variable descriptionSam Lantinga1-1/+1
2014-10-27Fixed two typos in header file comment.Philipp Wiesemann1-1/+1
2014-04-19Render: Allow empty cliprect.Jørgen P. Tjernø1-0/+10
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
2014-02-02Fixed bug 2374 - Update copyright for 2014...Sam Lantinga1-1/+1
Is it that time already??
2013-11-23Fixed a few public APIs that we accidentally neglected to mark as SDLCALL.Ryan C. Gordon1-2/+2
Fixes Bugzilla #2262.
2013-09-28Added optimized YUV texture upload path with SDL_UpdateYUVTexture()Sam Lantinga1-0/+25
2013-07-28Added documentation saying the render API isn't for multi-threading.Sam Lantinga1-1/+4
2013-05-29When the window is resized, the viewport is automatically reset.Sam Lantinga1-2/+1
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-29Fixed bug 1622 - SDL_RenderSetViewport with empty SDL_Rect raises wrong ↵Sam Lantinga1-0/+6
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-18File style cleanup for the SDL 2.0 releaseSam Lantinga1-114/+110
2013-05-18Fixed Doxygen warnings.Philipp Wiesemann1-0/+25
2013-05-15Fixed Doxygen warnings.Philipp Wiesemann1-1/+1
2013-05-12Fixed bug 1843 - SDL_RenderClear prototype doxygen missingPhilipp Wiesemann1-0/+2
Martin Gerhardy SDL_RenderClear prototype misses documentation for the return value
2013-05-04First pass on SDL render clip rect functionalitySam Lantinga1-0/+26
2013-02-15Happy New Year!Sam Lantinga1-1/+1
2013-01-27Fixed typo in documentationSam Lantinga1-1/+1
2012-10-12Added SDL_GetRenderTarget() API functionSam Lantinga1-0/+11
Also fixed a bug with setting logical size for a render target.
2012-10-01Added SDL_RenderSetLogicalSize() and SDL_RenderGetLogicalSize()Sam Lantinga1-0/+44
2012-10-01Added SDL_RenderSetScale() and SDL_RenderGetScale()Sam Lantinga1-0/+26
2012-09-28Made it clear that locking a streaming texture is a write-only operation.Sam Lantinga1-1/+1
2012-09-03Implements SDL_GL_BindTexture and SDL_GL_UnbindTexture (#1576)Gabriel Jacobo1-0/+22
2012-06-01RenderCopyEx,rotation and flipping for all hardware/software backends (#1308)Gabriel Jacobo1-0/+31
2012-01-22Added a convenience function SDL_CreateWindowAndRenderer()Sam Lantinga1-0/+16
2012-01-22You need to create the texture with the SDL_TEXTUREACCESS_TARGET flag.Sam Lantinga1-1/+1
2012-01-22Renamed SetTargetTexture() to SetRenderTarget()Sam Lantinga1-24/+19
2012-01-19Added a renderer flag to expose whether a renderer supports render to texture.Sam Lantinga1-1/+3
2012-01-18Implementation of render targets, by Mason Wheeler and Gabriel JacoboSam Lantinga1-1/+27
Thanks guys!
2011-12-31Happy New Year!Sam Lantinga1-1/+1
2011-10-30The draw color affects RenderClear() as well. (thanks to the feedback form ↵Sam Lantinga1-2/+2
to whoever pointed this out)
2011-04-08SDL 1.3 is now under the zlib license.Sam Lantinga1-19/+18
2011-04-04Added SDL_GetRenderer()Sam Lantinga1-0/+5
2011-03-14Fixed typoSam Lantinga1-1/+1
2011-02-18Whoops, the format parameter was off the page.Sam Lantinga1-1/+2