Figures


Important!



sge_H/VLine Draws a horizontal or vertical line.



sge_DoLine Calculates all the points along a line from p1 to p2, calling the supplied function for each point. The callback function should look like Callback(SDL_Surface *Surf, Sint16 x, Sint16 y, Uint32 Color). For example, to draw a line without lock or update: sge_DoLine(Surface, x1, y1, x2, y2, Color, _PutPixel).



sge_Line Draws a line from p1 to p2.



sge_Rect Draws a rectangle.



sge_FilledRect Draws a filled rectangle. You can also use SDL_FillRect() directly.



sge_DoCircle Calculates all the points in a circle around point (x,y) with radius r, calling the supplied function for each one. The callback function should look like Callback(SDL_Surface *Surf, Sint16 x, Sint16 y, Uint32 Color).



sge_Circle Draws a circle with the specified centre and radius.



sge_FilledCircle Draws a filled circle with the specified centre and radius.



sge_DoEllipse Calculates all the points in an ellipse around point (x,y) with x-radius rx and y-radius ry, calling the supplied function for each one. The callback function should look like Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color).



sge_Ellipse Draws an ellipse with the specified centre and radius.



sge_FilledEllipse Draws a filled ellipse with the specified centre and radius.



sge_Bezier Draws a bezier curve from p1 to p4 with the control points p2 and p3. The variable 'level' indicates how good precision the function should use, 4-7 is normal.







Copyright © 1999-2002 Anders Lindström
Last updated 020102