Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IGUIFontBitmap.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_GUI_FONT_BITMAP_HPP_INCLUDED
6#define NIRT_I_GUI_FONT_BITMAP_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IGUIFont.hpp>
9
10namespace nirt
11{
12namespace gui
13{
14 class IGUISpriteBank;
15
18{
19public:
20
22 virtual EGUI_FONT_TYPE getType() const override { 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 override = 0;
40};
41
42} // end namespace gui
43} // end namespace nirt
44
45#endif
Font interface.
Definition IGUIFontBitmap.hpp:18
virtual u32 getSpriteNoFromChar(const wchar_t *c) const =0
returns the sprite number from a given character
virtual EGUI_FONT_TYPE getType() const override
Returns the type of this font.
Definition IGUIFontBitmap.hpp:22
virtual IGUISpriteBank * getSpriteBank() const =0
returns the parsed Symbol Information
virtual s32 getKerningWidth(const wchar_t *thisLetter=0, const wchar_t *previousLetter=0) const override=0
Gets kerning values (distance between letters) for the font. If no parameters are provided,...
Font interface.
Definition IGUIFont.hpp:40
Sprite bank interface.
Definition IGUISpriteBank.hpp:71
EGUI_FONT_TYPE
An enum for the different types of GUI font.
Definition IGUIFont.hpp:20
@ EGFT_BITMAP
Bitmap fonts loaded from an XML file or a texture.
Definition IGUIFont.hpp:22
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print