]> git.sur5r.net Git - cc65/blob - samples/geos/grphstr.c
rearranged order of new optimizations to better handle -Oi flag
[cc65] / samples / geos / grphstr.c
1 /* Note:
2 ** This is just a sample piece of code that shows how to use some structs -
3 ** it may not even run.
4 */
5
6
7 #include <geos.h>
8
9 static const graphicStr myString = {
10         MOVEPENTO (0, 0),
11         LINETO(100, 100),
12         RECTANGLETO(50, 50),
13         NEWPATTERN(3),
14         FRAME_RECTO(50, 50),
15         PEN_X_DELTA(10),
16         PEN_Y_DELTA(10),
17         PEN_XY_DELTA(10, 10),
18         GSTR_END
19         };
20
21 int main (void)
22 {
23     GraphicsString(&myString);
24 }
25