From f314041b6b37bb9274d9fc79946858341befa0f2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 8 Apr 2015 08:40:05 -0600 Subject: Added image goo + font support. --- src/main.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/main.cpp') 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 @@ #include #include +#include "image.h" +#include "palette.h" +#include "font.h" + int main( int argc, char *argv[] ) { + /* + Image im( 400, 400 ); + Font f("ter-u12n.bdf"); + Palette pl; + pl.addColor( 0, 0, 0 ); + pl.addColor( 255, 0, 0 ); + pl.addColor( 0, 0, 255 ); + im.drawLine( 0, 12, 399, 12, 2 ); + im.drawText( f, 12, 12, 1, "Hello World!yqjm (01234,56789)"); + im.save("test.png", pl); + return 0; +*/ srand( time( NULL ) ); if( argc <= 2 ) -- cgit v1.2.3