diff src/video/SDL_drawpoint.c @ 3596:f638ded38b8a

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.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 23 Dec 2009 01:55:00 +0000
parents 0267b8b1595c
children f7b03b6838cb
line wrap: on
line diff
--- a/src/video/SDL_drawpoint.c	Fri Dec 18 08:19:18 2009 +0000
+++ b/src/video/SDL_drawpoint.c	Wed Dec 23 01:55:00 2009 +0000
@@ -47,16 +47,16 @@
 
     switch (dst->format->BytesPerPixel) {
     case 1:
-        DRAW_FASTSETPIXEL1(x, y);
+        DRAW_FASTSETPIXELXY1(x, y);
         break;
     case 2:
-        DRAW_FASTSETPIXEL2(x, y);
+        DRAW_FASTSETPIXELXY2(x, y);
         break;
     case 3:
         SDL_Unsupported();
         return -1;
     case 4:
-        DRAW_FASTSETPIXEL4(x, y);
+        DRAW_FASTSETPIXELXY4(x, y);
         break;
     }
     return 0;
@@ -97,16 +97,16 @@
 
         switch (dst->format->BytesPerPixel) {
         case 1:
-            DRAW_FASTSETPIXEL1(x, y);
+            DRAW_FASTSETPIXELXY1(x, y);
             break;
         case 2:
-            DRAW_FASTSETPIXEL2(x, y);
+            DRAW_FASTSETPIXELXY2(x, y);
             break;
         case 3:
             SDL_Unsupported();
             return -1;
         case 4:
-            DRAW_FASTSETPIXEL4(x, y);
+            DRAW_FASTSETPIXELXY4(x, y);
             break;
         }
     }