aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/include/IGUIFontBitmap.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 17:24:39 +1000
committerDavid Walter Seikel2013-01-13 17:24:39 +1000
commit393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch)
tree6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/include/IGUIFontBitmap.h
parentAdd a note about rasters suggested start up code. (diff)
downloadSledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to 'libraries/irrlicht-1.8/include/IGUIFontBitmap.h')
-rw-r--r--libraries/irrlicht-1.8/include/IGUIFontBitmap.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/include/IGUIFontBitmap.h b/libraries/irrlicht-1.8/include/IGUIFontBitmap.h
new file mode 100644
index 0000000..36ae37e
--- /dev/null
+++ b/libraries/irrlicht-1.8/include/IGUIFontBitmap.h
@@ -0,0 +1,46 @@
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
16//! Font interface.
17class IGUIFontBitmap : public IGUIFont
18{
19public:
20
21 //! Returns the type of this font
22 virtual EGUI_FONT_TYPE getType() const { return EGFT_BITMAP; }
23
24 //! returns the parsed Symbol Information
25 virtual IGUISpriteBank* getSpriteBank() const = 0;
26
27 //! returns the sprite number from a given character
28 virtual u32 getSpriteNoFromChar(const wchar_t *c) const = 0;
29
30 //! Gets kerning values (distance between letters) for the font. If no parameters are provided,
31 /** the global kerning distance is returned.
32 \param thisLetter: If this parameter is provided, the left side kerning for this letter is added
33 to the global kerning value. For example, a space might only be one pixel wide, but it may
34 be displayed as several pixels.
35 \param previousLetter: If provided, kerning is calculated for both letters and added to the global
36 kerning value. For example, EGFT_BITMAP will add the right kerning value of previousLetter to the
37 left side kerning value of thisLetter, then add the global value.
38 */
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