Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5131 | clevermous | 1 | |
2 | ~~~~~~~~~~~~~~ |
||
3 | The latest version of this library is available from: |
||
4 | http://sdl-draw.sourceforge.net/ |
||
5 | |||
6 | |||
7 | circles, on SDL surfaces. |
||
8 | |||
9 | |||
10 | ~~~~~~~~~~~ |
||
11 | #include "SDL_draw.h" |
||
12 | |||
13 | |||
14 | Draw_Init(); //Register the functions for current bpp |
||
15 | |||
16 | |||
17 | |||
18 | Sint16 x, Sint16 y, Uint32 color); |
||
19 | |||
20 | |||
21 | |||
22 | |||
23 | |||
24 | Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, |
||
25 | Uint32 color); |
||
26 | |||
27 | |||
28 | |||
29 | |||
30 | |||
31 | Sint16 x0, Sint16 y0, Uint16 r, |
||
32 | Uint32 color); |
||
33 | |||
34 | |||
35 | |||
36 | |||
37 | |||
38 | Sint16 x0, Sint16 y0, Uint16 r, |
||
39 | Uint32 color); |
||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | Sint16 x0,Sint16 y0, Sint16 x1, |
||
46 | Uint32 color); |
||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | Sint16 x0,Sint16 y0, Sint16 y1, |
||
53 | Uint32 color); |
||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | Sint16 x,Sint16 y, Uint16 w,Uint16 h, |
||
60 | Uint32 color); |
||
61 | |||
62 | |||
63 | height. |
||
64 | |||
65 | |||
66 | |||
67 | Sint16 x,Sint16 y, Uint16 w,Uint16 h, |
||
68 | Uint32 color); |
||
69 | |||
70 | |||
71 | to SDL_FillRect (is a MACRO). |
||
72 | |||
73 | |||
74 | |||
75 | Sint16 x0, Sint16 y0, |
||
76 | Uint16 Xradius, Uint16 Yradius, |
||
77 | Uint32 color); |
||
78 | |||
79 | |||
80 | the minor axis. |
||
81 | |||
82 | |||
83 | |||
84 | Sint16 x0, Sint16 y0, |
||
85 | Uint16 Xradius, Uint16 Yradius, |
||
86 | Uint32 color); |
||
87 | |||
88 | |||
89 | |||
90 | |||
91 | |||
92 | Sint16 x0,Sint16 y0, Uint16 w,Uint16 h, |
||
93 | Uint16 corner, Uint32 color); |
||
94 | |||
95 | |||
96 | rectangle, w is the width and h is the height. corner is the radius of the |
||
97 | corner. |
||
98 | |||
99 | |||
100 | |||
101 | Sint16 x0,Sint16 y0, Uint16 w,Uint16 h, |
||
102 | Uint16 corner, Uint32 color); |
||
103 | |||
104 | |||
105 | |||
106 | |||
107 | |||
108 | compile it using (for GNU Compiler): |
||
109 | |||
110 | |||
111 | $ export LIBS="`sdl-config --libs` ./src/.libs/libSDL_draw.a" |
||
112 | $ gcc -o sdldrawtest sdldrawtest.c -Wall $CFLAGS $LIBS |
||
113 | |||
114 | |||
115 | "COPYING" for details. |
||
116 |