#ifndef DRAW_H #define DRAW_H #include "common.h" #include "image.h" typedef struct { int x; int y; } point; #define max4(a,b,c,d) max(max(a,b),max(c,d)) #define min4(a,b,c,d) min(min(a,b),min(c,d)) #define swapint(x,y) { int t = x; x = y; y = t; } int round (double x); void drawHLine (Image* img, int y, int x0, int x1, Pixel& p); void drawQuad (Image* img, point i, point j, point k, point l, Pixel& p); void drawPoly (Image* img, point* pts, int n, Pixel& p); void drawCircle (Image* img, int x, int y, int r, Pixel& p); void drawAntiAliasedCircle (Image* img, int x, int y, int r, Pixel& p); #endif // DRAW_H