Irrlicht 3D Engine
 
Loading...
Searching...
No Matches
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
10namespace irr
11{
12namespace gui
13{
14 class IGUISpriteBank;
15
18{
19public:
20
22 virtual EGUI_FONT_TYPE getType() const { return EGFT_BITMAP; }
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
virtual u32 getSpriteNoFromChar(const wchar_t *c) const =0
returns the sprite number from a given character
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,...
virtual EGUI_FONT_TYPE getType() const
Returns the type of this font.
virtual IGUISpriteBank * getSpriteBank() const =0
returns the parsed Symbol Information
Font interface.
Definition IGUIFont.h:40
Sprite bank interface.
EGUI_FONT_TYPE
An enum for the different types of GUI font.
Definition IGUIFont.h:20
@ EGFT_BITMAP
Bitmap fonts loaded from an XML file or a texture.
Definition IGUIFont.h:22
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
signed int s32
32 bit signed variable.
Definition irrTypes.h:66