-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_console_font_8h_source.html
274 lines (274 loc) · 55.6 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<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" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/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 id="projectrow">
<td id="projectlogo"><img alt="Logo" src="gf_logo.png"/></td>
<td id="projectalign">
<div id="projectname">Gamedev Framework (gf)<span id="projectnumber"> 0.21.0</span>
</div>
<div id="projectbrief">A C++17 framework for 2D games</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */
</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 id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * Gamedev Framework (gf)</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * Copyright (C) 2016-2021 Julien Bernard</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" 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 id="l00006" 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 id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * arising from the use of this software.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" 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 id="l00010" 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 id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * freely, subject to the following restrictions:</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> *</span></div>
<div class="line"><a id="l00013" 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 id="l00014" 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 id="l00015" 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 id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * appreciated but is not required.</span></div>
<div class="line"><a id="l00017" 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 id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> * misrepresented as being the original software.</span></div>
<div class="line"><a id="l00019" 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 id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="comment"> */</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#ifndef GF_CONSOLE_FONT_H</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#define GF_CONSOLE_FONT_H</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <string_view></span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include "GraphicsApi.h"</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include "Path.h"</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include "Span.h"</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include "Texture.h"</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include "Vector.h"</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegf.html">gf</a> {</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword">inline</span> <span class="keyword">namespace </span>v1 {</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html"> 43</a></span> <span class="keyword">struct </span>GF_GRAPHICS_API <a class="code hl_struct" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> {</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807a"> 47</a></span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807a">Transparency</a> {</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa7c6eb89d6578acd4e0d6df4c8d09fd4c"> 48</a></span> <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa7c6eb89d6578acd4e0d6df4c8d09fd4c">Alpha</a>, </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa859e9941346398dbe065cd57b485cc9d"> 49</a></span> <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa859e9941346398dbe065cd57b485cc9d">Grayscale</a>, </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa025c050f3a53d47c8a2e7db76b219505"> 50</a></span> <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa025c050f3a53d47c8a2e7db76b219505">ColorKey</a>, </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> };</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a82d147fd96f3396af284013b40f3101e"> 53</a></span> <a class="code hl_enumeration" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807a">Transparency</a> <a class="code hl_variable" href="structgf_1_1_console_font_format.html#a82d147fd96f3396af284013b40f3101e">transparency</a>; </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941"> 58</a></span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941">Layout</a> {</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a396a8e855eafb8740c8d2fabd751bcfe"> 59</a></span> <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a396a8e855eafb8740c8d2fabd751bcfe">InColumn</a>, </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a07a4ff4c1db6fc6e92a7efe791b7f86e"> 60</a></span> <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a07a4ff4c1db6fc6e92a7efe791b7f86e">InRow</a>, </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> };</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a8e49c12aae7215c81c538990c1993fe9"> 63</a></span> <a class="code hl_enumeration" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941">Layout</a> <a class="code hl_variable" href="structgf_1_1_console_font_format.html#a8e49c12aae7215c81c538990c1993fe9">layout</a>; </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdc"> 68</a></span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdc">Mapping</a> {</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca897c4d1be5b7cd7c6e040c30875bce59"> 69</a></span> <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca897c4d1be5b7cd7c6e040c30875bce59">CodePage437</a>, </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca13e296f4dde27fa17a6debb3d09b6744"> 70</a></span> <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca13e296f4dde27fa17a6debb3d09b6744">ModifiedCodePage437</a>, </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca8862fc5fc0cc00fde19dafbdc6ebd4cf"> 71</a></span> <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca8862fc5fc0cc00fde19dafbdc6ebd4cf">Special</a>, </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca0e1883560cbe542347d153d845d5c698"> 72</a></span> <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca0e1883560cbe542347d153d845d5c698">Custom</a>, </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> };</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_format.html#a6ad81ceabda3ebdf87ff0ae45cf83677"> 75</a></span> <a class="code hl_enumeration" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdc">Mapping</a> <a class="code hl_variable" href="structgf_1_1_console_font_format.html#a6ad81ceabda3ebdf87ff0ae45cf83677">mapping</a>; </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> };</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_element.html"> 84</a></span> <span class="keyword">struct </span>GF_GRAPHICS_API <a class="code hl_struct" href="structgf_1_1_console_font_element.html">ConsoleFontElement</a> {</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_element.html#a3605224dc4ee18e3eecd7b077206bb69"> 85</a></span> <span class="keywordtype">char16_t</span> <a class="code hl_variable" href="structgf_1_1_console_font_element.html#a3605224dc4ee18e3eecd7b077206bb69">character</a>; </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="structgf_1_1_console_font_element.html#a274d78c67545d3a050c5b12c2254aa07"> 86</a></span> uint8_t <a class="code hl_variable" href="structgf_1_1_console_font_element.html#a274d78c67545d3a050c5b12c2254aa07">index</a>; </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> };</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="structgf_1_1_predefined_console_font_format.html"> 93</a></span> <span class="keyword">struct </span>GF_GRAPHICS_API <a class="code hl_struct" href="structgf_1_1_predefined_console_font_format.html">PredefinedConsoleFontFormat</a> {</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="structgf_1_1_predefined_console_font_format.html#a87db76f021f47b6e1bfd9f3c075ce902"> 97</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> Libtcod = { <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa025c050f3a53d47c8a2e7db76b219505">ConsoleFontFormat::ColorKey</a>, <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a07a4ff4c1db6fc6e92a7efe791b7f86e">ConsoleFontFormat::InRow</a>, <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca8862fc5fc0cc00fde19dafbdc6ebd4cf">ConsoleFontFormat::Special</a> };</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="structgf_1_1_predefined_console_font_format.html#a3eaaf0493619fcea4d2db34bb3dcd6f5"> 102</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> DwarfFortress = { <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#af71f90c599987d224a545bd32a2b807aa025c050f3a53d47c8a2e7db76b219505">ConsoleFontFormat::ColorKey</a>, <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#a19791d88251f289db0b0896b3afb0941a07a4ff4c1db6fc6e92a7efe791b7f86e">ConsoleFontFormat::InRow</a>, <a class="code hl_enumvalue" href="structgf_1_1_console_font_format.html#adc89883c8b724f67456a5c4fb3b7dbdca897c4d1be5b7cd7c6e040c30875bce59">ConsoleFontFormat::CodePage437</a> };</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> };</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html"> 111</a></span> <span class="keyword">class </span>GF_GRAPHICS_API <a class="code hl_class" href="classgf_1_1_console_font.html">ConsoleFont</a> {</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#aff1942d952c5da6ab780be02eec11043"> 118</a></span> <a class="code hl_function" href="classgf_1_1_console_font.html#aff1942d952c5da6ab780be02eec11043">ConsoleFont</a>();</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#aa53b5dfee723371e3622aa1625a0cdd8"> 127</a></span> <a class="code hl_function" href="classgf_1_1_console_font.html#aa53b5dfee723371e3622aa1625a0cdd8">ConsoleFont</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_image.html">Image</a>& image, <a class="code hl_struct" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> format, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> size);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#ad8a9f59168343a99ffca9f98907f862c"> 132</a></span> <span class="keyword">virtual</span> <a class="code hl_function" href="classgf_1_1_console_font.html#ad8a9f59168343a99ffca9f98907f862c">~ConsoleFont</a>();</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#a195f1fac89d1020197a2a9cb48c591e1"> 142</a></span> <a class="code hl_struct" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> <a class="code hl_function" href="classgf_1_1_console_font.html#a195f1fac89d1020197a2a9cb48c591e1">getFormat</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keywordflow">return</span> m_format;</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> }</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#af4f1eef29e1759630c208c74ef931595"> 151</a></span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> <a class="code hl_function" href="classgf_1_1_console_font.html#af4f1eef29e1759630c208c74ef931595">getSize</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keywordflow">return</span> m_size;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> }</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#a9c905db63803bafeeb1aec6bea450be9"> 160</a></span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> <a class="code hl_function" href="classgf_1_1_console_font.html#a9c905db63803bafeeb1aec6bea450be9">getCharacterSize</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keywordflow">return</span> m_characterSize;</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> }</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#ae7a422a15ea62c529a856aac3bbcd3e9"> 179</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_console_font.html#ae7a422a15ea62c529a856aac3bbcd3e9">mapCode</a>(<span class="keywordtype">char16_t</span> c, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> position);</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#a6e278e42cb56ab6158bfe155a1edfeb3"> 188</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_console_font.html#a6e278e42cb56ab6158bfe155a1edfeb3">mapCodeRange</a>(<span class="keywordtype">char16_t</span> c, <span class="keywordtype">int</span> count, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> position);</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> </div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#abd6d96e4c6d2e27ab5c0d9bf30ed1716"> 196</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_console_font.html#abd6d96e4c6d2e27ab5c0d9bf30ed1716">mapString</a>(std::string_view str, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> position);</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> </div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#a01d02f5198db67d73c96ec8dde6a6aca"> 203</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_console_font.html#a01d02f5198db67d73c96ec8dde6a6aca">mapElement</a>(<a class="code hl_struct" href="structgf_1_1_console_font_element.html">ConsoleFontElement</a> element);</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#aa5f6aa624e8f1a6f32fdd087b0efc761"> 210</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_console_font.html#aa5f6aa624e8f1a6f32fdd087b0efc761">mapElements</a>(<a class="code hl_class" href="classgf_1_1_span.html">Span<const ConsoleFontElement></a> elements);</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> </div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#a42f356a05fc8d0c8c58d5dd5a39af399"> 217</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_console_font.html#a42f356a05fc8d0c8c58d5dd5a39af399">clearMapping</a>();</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> </div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#ac193cff5aacbaa567b31a5f3edcf7a44"> 236</a></span> <a class="code hl_class" href="structgf_1_1_rect.html">RectI</a> <a class="code hl_function" href="classgf_1_1_console_font.html#ac193cff5aacbaa567b31a5f3edcf7a44">getSubTexture</a>(<span class="keywordtype">char16_t</span> c) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> </div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#acba4fb444545562da39bef22958c511d"> 246</a></span> <a class="code hl_class" href="structgf_1_1_rect.html">RectF</a> <a class="code hl_function" href="classgf_1_1_console_font.html#acba4fb444545562da39bef22958c511d">getTextureRect</a>(<span class="keywordtype">char16_t</span> c) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> </div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#ad2edd303f83553c922e9ea637a63ace5"> 253</a></span> <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_bare_texture.html">BareTexture</a> *<a class="code hl_function" href="classgf_1_1_console_font.html#ad2edd303f83553c922e9ea637a63ace5">getTexture</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> </div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#a94664ae4a81cac48bd489dafb71e03df"> 267</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_console_font.html#a94664ae4a81cac48bd489dafb71e03df">logFormat</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="group__core__filesystem.html#ga62c04bab8dbdd699f6f9b9d8d701ba72">Path</a>& filename) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> </div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"><a class="line" href="classgf_1_1_console_font.html#a98601e1950902c0eda01817ddf3d0548"> 277</a></span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> <a class="code hl_function" href="classgf_1_1_console_font.html#a98601e1950902c0eda01817ddf3d0548">getColorKeyPosition</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> </div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> std::vector<uint8_t> m_mapping;</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> <a class="code hl_struct" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> m_format;</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> m_size;</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> m_characterSize;</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> };</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> </div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"><a class="line" href="classgf_1_1_bitmap_console_font.html"> 295</a></span> <span class="keyword">class </span>GF_GRAPHICS_API <a class="code hl_class" href="classgf_1_1_bitmap_console_font.html">BitmapConsoleFont</a> : <span class="keyword">public</span> <a class="code hl_class" href="classgf_1_1_console_font.html">ConsoleFont</a> {</div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"><a class="line" href="classgf_1_1_bitmap_console_font.html#a96f246e14ee39b50d9cc67d6da068869"> 304</a></span> <a class="code hl_function" href="classgf_1_1_bitmap_console_font.html#a96f246e14ee39b50d9cc67d6da068869">BitmapConsoleFont</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_image.html">Image</a>& image, <a class="code hl_struct" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> format, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> size = { 0u, 0u });</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> </div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"><a class="line" href="classgf_1_1_bitmap_console_font.html#a24c2d6a445156870ef6df28147898b02"> 313</a></span> <a class="code hl_function" href="classgf_1_1_bitmap_console_font.html#a24c2d6a445156870ef6df28147898b02">BitmapConsoleFont</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="group__core__filesystem.html#ga62c04bab8dbdd699f6f9b9d8d701ba72">Path</a>& filename, <a class="code hl_struct" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> format, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> size = { 0u, 0u });</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> </div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"><a class="line" href="classgf_1_1_bitmap_console_font.html#a793de18128c8f42252514b5caec875e1"> 315</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_bare_texture.html">BareTexture</a> *<a class="code hl_function" href="classgf_1_1_bitmap_console_font.html#a793de18128c8f42252514b5caec875e1">getTexture</a>() <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> </div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> <a class="code hl_class" href="classgf_1_1_alpha_texture.html">AlphaTexture</a> m_texture;</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> };</div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> </div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"><a class="line" href="classgf_1_1_colored_console_font.html"> 328</a></span> <span class="keyword">class </span>GF_GRAPHICS_API <a class="code hl_class" href="classgf_1_1_colored_console_font.html">ColoredConsoleFont</a> : <span class="keyword">public</span> <a class="code hl_class" href="classgf_1_1_console_font.html">ConsoleFont</a> {</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"><a class="line" href="classgf_1_1_colored_console_font.html#a52a3990e810feca4f1024e0f21dbcb34"> 337</a></span> <a class="code hl_function" href="classgf_1_1_colored_console_font.html#a52a3990e810feca4f1024e0f21dbcb34">ColoredConsoleFont</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_image.html">Image</a>& image, <a class="code hl_struct" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> format, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> size = { 0u, 0u });</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> </div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"><a class="line" href="classgf_1_1_colored_console_font.html#a29f035f71ce3aefd173e3c31fe0ca436"> 346</a></span> <a class="code hl_function" href="classgf_1_1_colored_console_font.html#a29f035f71ce3aefd173e3c31fe0ca436">ColoredConsoleFont</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="group__core__filesystem.html#ga62c04bab8dbdd699f6f9b9d8d701ba72">Path</a>& filename, <a class="code hl_struct" href="structgf_1_1_console_font_format.html">ConsoleFontFormat</a> format, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> size = { 0u, 0u });</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> </div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"><a class="line" href="classgf_1_1_colored_console_font.html#a87e0c1ac8c02a187045e47ab81198e94"> 348</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_bare_texture.html">BareTexture</a> *<a class="code hl_function" href="classgf_1_1_colored_console_font.html#a87e0c1ac8c02a187045e47ab81198e94">getTexture</a>() <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> </div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> <a class="code hl_class" href="classgf_1_1_texture.html">Texture</a> m_texture;</div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> };</div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> </div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> </div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span><span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span>}</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span>}</div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> </div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span><span class="preprocessor">#endif </span><span class="comment">// GF_CONSOLE_FONT_H</span></div>
<div class="ttc" id="aclassgf_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:427</div></div>
<div class="ttc" id="aclassgf_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:79</div></div>
<div class="ttc" id="aclassgf_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:295</div></div>
<div class="ttc" id="aclassgf_1_1_bitmap_console_font_html_a24c2d6a445156870ef6df28147898b02"><div class="ttname"><a href="classgf_1_1_bitmap_console_font.html#a24c2d6a445156870ef6df28147898b02">gf::BitmapConsoleFont::BitmapConsoleFont</a></div><div class="ttdeci">BitmapConsoleFont(const Path &filename, ConsoleFontFormat format, Vector2i size={ 0u, 0u })</div><div class="ttdoc">Load a console font from a file.</div></div>
<div class="ttc" id="aclassgf_1_1_bitmap_console_font_html_a793de18128c8f42252514b5caec875e1"><div class="ttname"><a href="classgf_1_1_bitmap_console_font.html#a793de18128c8f42252514b5caec875e1">gf::BitmapConsoleFont::getTexture</a></div><div class="ttdeci">const BareTexture * getTexture() const override</div><div class="ttdoc">Get the texture of the console font.</div></div>
<div class="ttc" id="aclassgf_1_1_bitmap_console_font_html_a96f246e14ee39b50d9cc67d6da068869"><div class="ttname"><a href="classgf_1_1_bitmap_console_font.html#a96f246e14ee39b50d9cc67d6da068869">gf::BitmapConsoleFont::BitmapConsoleFont</a></div><div class="ttdeci">BitmapConsoleFont(const Image &image, ConsoleFontFormat format, Vector2i size={ 0u, 0u })</div><div class="ttdoc">Load a console font from an image.</div></div>
<div class="ttc" id="aclassgf_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:328</div></div>
<div class="ttc" id="aclassgf_1_1_colored_console_font_html_a29f035f71ce3aefd173e3c31fe0ca436"><div class="ttname"><a href="classgf_1_1_colored_console_font.html#a29f035f71ce3aefd173e3c31fe0ca436">gf::ColoredConsoleFont::ColoredConsoleFont</a></div><div class="ttdeci">ColoredConsoleFont(const Path &filename, ConsoleFontFormat format, Vector2i size={ 0u, 0u })</div><div class="ttdoc">Load a console font from a file.</div></div>
<div class="ttc" id="aclassgf_1_1_colored_console_font_html_a52a3990e810feca4f1024e0f21dbcb34"><div class="ttname"><a href="classgf_1_1_colored_console_font.html#a52a3990e810feca4f1024e0f21dbcb34">gf::ColoredConsoleFont::ColoredConsoleFont</a></div><div class="ttdeci">ColoredConsoleFont(const Image &image, ConsoleFontFormat format, Vector2i size={ 0u, 0u })</div><div class="ttdoc">Load a console font from an image.</div></div>
<div class="ttc" id="aclassgf_1_1_colored_console_font_html_a87e0c1ac8c02a187045e47ab81198e94"><div class="ttname"><a href="classgf_1_1_colored_console_font.html#a87e0c1ac8c02a187045e47ab81198e94">gf::ColoredConsoleFont::getTexture</a></div><div class="ttdeci">const BareTexture * getTexture() const override</div><div class="ttdoc">Get the texture of the console font.</div></div>
<div class="ttc" id="aclassgf_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:111</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_a01d02f5198db67d73c96ec8dde6a6aca"><div class="ttname"><a href="classgf_1_1_console_font.html#a01d02f5198db67d73c96ec8dde6a6aca">gf::ConsoleFont::mapElement</a></div><div class="ttdeci">void mapElement(ConsoleFontElement element)</div><div class="ttdoc">Map an element in the font.</div></div>
<div class="ttc" id="aclassgf_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:142</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_a42f356a05fc8d0c8c58d5dd5a39af399"><div class="ttname"><a href="classgf_1_1_console_font.html#a42f356a05fc8d0c8c58d5dd5a39af399">gf::ConsoleFont::clearMapping</a></div><div class="ttdeci">void clearMapping()</div><div class="ttdoc">Clear the mapping.</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_a6e278e42cb56ab6158bfe155a1edfeb3"><div class="ttname"><a href="classgf_1_1_console_font.html#a6e278e42cb56ab6158bfe155a1edfeb3">gf::ConsoleFont::mapCodeRange</a></div><div class="ttdeci">void mapCodeRange(char16_t c, int count, Vector2i position)</div><div class="ttdoc">Map a range of characters to consecutive positions in the font.</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_a94664ae4a81cac48bd489dafb71e03df"><div class="ttname"><a href="classgf_1_1_console_font.html#a94664ae4a81cac48bd489dafb71e03df">gf::ConsoleFont::logFormat</a></div><div class="ttdeci">void logFormat(const Path &filename) const</div><div class="ttdoc">Print the format of the font.</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_a98601e1950902c0eda01817ddf3d0548"><div class="ttname"><a href="classgf_1_1_console_font.html#a98601e1950902c0eda01817ddf3d0548">gf::ConsoleFont::getColorKeyPosition</a></div><div class="ttdeci">Vector2i getColorKeyPosition() const</div><div class="ttdoc">Get the color key position.</div></div>
<div class="ttc" id="aclassgf_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:160</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_aa53b5dfee723371e3622aa1625a0cdd8"><div class="ttname"><a href="classgf_1_1_console_font.html#aa53b5dfee723371e3622aa1625a0cdd8">gf::ConsoleFont::ConsoleFont</a></div><div class="ttdeci">ConsoleFont(const Image &image, ConsoleFontFormat format, Vector2i size)</div><div class="ttdoc">Constructor.</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_aa5f6aa624e8f1a6f32fdd087b0efc761"><div class="ttname"><a href="classgf_1_1_console_font.html#aa5f6aa624e8f1a6f32fdd087b0efc761">gf::ConsoleFont::mapElements</a></div><div class="ttdeci">void mapElements(Span< const ConsoleFontElement > elements)</div><div class="ttdoc">Map some elements in the font.</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_abd6d96e4c6d2e27ab5c0d9bf30ed1716"><div class="ttname"><a href="classgf_1_1_console_font.html#abd6d96e4c6d2e27ab5c0d9bf30ed1716">gf::ConsoleFont::mapString</a></div><div class="ttdeci">void mapString(std::string_view str, Vector2i position)</div><div class="ttdoc">Map characters from a string to consecutive positions in the font.</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_ac193cff5aacbaa567b31a5f3edcf7a44"><div class="ttname"><a href="classgf_1_1_console_font.html#ac193cff5aacbaa567b31a5f3edcf7a44">gf::ConsoleFont::getSubTexture</a></div><div class="ttdeci">RectI getSubTexture(char16_t c) const</div><div class="ttdoc">Get the sub-texture rectangle.</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_acba4fb444545562da39bef22958c511d"><div class="ttname"><a href="classgf_1_1_console_font.html#acba4fb444545562da39bef22958c511d">gf::ConsoleFont::getTextureRect</a></div><div class="ttdeci">RectF getTextureRect(char16_t c) const</div><div class="ttdoc">Get the texture rectangle for a character.</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_ad2edd303f83553c922e9ea637a63ace5"><div class="ttname"><a href="classgf_1_1_console_font.html#ad2edd303f83553c922e9ea637a63ace5">gf::ConsoleFont::getTexture</a></div><div class="ttdeci">virtual const BareTexture * getTexture() const =0</div><div class="ttdoc">Get the texture of the console font.</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_ad8a9f59168343a99ffca9f98907f862c"><div class="ttname"><a href="classgf_1_1_console_font.html#ad8a9f59168343a99ffca9f98907f862c">gf::ConsoleFont::~ConsoleFont</a></div><div class="ttdeci">virtual ~ConsoleFont()</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_ae7a422a15ea62c529a856aac3bbcd3e9"><div class="ttname"><a href="classgf_1_1_console_font.html#ae7a422a15ea62c529a856aac3bbcd3e9">gf::ConsoleFont::mapCode</a></div><div class="ttdeci">void mapCode(char16_t c, Vector2i position)</div><div class="ttdoc">Map a character to a position in the font.</div></div>
<div class="ttc" id="aclassgf_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:151</div></div>
<div class="ttc" id="aclassgf_1_1_console_font_html_aff1942d952c5da6ab780be02eec11043"><div class="ttname"><a href="classgf_1_1_console_font.html#aff1942d952c5da6ab780be02eec11043">gf::ConsoleFont::ConsoleFont</a></div><div class="ttdeci">ConsoleFont()</div><div class="ttdoc">Constructor.</div></div>
<div class="ttc" id="aclassgf_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:81</div></div>
<div class="ttc" id="aclassgf_1_1_span_html"><div class="ttname"><a href="classgf_1_1_span.html">gf::Span</a></div><div class="ttdoc">A span.</div><div class="ttdef"><b>Definition:</b> Span.h:417</div></div>
<div class="ttc" id="aclassgf_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:313</div></div>
<div class="ttc" id="agroup__core__filesystem_html_ga62c04bab8dbdd699f6f9b9d8d701ba72"><div class="ttname"><a href="group__core__filesystem.html#ga62c04bab8dbdd699f6f9b9d8d701ba72">gf::Path</a></div><div class="ttdeci">std::filesystem::path Path</div><div class="ttdoc">A path in the filesystem.</div><div class="ttdef"><b>Definition:</b> Path.h:40</div></div>
<div class="ttc" id="anamespacegf_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="astructgf_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:84</div></div>
<div class="ttc" id="astructgf_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:86</div></div>
<div class="ttc" id="astructgf_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:85</div></div>
<div class="ttc" id="astructgf_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:43</div></div>
<div class="ttc" id="astructgf_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:58</div></div>
<div class="ttc" id="astructgf_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="ttdeci">@ InRow</div><div class="ttdoc">In row.</div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:60</div></div>
<div class="ttc" id="astructgf_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="ttdeci">@ InColumn</div><div class="ttdoc">In column.</div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:59</div></div>
<div class="ttc" id="astructgf_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:75</div></div>
<div class="ttc" id="astructgf_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:53</div></div>
<div class="ttc" id="astructgf_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:63</div></div>
<div class="ttc" id="astructgf_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:68</div></div>
<div class="ttc" id="astructgf_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="ttdeci">@ Custom</div><div class="ttdoc">A user-defined mapping.</div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:72</div></div>
<div class="ttc" id="astructgf_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="ttdeci">@ ModifiedCodePage437</div><div class="ttdoc">Code page 437 modified by libtcod.</div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:70</div></div>
<div class="ttc" id="astructgf_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="ttdeci">@ Special</div><div class="ttdoc">The special libtcod mapping.</div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:71</div></div>
<div class="ttc" id="astructgf_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="ttdeci">@ CodePage437</div><div class="ttdoc">Code page 437.</div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:69</div></div>
<div class="ttc" id="astructgf_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:47</div></div>
<div class="ttc" id="astructgf_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="ttdeci">@ ColorKey</div><div class="ttdoc">Given by a color key.</div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:50</div></div>
<div class="ttc" id="astructgf_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="ttdeci">@ Alpha</div><div class="ttdoc">Given by the alpha channel of the image.</div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:48</div></div>
<div class="ttc" id="astructgf_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="ttdeci">@ Grayscale</div><div class="ttdoc">Given by the level of gray (bitmap font only)</div><div class="ttdef"><b>Definition:</b> ConsoleFont.h:49</div></div>
<div class="ttc" id="astructgf_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:93</div></div>
<div class="ttc" id="astructgf_1_1_rect_html"><div class="ttname"><a href="structgf_1_1_rect.html">gf::Rect< int ></a></div></div>
<div class="ttc" id="astructgf_1_1_vector_html"><div class="ttname"><a href="structgf_1_1_vector.html">gf::Vector< int, 2 ></a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>