arsa  2.7
IGUIFontBitmap.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_GUI_FONT_BITMAP_H_INCLUDED__
6 #define __I_GUI_FONT_BITMAP_H_INCLUDED__
7 
8 #include "IGUIFont.h"
9 
10 namespace irr
11 {
12 namespace gui
13 {
14  class IGUISpriteBank;
15 
17 class IGUIFontBitmap : public IGUIFont
18 {
19 public:
20 
23 
25  virtual IGUISpriteBank* getSpriteBank() const = 0;
26 
28  virtual u32 getSpriteNoFromChar(const wchar_t *c) const = 0;
29 
31 
39  virtual s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const = 0;
40 };
41 
42 } // end namespace gui
43 } // end namespace irr
44 
45 #endif
46 
Sprite bank interface.
EGUI_FONT_TYPE
An enum for the different types of GUI font.
Definition: IGUIFont.h:19
virtual u32 getSpriteNoFromChar(const wchar_t *c) const =0
returns the sprite number from a given character
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
virtual EGUI_FONT_TYPE getType() const _IRR_OVERRIDE_
Returns the type of this font.
Font interface.
Definition: IGUIFont.h:39
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
virtual IGUISpriteBank * getSpriteBank() const =0
returns the parsed Symbol Information
Bitmap fonts loaded from an XML file or a texture.
Definition: IGUIFont.h:22
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
virtual s32 getKerningWidth(const wchar_t *thisLetter=0, const wchar_t *previousLetter=0) const =0
Gets kerning values (distance between letters) for the font. If no parameters are provided,...
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
Definition: irrTypes.h:216
#define const
Definition: zconf.h:217
const GLubyte * c