diff options
author | Mike Buland <mike@xagasoft.com> | 2015-04-08 08:40:05 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2015-04-08 08:40:05 -0600 |
commit | f314041b6b37bb9274d9fc79946858341befa0f2 (patch) | |
tree | 3ad385b2bdedeb367ae8b26341d7044c340dc153 /src/main.cpp | |
parent | 518619603ab3c49b7fdfcf19c439c1a30668164f (diff) | |
download | lost-f314041b6b37bb9274d9fc79946858341befa0f2.tar.gz lost-f314041b6b37bb9274d9fc79946858341befa0f2.tar.bz2 lost-f314041b6b37bb9274d9fc79946858341befa0f2.tar.xz lost-f314041b6b37bb9274d9fc79946858341befa0f2.zip |
Added image goo + font support.
Diffstat (limited to '')
-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 ) |