diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index ef3f3de..00dfc8b 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -10,8 +10,24 @@ | |||
10 | #include <stdlib.h> | 10 | #include <stdlib.h> |
11 | #include <time.h> | 11 | #include <time.h> |
12 | 12 | ||
13 | #include "image.h" | ||
14 | #include "palette.h" | ||
15 | #include "font.h" | ||
16 | |||
13 | int main( int argc, char *argv[] ) | 17 | int main( int argc, char *argv[] ) |
14 | { | 18 | { |
19 | /* | ||
20 | Image im( 400, 400 ); | ||
21 | Font f("ter-u12n.bdf"); | ||
22 | Palette pl; | ||
23 | pl.addColor( 0, 0, 0 ); | ||
24 | pl.addColor( 255, 0, 0 ); | ||
25 | pl.addColor( 0, 0, 255 ); | ||
26 | im.drawLine( 0, 12, 399, 12, 2 ); | ||
27 | im.drawText( f, 12, 12, 1, "Hello World!yqjm (01234,56789)"); | ||
28 | im.save("test.png", pl); | ||
29 | return 0; | ||
30 | */ | ||
15 | srand( time( NULL ) ); | 31 | srand( time( NULL ) ); |
16 | 32 | ||
17 | if( argc <= 2 ) | 33 | if( argc <= 2 ) |