Woopsi 1.3
Nintendo DS Gui Framework
libwoopsi/include/packedfont16.h
00001 /* Contributed by Jeff Laing
00002  * 20080414
00003  */
00004 
00005 #ifndef _PACKED_FONT_16_
00006 #define _PACKED_FONT_16_
00007 
00008 #include "packedfontbase.h"
00009 
00010 namespace WoopsiUI {
00011 
00012     class MutableBitmapBase;
00013 
00017     class PackedFont16 : public PackedFontBase
00018     {
00019     public:
00033         PackedFont16(
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 
00062         void renderChar(
00063             const u16* pixelData, u16 pixelsPerRow,
00064             MutableBitmapBase* bitmap,
00065             u16 colour,
00066             s16 x, s16 y,
00067             u16 clipX1, u16 clipY1, u16 clipX2, u16 clipY2);
00068     };
00069 }
00070 
00071 #endif
 All Classes Functions Variables Enumerations Enumerator