-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_console_font_8h_source.html
102 lines (102 loc) · 42.5 KB
/
_console_font_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Gamedev Framework (gf): ConsoleFont.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="gf_logo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Gamedev Framework (gf)
 <span id="projectnumber">0.14.0</span>
</div>
<div id="projectbrief">A C++14 framework for 2D games</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6d069d519ae9d12fa11dd8e685586b60.html">gf</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">ConsoleFont.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Gamedev Framework (gf)</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (C) 2016-2019 Julien Bernard</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * This software is provided 'as-is', without any express or implied</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * warranty. In no event will the authors be held liable for any damages</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * arising from the use of this software.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * Permission is granted to anyone to use this software for any purpose,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * including commercial applications, and to alter it and redistribute it</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * freely, subject to the following restrictions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * 1. The origin of this software must not be misrepresented; you must not</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * claim that you wrote the original software. If you use this software</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * in a product, an acknowledgment in the product documentation would be</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * appreciated but is not required.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * 2. Altered source versions must be plainly marked as such, and must not be</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * misrepresented as being the original software.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * 3. This notice may not be removed or altered from any source distribution.</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef GF_CONSOLE_FONT_H</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define GF_CONSOLE_FONT_H</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "ArrayRef.h"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "Path.h"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "Portability.h"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "StringRef.h"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "Texture.h"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "Vector.h"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">namespace </span><a class="code" href="namespacegf.html">gf</a> {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">inline</span> <span class="keyword">namespace </span>v1 {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html"> 42</a></span>  <span class="keyword">struct </span>GF_API <a class="code" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> {</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807a"> 46</a></span>  <span class="keyword">enum</span> <a class="code" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807a">Transparency</a> {</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa7c6eb89d6578acd4e0d6df4c8d09fd4c"> 47</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa7c6eb89d6578acd4e0d6df4c8d09fd4c">Alpha</a>, </div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa859e9941346398dbe065cd57b485cc9d"> 48</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa859e9941346398dbe065cd57b485cc9d">Grayscale</a>, </div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa025c050f3a53d47c8a2e7db76b219505"> 49</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa025c050f3a53d47c8a2e7db76b219505">ColorKey</a>, </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  };</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a82d147fd96f3396af284013b40f3101e"> 52</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807a">Transparency</a> <a class="code" href="structgf_1_1_console_font_format.html#a82d147fd96f3396af284013b40f3101e">transparency</a>; </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941"> 57</a></span>  <span class="keyword">enum</span> <a class="code" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941">Layout</a> {</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a396a8e855eafb8740c8d2fabd751bcfe"> 58</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a396a8e855eafb8740c8d2fabd751bcfe">InColumn</a>, </div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a07a4ff4c1db6fc6e92a7efe791b7f86e"> 59</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a07a4ff4c1db6fc6e92a7efe791b7f86e">InRow</a>, </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  };</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a8e49c12aae7215c81c538990c1993fe9"> 62</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941">Layout</a> <a class="code" href="structgf_1_1_console_font_format.html#a8e49c12aae7215c81c538990c1993fe9">layout</a>; </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdc"> 67</a></span>  <span class="keyword">enum</span> <a class="code" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdc">Mapping</a> {</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca897c4d1be5b7cd7c6e040c30875bce59"> 68</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca897c4d1be5b7cd7c6e040c30875bce59">CodePage437</a>, </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca13e296f4dde27fa17a6debb3d09b6744"> 69</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca13e296f4dde27fa17a6debb3d09b6744">ModifiedCodePage437</a>, </div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca8862fc5fc0cc00fde19dafbdc6ebd4cf"> 70</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca8862fc5fc0cc00fde19dafbdc6ebd4cf">Special</a>, </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca0e1883560cbe542347d153d845d5c698"> 71</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca0e1883560cbe542347d153d845d5c698">Custom</a>, </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  };</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a6ad81ceabda3ebdf87ff0ae45cf83677"> 74</a></span>  <a class="code" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdc">Mapping</a> <a class="code" href="structgf_1_1_console_font_format.html#a6ad81ceabda3ebdf87ff0ae45cf83677">mapping</a>; </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  };</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_element.html"> 83</a></span>  <span class="keyword">struct </span>GF_API <a class="code" href="structgf_1_1_console_font_element.html">ConsoleFontElement</a> {</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_element.html#a3605224dc4ee18e3eecd7b077206bb69"> 84</a></span>  char16_t <a class="code" href="structgf_1_1_console_font_element.html#a3605224dc4ee18e3eecd7b077206bb69">character</a>; </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_element.html#a274d78c67545d3a050c5b12c2254aa07"> 85</a></span>  uint8_t <a class="code" href="structgf_1_1_console_font_element.html#a274d78c67545d3a050c5b12c2254aa07">index</a>; </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  };</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structgf_1_1_predefined_console_font_format.html"> 92</a></span>  <span class="keyword">struct </span>GF_API <a class="code" href="structgf_1_1_predefined_console_font_format.html">PredefinedConsoleFontFormat</a> {</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structgf_1_1_predefined_console_font_format.html#a87db76f021f47b6e1bfd9f3c075ce902"> 96</a></span>  <span class="keyword">static</span> constexpr <a class="code" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> Libtcod = { <a class="code" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa025c050f3a53d47c8a2e7db76b219505">ConsoleFontFormat::ColorKey</a>, <a class="code" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a07a4ff4c1db6fc6e92a7efe791b7f86e">ConsoleFontFormat::InRow</a>, <a class="code" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca8862fc5fc0cc00fde19dafbdc6ebd4cf">ConsoleFontFormat::Special</a> };</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structgf_1_1_predefined_console_font_format.html#a3eaaf0493619fcea4d2db34bb3dcd6f5"> 101</a></span>  <span class="keyword">static</span> constexpr <a class="code" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> DwarfFortress = { <a class="code" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa025c050f3a53d47c8a2e7db76b219505">ConsoleFontFormat::ColorKey</a>, <a class="code" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a07a4ff4c1db6fc6e92a7efe791b7f86e">ConsoleFontFormat::InRow</a>, <a class="code" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca897c4d1be5b7cd7c6e040c30875bce59">ConsoleFontFormat::CodePage437</a> };</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  };</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html"> 110</a></span>  <span class="keyword">class </span>GF_API <a class="code" href="classgf_1_1_console_font.html">ConsoleFont</a> {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classgf_1_1_console_font.html">ConsoleFont</a>();</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="classgf_1_1_console_font.html">ConsoleFont</a>(<span class="keyword">const</span> <a class="code" href="classgf_1_1_image.html">Image</a>& image, <a class="code" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> format, <a class="code" href="structgf_1_1_vector.html">Vector2i</a> size);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keyword">virtual</span> ~<a class="code" href="classgf_1_1_console_font.html">ConsoleFont</a>();</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#a195f1fac89d1020197a2a9cb48c591e1"> 141</a></span>  <a class="code" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> <a class="code" href="classgf_1_1_console_font.html#a195f1fac89d1020197a2a9cb48c591e1">getFormat</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">return</span> m_format;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  }</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#af4f1eef29e1759630c208c74ef931595"> 150</a></span>  <a class="code" href="structgf_1_1_vector.html">Vector2i</a> <a class="code" href="classgf_1_1_console_font.html#af4f1eef29e1759630c208c74ef931595">getSize</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">return</span> m_size;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  }</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#a9c905db63803bafeeb1aec6bea450be9"> 159</a></span>  <a class="code" href="structgf_1_1_vector.html">Vector2i</a> <a class="code" href="classgf_1_1_console_font.html#a9c905db63803bafeeb1aec6bea450be9">getCharacterSize</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">return</span> m_characterSize;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  }</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordtype">void</span> mapCode(char16_t c, <a class="code" href="structgf_1_1_vector.html">Vector2i</a> position);</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordtype">void</span> mapCodeRange(char16_t c, <span class="keywordtype">int</span> count, <a class="code" href="structgf_1_1_vector.html">Vector2i</a> position);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordtype">void</span> mapString(<a class="code" href="classgf_1_1_string_ref.html">StringRef</a> str, <a class="code" href="structgf_1_1_vector.html">Vector2i</a> position);</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordtype">void</span> mapElement(<a class="code" href="structgf_1_1_console_font_element.html">ConsoleFontElement</a> element);</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordtype">void</span> mapElements(<a class="code" href="classgf_1_1_array_ref.html">ArrayRef<ConsoleFontElement></a> elements);</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordtype">void</span> clearMapping();</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <a class="code" href="structgf_1_1_rect.html">RectI</a> getSubTexture(char16_t c) <span class="keyword">const</span>;</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <a class="code" href="structgf_1_1_rect.html">RectF</a> getTextureRect(char16_t c) <span class="keyword">const</span>;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classgf_1_1_bare_texture.html">BareTexture</a> *getTexture() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> </div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordtype">void</span> logFormat(<span class="keyword">const</span> <a class="code" href="group__core.html#ga6788e40b762777c1081f796076116a02">Path</a>& filename) <span class="keyword">const</span>;</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="structgf_1_1_vector.html">Vector2i</a> getColorKeyPosition() <span class="keyword">const</span>;</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  std::vector<uint8_t> m_mapping;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <a class="code" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> m_format;</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <a class="code" href="structgf_1_1_vector.html">Vector2i</a> m_size;</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <a class="code" href="structgf_1_1_vector.html">Vector2i</a> m_characterSize;</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  };</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div><div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="classgf_1_1_bitmap_console_font.html"> 294</a></span>  <span class="keyword">class </span>GF_API <a class="code" href="classgf_1_1_bitmap_console_font.html">BitmapConsoleFont</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_console_font.html">ConsoleFont</a> {</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <a class="code" href="classgf_1_1_bitmap_console_font.html">BitmapConsoleFont</a>(<span class="keyword">const</span> <a class="code" href="classgf_1_1_image.html">Image</a>& image, <a class="code" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> format, <a class="code" href="structgf_1_1_vector.html">Vector2i</a> size = { 0u, 0u });</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <a class="code" href="classgf_1_1_bitmap_console_font.html">BitmapConsoleFont</a>(<span class="keyword">const</span> <a class="code" href="group__core.html#ga6788e40b762777c1081f796076116a02">Path</a>& filename, <a class="code" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> format, <a class="code" href="structgf_1_1_vector.html">Vector2i</a> size = { 0u, 0u });</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> </div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keyword">const</span> <a class="code" href="classgf_1_1_bare_texture.html">BareTexture</a> *getTexture() <span class="keyword">const override</span>;</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span> </div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <a class="code" href="classgf_1_1_alpha_texture.html">AlphaTexture</a> m_texture;</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  };</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div><div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="classgf_1_1_colored_console_font.html"> 327</a></span>  <span class="keyword">class </span>GF_API <a class="code" href="classgf_1_1_colored_console_font.html">ColoredConsoleFont</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_console_font.html">ConsoleFont</a> {</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <a class="code" href="classgf_1_1_colored_console_font.html">ColoredConsoleFont</a>(<span class="keyword">const</span> <a class="code" href="classgf_1_1_image.html">Image</a>& image, <a class="code" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> format, <a class="code" href="structgf_1_1_vector.html">Vector2i</a> size = { 0u, 0u });</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <a class="code" href="classgf_1_1_colored_console_font.html">ColoredConsoleFont</a>(<span class="keyword">const</span> <a class="code" href="group__core.html#ga6788e40b762777c1081f796076116a02">Path</a>& filename, <a class="code" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> format, <a class="code" href="structgf_1_1_vector.html">Vector2i</a> size = { 0u, 0u });</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span> </div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keyword">const</span> <a class="code" href="classgf_1_1_bare_texture.html">BareTexture</a> *getTexture() <span class="keyword">const override</span>;</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <a class="code" href="classgf_1_1_texture.html">Texture</a> m_texture;</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  };</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span> </div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> }</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span> }</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span> </div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="preprocessor">#endif // GF_CONSOLE_FONT_H</span></div><div class="ttc" id="structgf_1_1_console_font_format_html_a19791d88251f289db0b0896b3afb0941a07a4ff4c1db6fc6e92a7efe791b7f86e"><div class="ttname"><a href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a07a4ff4c1db6fc6e92a7efe791b7f86e">gf::ConsoleFontFormat::InRow</a></div><div class="ttdoc">In row. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:59</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_af71f90c599987d224a545bd32a2b807aa025c050f3a53d47c8a2e7db76b219505"><div class="ttname"><a href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa025c050f3a53d47c8a2e7db76b219505">gf::ConsoleFontFormat::ColorKey</a></div><div class="ttdoc">Given by a color key. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:49</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_a82d147fd96f3396af284013b40f3101e"><div class="ttname"><a href="structgf_1_1_console_font_format.html#a82d147fd96f3396af284013b40f3101e">gf::ConsoleFontFormat::transparency</a></div><div class="ttdeci">Transparency transparency</div><div class="ttdoc">The transparency method of the font. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:52</div></div>
<div class="ttc" id="classgf_1_1_bitmap_console_font_html"><div class="ttname"><a href="classgf_1_1_bitmap_console_font.html">gf::BitmapConsoleFont</a></div><div class="ttdoc">A bitmap console font. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:294</div></div>
<div class="ttc" id="structgf_1_1_console_font_element_html_a3605224dc4ee18e3eecd7b077206bb69"><div class="ttname"><a href="structgf_1_1_console_font_element.html#a3605224dc4ee18e3eecd7b077206bb69">gf::ConsoleFontElement::character</a></div><div class="ttdeci">char16_t character</div><div class="ttdoc">The represented character. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:84</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_a8e49c12aae7215c81c538990c1993fe9"><div class="ttname"><a href="structgf_1_1_console_font_format.html#a8e49c12aae7215c81c538990c1993fe9">gf::ConsoleFontFormat::layout</a></div><div class="ttdeci">Layout layout</div><div class="ttdoc">The layout of the font. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:62</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_adc89883c8b724f67456a5c4fb3b7dbdca8862fc5fc0cc00fde19dafbdc6ebd4cf"><div class="ttname"><a href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca8862fc5fc0cc00fde19dafbdc6ebd4cf">gf::ConsoleFontFormat::Special</a></div><div class="ttdoc">The special libtcod mapping. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:70</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_adc89883c8b724f67456a5c4fb3b7dbdc"><div class="ttname"><a href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdc">gf::ConsoleFontFormat::Mapping</a></div><div class="ttdeci">Mapping</div><div class="ttdoc">A mapping. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:67</div></div>
<div class="ttc" id="classgf_1_1_texture_html"><div class="ttname"><a href="classgf_1_1_texture.html">gf::Texture</a></div><div class="ttdoc">A texture for colored images. </div><div class="ttdef"><b>Definition:</b> Texture.h:301</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_af71f90c599987d224a545bd32a2b807aa859e9941346398dbe065cd57b485cc9d"><div class="ttname"><a href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa859e9941346398dbe065cd57b485cc9d">gf::ConsoleFontFormat::Grayscale</a></div><div class="ttdoc">Given by the level of gray (bitmap font only) </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:48</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_af71f90c599987d224a545bd32a2b807a"><div class="ttname"><a href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807a">gf::ConsoleFontFormat::Transparency</a></div><div class="ttdeci">Transparency</div><div class="ttdoc">A transparency method. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:46</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_a19791d88251f289db0b0896b3afb0941"><div class="ttname"><a href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941">gf::ConsoleFontFormat::Layout</a></div><div class="ttdeci">Layout</div><div class="ttdoc">A layout. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:57</div></div>
<div class="ttc" id="structgf_1_1_console_font_element_html"><div class="ttname"><a href="structgf_1_1_console_font_element.html">gf::ConsoleFontElement</a></div><div class="ttdoc">A console font element. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:83</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_a19791d88251f289db0b0896b3afb0941a396a8e855eafb8740c8d2fabd751bcfe"><div class="ttname"><a href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a396a8e855eafb8740c8d2fabd751bcfe">gf::ConsoleFontFormat::InColumn</a></div><div class="ttdoc">In column. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:58</div></div>
<div class="ttc" id="structgf_1_1_rect_html"><div class="ttname"><a href="structgf_1_1_rect.html">gf::Rect< int ></a></div></div>
<div class="ttc" id="classgf_1_1_image_html"><div class="ttname"><a href="classgf_1_1_image.html">gf::Image</a></div><div class="ttdoc">Class for loading, manipulating and saving images. </div><div class="ttdef"><b>Definition:</b> Image.h:80</div></div>
<div class="ttc" id="namespacegf_html"><div class="ttname"><a href="namespacegf.html">gf</a></div><div class="ttdoc">The namespace for gf classes. </div><div class="ttdef"><b>Definition:</b> Action.h:35</div></div>
<div class="ttc" id="classgf_1_1_bare_texture_html"><div class="ttname"><a href="classgf_1_1_bare_texture.html">gf::BareTexture</a></div><div class="ttdoc">An image that lives in the graphic memory that can be used for drawing. </div><div class="ttdef"><b>Definition:</b> Texture.h:75</div></div>
<div class="ttc" id="classgf_1_1_colored_console_font_html"><div class="ttname"><a href="classgf_1_1_colored_console_font.html">gf::ColoredConsoleFont</a></div><div class="ttdoc">A colored console font. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:327</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html"><div class="ttname"><a href="classgf_1_1_array_ref.html">gf::ArrayRef</a></div><div class="ttdoc">A constant reference to an array and its size. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:42</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_af71f90c599987d224a545bd32a2b807aa7c6eb89d6578acd4e0d6df4c8d09fd4c"><div class="ttname"><a href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa7c6eb89d6578acd4e0d6df4c8d09fd4c">gf::ConsoleFontFormat::Alpha</a></div><div class="ttdoc">Given by the alpha channel of the image. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:47</div></div>
<div class="ttc" id="classgf_1_1_console_font_html"><div class="ttname"><a href="classgf_1_1_console_font.html">gf::ConsoleFont</a></div><div class="ttdoc">A console font. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:110</div></div>
<div class="ttc" id="classgf_1_1_console_font_html_a9c905db63803bafeeb1aec6bea450be9"><div class="ttname"><a href="classgf_1_1_console_font.html#a9c905db63803bafeeb1aec6bea450be9">gf::ConsoleFont::getCharacterSize</a></div><div class="ttdeci">Vector2i getCharacterSize() const</div><div class="ttdoc">Get the size of the characters. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:159</div></div>
<div class="ttc" id="group__core_html_ga6788e40b762777c1081f796076116a02"><div class="ttname"><a href="group__core.html#ga6788e40b762777c1081f796076116a02">gf::Path</a></div><div class="ttdeci">boost::filesystem::path Path</div><div class="ttdoc">A path in the filesystem. </div><div class="ttdef"><b>Definition:</b> Path.h:44</div></div>
<div class="ttc" id="structgf_1_1_predefined_console_font_format_html"><div class="ttname"><a href="structgf_1_1_predefined_console_font_format.html">gf::PredefinedConsoleFontFormat</a></div><div class="ttdoc">Predefined console font formats. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:92</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_adc89883c8b724f67456a5c4fb3b7dbdca897c4d1be5b7cd7c6e040c30875bce59"><div class="ttname"><a href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca897c4d1be5b7cd7c6e040c30875bce59">gf::ConsoleFontFormat::CodePage437</a></div><div class="ttdoc">Code page 437. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:68</div></div>
<div class="ttc" id="classgf_1_1_string_ref_html"><div class="ttname"><a href="classgf_1_1_string_ref.html">gf::StringRef</a></div><div class="ttdoc">A constant reference to a string and its size. </div><div class="ttdef"><b>Definition:</b> StringRef.h:41</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_adc89883c8b724f67456a5c4fb3b7dbdca0e1883560cbe542347d153d845d5c698"><div class="ttname"><a href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca0e1883560cbe542347d153d845d5c698">gf::ConsoleFontFormat::Custom</a></div><div class="ttdoc">A user-defined mapping. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:71</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_a6ad81ceabda3ebdf87ff0ae45cf83677"><div class="ttname"><a href="structgf_1_1_console_font_format.html#a6ad81ceabda3ebdf87ff0ae45cf83677">gf::ConsoleFontFormat::mapping</a></div><div class="ttdeci">Mapping mapping</div><div class="ttdoc">The mapping of the font. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:74</div></div>
<div class="ttc" id="classgf_1_1_console_font_html_af4f1eef29e1759630c208c74ef931595"><div class="ttname"><a href="classgf_1_1_console_font.html#af4f1eef29e1759630c208c74ef931595">gf::ConsoleFont::getSize</a></div><div class="ttdeci">Vector2i getSize() const</div><div class="ttdoc">Get the size of the fonts. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:150</div></div>
<div class="ttc" id="classgf_1_1_alpha_texture_html"><div class="ttname"><a href="classgf_1_1_alpha_texture.html">gf::AlphaTexture</a></div><div class="ttdoc">A texture with a single alpha channel. </div><div class="ttdef"><b>Definition:</b> Texture.h:383</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html_adc89883c8b724f67456a5c4fb3b7dbdca13e296f4dde27fa17a6debb3d09b6744"><div class="ttname"><a href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca13e296f4dde27fa17a6debb3d09b6744">gf::ConsoleFontFormat::ModifiedCodePage437</a></div><div class="ttdoc">Code page 437 modified by libtcod. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:69</div></div>
<div class="ttc" id="structgf_1_1_vector_html"><div class="ttname"><a href="structgf_1_1_vector.html">gf::Vector< int, 2 ></a></div></div>
<div class="ttc" id="classgf_1_1_console_font_html_a195f1fac89d1020197a2a9cb48c591e1"><div class="ttname"><a href="classgf_1_1_console_font.html#a195f1fac89d1020197a2a9cb48c591e1">gf::ConsoleFont::getFormat</a></div><div class="ttdeci">ConsoleFontFormat getFormat() const</div><div class="ttdoc">Get the format of the font. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:141</div></div>
<div class="ttc" id="structgf_1_1_console_font_element_html_a274d78c67545d3a050c5b12c2254aa07"><div class="ttname"><a href="structgf_1_1_console_font_element.html#a274d78c67545d3a050c5b12c2254aa07">gf::ConsoleFontElement::index</a></div><div class="ttdeci">uint8_t index</div><div class="ttdoc">The index in the font. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:85</div></div>
<div class="ttc" id="structgf_1_1_console_font_format_html"><div class="ttname"><a href="structgf_1_1_console_font_format.html">gf::ConsoleFontFormat</a></div><div class="ttdoc">A console font format. </div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:42</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>