Woopsi 1.3
Nintendo DS Gui Framework
libwoopsi/include/packedfont1.h
00001 /* Contributed by Jeff Laing
00002  * 20080414
00003  */
00004 
00005 #ifndef _PACKED_FONT_1_
00006 #define _PACKED_FONT_1_
00007 
00008 #include "packedfontbase.h"
00009 
00010 namespace WoopsiUI {
00011 
00012     class MutableBitmapBase;
00013 
00017     class PackedFont1 : public PackedFontBase
00018     {
00019     public:
00033         PackedFont1(
00034             u8 first, u8 last,
00035             const u16 *glyphData,
00036             const u16 *glyphOffset,
00037             const u8 *glyphWidth,
00038             const u8 height,
00039             const u8 spWidth,
00040             const u8 charTop,
00041             const u8 fixedWidth = 0)
00042             :
00043               PackedFontBase(first, last, glyphData, glyphOffset, glyphWidth, height, spWidth, charTop, fixedWidth) { }
00044 
00060         void renderChar(
00061             const u16* pixelData, u16 pixelsPerRow,
00062             MutableBitmapBase* bitmap,
00063             u16 colour,
00064             s16 x, s16 y,
00065             u16 clipX1, u16 clipY1, u16 clipX2, u16 clipY2);
00066     };
00067 }
00068 
00069 #endif
 All Classes Functions Variables Enumerations Enumerator