el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers UGFontRenderer.h Source File

UGFontRenderer.h

00001 #ifndef SIMPLEGUI_UNIGRAPHIC_FONT_RENDERER_H
00002 #define SIMPLEGUI_UNIGRAPHIC_FONT_RENDERER_H
00003 
00004 #include "FontRenderer.h"
00005 #include "UGFont.h"
00006 #include "GraphicsDisplay.h"
00007 /**
00008 * Provides two means to render a font
00009 * - windowed: uses the same wrap-around algorithm as UniGraphic
00010 * - clipped: does not wrap. Only shows pixels within the clipping window
00011 **/
00012 
00013 class UGFontRenderer : public FontRenderer
00014 {
00015 
00016 public:
00017 
00018     UGFontRenderer();
00019  
00020     virtual void putc(const char  c, GraphicsDisplay* display, Font* font);
00021     virtual void puts(const char* s, GraphicsDisplay* display, Font* font);
00022     //virtual void setFont(UGFont* font);
00023 
00024 private:
00025     
00026     UGFont* _font;
00027    
00028 };
00029 
00030 #endif