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/image.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/image.h (limited to 'src/image.h') diff --git a/src/image.h b/src/image.h new file mode 100644 index 0000000..cdc13e0 --- /dev/null +++ b/src/image.h @@ -0,0 +1,27 @@ +#ifndef IMAGE_H +#define IMAGE_H + +#include + +class Image +{ +public: + Image(); + Image( int32_t iWidth, int32_t iHeight ); + virtual ~Image(); + + void clear( uint8_t uColor=0 ); + void set( int32_t x, int32_t y, uint8_t iCol ); + + void save( const char *sPath, class Palette &rPal ); + void drawText( class Font &rFnt, int32_t x, int32_t y, uint8_t uColor, + const char *sText ); + void drawLine( int32_t x1, int32_t y1, int32_t x2, int32_t y2, uint8_t uColor ); + +private: + int32_t iWidth; + int32_t iHeight; + uint8_t *pPix; +}; + +#endif -- cgit v1.2.3