Sam Lantinga
825e1da54d
Making the API simpler, the blend modes are "none, blend, add" and are supported by all renderers.
...
--HG--
extra : rebase_source : f06ea01caa64c8ad14170c723e5af52dad64d779
2011-01-31 23:23:57 -08:00
Sam Lantinga
4d3df8b3e3
Fixed bug #926
...
Updated copyright to LGPL version 2.1 and year 2010
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404453
2010-01-24 21:10:53 +00:00
Sam Lantinga
6da163ab81
Added SDL_RenderClear() as a fast method of clearing the screen to the drawing color.
...
Renamed SDL_RenderPoint() and SDL_RenderLine() to SDL_RenderDrawPoint() and SDL_RenderDrawLine().
Added API for rectangle drawing (as opposed to filling)
Added placeholder API functions for circles and ellipses ... I'm not sure whether these will stay.
Optimized software line drawing quite a bit.
Added support for Wu's anti-aliased line drawing, currently disabled by default.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404346
2009-12-23 01:55:00 +00:00
Sam Lantinga
2b04928c0e
Added SDL_DrawRect(), SDL_DrawRects(), SDL_BlendRect() and SDL_BlendRects()
...
Fixed line drawing so when blending a sequence of lines there are no overlapping pixels drawn.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404344
2009-12-18 07:41:59 +00:00
Sam Lantinga
e4c73114dc
In the process of adding rectangle drawing
...
--HG--
rename : src/video/SDL_blendrect.c => src/video/SDL_blendfillrect.c
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404343
2009-12-18 07:03:09 +00:00
Sam Lantinga
8ee9720297
Added interfaces for batch drawing of points, lines and rects:
...
SDL_DrawPoints()
SDL_BlendPoints()
SDL_BlendLines()
SDL_DrawLines()
SDL_FillRects()
SDL_BlendRects()
SDL_RenderPoints()
SDL_RenderLines()
SDL_RenderRects()
Renamed SDL_RenderFill() to SDL_RenderRect()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404279
2009-12-09 15:56:56 +00:00
Sam Lantinga
31ee34541c
Fixed off by one error in line drawing code
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403527
2009-02-12 06:01:54 +00:00
Sam Lantinga
c53a7c6ca2
Updated to build on Windows
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403380
2008-12-25 05:11:29 +00:00
Sam Lantinga
18b9f5b296
Working Bresenham line drawing algorithm. We can optimize later, if needed.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403365
2008-12-21 20:16:21 +00:00
Sam Lantinga
f055f6a189
Added RenderPiont() API
...
Merged the drawing tests into a single test program
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403363
2008-12-21 17:39:41 +00:00
Sam Lantinga
4f84ec9b5e
Make it possible to switch algorithms in the future
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403362
2008-12-21 08:59:56 +00:00
Sam Lantinga
c37ad66b0a
Added ARGB optimized case for Mac OS X
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403361
2008-12-21 08:55:06 +00:00
Sam Lantinga
d95e51d2ea
Share code between fill and line drawing
...
Added general RGB surface format fallbacks to drawing code
Fixed issues with destination surface alpha channel
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403360
2008-12-21 08:28:25 +00:00