core/vgui/vgui_font_bitmap.h
Go to the documentation of this file.
00001 // This is core/vgui/vgui_font_bitmap.h
00002 #ifndef vgui_font_bitmap_h_
00003 #define vgui_font_bitmap_h_
00004 //=========================================================================
00005 //:
00006 // \file
00007 // \brief  vgui_font derived class that uses hardcoded fonts.
00008 // \author Miguel A. Figueroa-Villanueva (miguelf at ieee dot org)
00009 //
00010 // \verbatim
00011 //  Modifications
00012 //   05/27/2006 - File created. (miguelfv)
00013 // \endverbatim
00014 //=========================================================================
00015 
00016 #include <vgui/vgui_font.h>
00017 #include <vgui/vgui_gl.h>
00018 
00019 //-------------------------------------------------------------------------
00020 //: vgui_font derived class that uses hardcoded fonts.
00021 // Currently, it only supports a 8x13 size font type.
00022 //-------------------------------------------------------------------------
00023 class vgui_font_bitmap : public vgui_font
00024 {
00025 public:
00026   enum bitmap_font_type
00027   {
00028     BITMAP_FONT_8_13
00029   };
00030 
00031   //: Constructor - default.
00032   vgui_font_bitmap(bitmap_font_type t = BITMAP_FONT_8_13);
00033 
00034   //: Draw a string of font symbols.
00035   virtual void draw(const vcl_string& str) const;
00036 
00037 //protected:
00038   //: Destructor.
00039   virtual ~vgui_font_bitmap();
00040 
00041 private:
00042   //: Base display list identifier (i.e., for the first symbol).
00043   GLuint display_list_base_id_;
00044 };
00045 
00046 #endif // vgui_font_bitmap_h_