-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_render_target_8h_source.html
290 lines (290 loc) · 60.3 KB
/
_render_target_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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<!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): RenderTarget.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">RenderTarget.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="comment"> * Part of this file comes from SFML, with the same license:</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="comment"> * Copyright (C) 2007-2015 Laurent Gomila ([email protected])</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="comment"> */</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#ifndef GF_RENDER_TARGET_H</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#define GF_RENDER_TARGET_H</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include <cstdint></span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include "GraphicsApi.h"</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include "GraphicsHandle.h"</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include "Image.h"</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include "Matrix.h"</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include "PrimitiveType.h"</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#include "Range.h"</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="preprocessor">#include "Region.h"</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="preprocessor">#include "RenderStates.h"</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="preprocessor">#include "Shader.h"</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="preprocessor">#include "Span.h"</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="preprocessor">#include "View.h"</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegf.html">gf</a> {</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="keyword">inline</span> <span class="keyword">namespace </span>v1 {</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">class </span>Drawable;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">class </span>VertexBuffer;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">struct </span>Vertex;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="group__graphics__renderers.html#ga2564e56f5c92b89f512afadeed447519"> 54</a></span> <span class="keyword">enum class</span> <a class="code hl_enumeration" href="group__graphics__renderers.html#ga2564e56f5c92b89f512afadeed447519">RenderAttributeType</a> {</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_enumvalue" href="group__graphics__renderers.html#gga2564e56f5c92b89f512afadeed447519aa245c3230debe5c956484ecc6fa93877">Byte</a> = 0x1400,</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_enumvalue" href="group__graphics__renderers.html#gga2564e56f5c92b89f512afadeed447519a4b4ba765b750d5836bfeb2213cc3caea">UByte</a> = 0x1401,</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <a class="code hl_enumvalue" href="group__graphics__renderers.html#gga2564e56f5c92b89f512afadeed447519a30bb747c98bccdd11b3f89e644c4d0ad">Short</a> = 0x1402,</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_enumvalue" href="group__graphics__renderers.html#gga2564e56f5c92b89f512afadeed447519adfe785f133347f9b473f99009732b1bc">UShort</a> = 0x1403,</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_enumvalue" href="group__graphics__renderers.html#gga2564e56f5c92b89f512afadeed447519a22ae0e2b89e5e3d477f988cc36d3272b">Float</a> = 0x1406,</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> };</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="structgf_1_1_render_attribute_info.html"> 66</a></span> <span class="keyword">struct </span>GF_GRAPHICS_API <a class="code hl_struct" href="structgf_1_1_render_attribute_info.html">RenderAttributeInfo</a> {</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="structgf_1_1_render_attribute_info.html#a856bfe9a0a4b43fbad2e6ba314392232"> 67</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_variable" href="structgf_1_1_render_attribute_info.html#a856bfe9a0a4b43fbad2e6ba314392232">name</a>; </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="structgf_1_1_render_attribute_info.html#a2275b8f9f9fbd4c3d61661d6d44aad58"> 68</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structgf_1_1_render_attribute_info.html#a2275b8f9f9fbd4c3d61661d6d44aad58">size</a>; </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="structgf_1_1_render_attribute_info.html#a24004f6ac3f93dbe2bb67c9219d827b2"> 69</a></span> <a class="code hl_enumeration" href="group__graphics__renderers.html#ga2564e56f5c92b89f512afadeed447519">RenderAttributeType</a> <a class="code hl_variable" href="structgf_1_1_render_attribute_info.html#a24004f6ac3f93dbe2bb67c9219d827b2">type</a>; </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="structgf_1_1_render_attribute_info.html#a905166be61d41b41845cad9d3b1fbc59"> 70</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structgf_1_1_render_attribute_info.html#a905166be61d41b41845cad9d3b1fbc59">normalized</a>; </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="structgf_1_1_render_attribute_info.html#a13cde35e49c01271dd3e16a556fea8cb"> 71</a></span> std::size_t <a class="code hl_variable" href="structgf_1_1_render_attribute_info.html#a13cde35e49c01271dd3e16a556fea8cb">offset</a>; </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> };</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">template</span><></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="structgf_1_1_graphics_trait_3_01_graphics_tag_1_1_framebuffer_01_4.html"> 79</a></span> <span class="keyword">struct </span>GF_GRAPHICS_API <a class="code hl_struct" href="structgf_1_1_graphics_trait.html">GraphicsTrait</a><<a class="code hl_enumeration" href="group__graphics__gpu.html#gaf345882cbbc4e834ec38715ef1cb0c2b">GraphicsTag</a>::<a class="code hl_enumvalue" href="group__graphics__gpu.html#ggaf345882cbbc4e834ec38715ef1cb0c2ba42badd9e49002a3cefeaaf28867add83">Framebuffer</a>> {</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="structgf_1_1_graphics_trait_3_01_graphics_tag_1_1_framebuffer_01_4.html#a91edf852459496d660359250fe654edf"> 80</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="structgf_1_1_graphics_trait_3_01_graphics_tag_1_1_framebuffer_01_4.html#a91edf852459496d660359250fe654edf">gen</a>(<span class="keywordtype">int</span> n, <span class="keywordtype">unsigned</span>* resources);</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="structgf_1_1_graphics_trait_3_01_graphics_tag_1_1_framebuffer_01_4.html#a242b3808de652defb461aa0009e060ca"> 81</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="structgf_1_1_graphics_trait_3_01_graphics_tag_1_1_framebuffer_01_4.html#a242b3808de652defb461aa0009e060ca">del</a>(<span class="keywordtype">int</span> n, <span class="keyword">const</span> <span class="keywordtype">unsigned</span>* resources);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> };</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html"> 102</a></span> <span class="keyword">class </span>GF_GRAPHICS_API <a class="code hl_class" href="classgf_1_1_render_target.html">RenderTarget</a> {</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a6e99f42c583be94f7b7a47a74403cd4c"> 110</a></span> <a class="code hl_function" href="classgf_1_1_render_target.html#a6e99f42c583be94f7b7a47a74403cd4c">RenderTarget</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> size);</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a7d5128d6f88500fdc8b526ca24844431"> 115</a></span> <span class="keyword">virtual</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a7d5128d6f88500fdc8b526ca24844431">~RenderTarget</a>();</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#af36a6312551fa0e297a9f6651b9fee82"> 120</a></span> <a class="code hl_function" href="classgf_1_1_render_target.html#af36a6312551fa0e297a9f6651b9fee82">RenderTarget</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_render_target.html">RenderTarget</a>&) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a3f9b230127c141fb40c4fd8c66ed1f39"> 125</a></span> <a class="code hl_class" href="classgf_1_1_render_target.html">RenderTarget</a>& <a class="code hl_function" href="classgf_1_1_render_target.html#a3f9b230127c141fb40c4fd8c66ed1f39">operator=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_render_target.html">RenderTarget</a>&) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#afd374eb663b1c892cb67c18fc6b603cf"> 132</a></span> <span class="keyword">virtual</span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> <a class="code hl_function" href="classgf_1_1_render_target.html#afd374eb663b1c892cb67c18fc6b603cf">getSize</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a9c29db31909b22d29334d5e4e8e3e6a1"> 141</a></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a9c29db31909b22d29334d5e4e8e3e6a1">setActive</a>();</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a76ae398641a9171c45bc31abd6e42112"> 153</a></span> <a class="code hl_struct" href="structgf_1_1_region.html">Region</a> <a class="code hl_function" href="classgf_1_1_render_target.html#a76ae398641a9171c45bc31abd6e42112">getCanonicalScissorBox</a>();</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_render_target.html#ab47783a4937a88fcf72e282030b86c54"> 160</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#ab47783a4937a88fcf72e282030b86c54">setCanonicalScissorBox</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_region.html">Region</a>& box);</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a29797883fe14f6e1c49c6290adbd4a8c"> 167</a></span> <a class="code hl_class" href="structgf_1_1_rect.html">RectI</a> <a class="code hl_function" href="classgf_1_1_render_target.html#a29797883fe14f6e1c49c6290adbd4a8c">getScissorBox</a>();</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#ac400fc5713a745e5459a285ca4c3c11c"> 174</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#ac400fc5713a745e5459a285ca4c3c11c">setScissorBox</a>(<span class="keyword">const</span> <a class="code hl_class" href="structgf_1_1_rect.html">RectI</a>& box);</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> </div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a2c3f888d184e81d8668b6ec5b1d332de"> 184</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a2c3f888d184e81d8668b6ec5b1d332de">clear</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_vector_3_01_t_00_014_01_4.html">Color4f</a>& color);</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> </div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a878f6ffa9ba25da18db791fa83eac4c3"> 195</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a878f6ffa9ba25da18db791fa83eac4c3">clear</a>();</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#aa1814c8b195d2a1a5e6525a3cba3c26f"> 203</a></span> <a class="code hl_struct" href="structgf_1_1_range.html">RangeF</a> <a class="code hl_function" href="classgf_1_1_render_target.html#aa1814c8b195d2a1a5e6525a3cba3c26f">getAliasedLineWidthRange</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#af7b6eeeca709f64b81ea6a09d13ac8d9"> 211</a></span> <span class="keywordtype">float</span> <a class="code hl_function" href="classgf_1_1_render_target.html#af7b6eeeca709f64b81ea6a09d13ac8d9">getLineWidth</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> </div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a3445880f95c648efbeff3d2572c4c263"> 221</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a3445880f95c648efbeff3d2572c4c263">draw</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_vertex.html">Vertex</a> *vertices, std::size_t count, <a class="code hl_enumeration" href="group__graphics__renderers.html#ga147b34accfb774f4ea41ab0cb94f28e1">PrimitiveType</a> type, <span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>& states = <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>());</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a56eaf8b36e55cac0f2fd946443a72a9c"> 232</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a56eaf8b36e55cac0f2fd946443a72a9c">draw</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_vertex.html">Vertex</a> *vertices, <span class="keyword">const</span> uint16_t *indices, std::size_t count, <a class="code hl_enumeration" href="group__graphics__renderers.html#ga147b34accfb774f4ea41ab0cb94f28e1">PrimitiveType</a> type, <span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>& states = <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>());</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> </div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a7a31eaa2a6710e4ec164807e46977159"> 240</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a7a31eaa2a6710e4ec164807e46977159">draw</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_vertex_buffer.html">VertexBuffer</a>& buffer, <span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>& states = <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>());</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> </div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a39de6116a654206f146ce4d713713f93"> 248</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a39de6116a654206f146ce4d713713f93">draw</a>(<a class="code hl_class" href="classgf_1_1_drawable.html">Drawable</a>& drawable, <span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>& states = <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>());</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> </div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a045aed84f20668076682a2638c298329"> 260</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a045aed84f20668076682a2638c298329">customDraw</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *vertices, std::size_t size, std::size_t count, <a class="code hl_enumeration" href="group__graphics__renderers.html#ga147b34accfb774f4ea41ab0cb94f28e1">PrimitiveType</a> type, <a class="code hl_class" href="classgf_1_1_span.html">Span<const RenderAttributeInfo></a> attributes, <span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>& states = <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>());</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> </div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a50d55c0bdc9d4464b434cc3b85a960a1"> 273</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a50d55c0bdc9d4464b434cc3b85a960a1">customDraw</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *vertices, std::size_t size, <span class="keyword">const</span> uint16_t *indices, std::size_t count, <a class="code hl_enumeration" href="group__graphics__renderers.html#ga147b34accfb774f4ea41ab0cb94f28e1">PrimitiveType</a> type, <a class="code hl_class" href="classgf_1_1_span.html">Span<const RenderAttributeInfo></a> attributes, <span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>& states = <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>());</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> </div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a7e90892f6a4da7370c0826085d2302ca"> 282</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#a7e90892f6a4da7370c0826085d2302ca">customDraw</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_vertex_buffer.html">VertexBuffer</a>& buffer, <a class="code hl_class" href="classgf_1_1_span.html">Span<const RenderAttributeInfo></a> attributes, <span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>& states = <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>());</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> </div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#ad0c0d32d96beabdd18cfdab4c64ee93a"> 309</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgf_1_1_render_target.html#ad0c0d32d96beabdd18cfdab4c64ee93a">setView</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_view.html">View</a>& view);</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> </div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#ad13ccf09aeca9003acfbcf21a68f9010"> 318</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_view.html">View</a>& <a class="code hl_function" href="classgf_1_1_render_target.html#ad13ccf09aeca9003acfbcf21a68f9010">getView</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> <span class="keywordflow">return</span> m_view;</div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> }</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> </div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#afcb4bee93cdb4b5449dfbf823773f512"> 334</a></span> <a class="code hl_struct" href="structgf_1_1_region.html">Region</a> <a class="code hl_function" href="classgf_1_1_render_target.html#afcb4bee93cdb4b5449dfbf823773f512">getCanonicalViewport</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_view.html">View</a>& view) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> </div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a51f479ce259f75e323549980cc3f014e"> 348</a></span> <a class="code hl_class" href="structgf_1_1_rect.html">RectI</a> <a class="code hl_function" href="classgf_1_1_render_target.html#a51f479ce259f75e323549980cc3f014e">getViewport</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_view.html">View</a>& view) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> </div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#ad55789701df820a113d22dbc7cffb6e3"> 379</a></span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2f</a> <a class="code hl_function" href="classgf_1_1_render_target.html#ad55789701df820a113d22dbc7cffb6e3">mapPixelToCoords</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> point, <span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_view.html">View</a>& view) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> </div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a78fae041fa10cd9a3a960f816b1147cb"> 400</a></span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2f</a> <a class="code hl_function" href="classgf_1_1_render_target.html#a78fae041fa10cd9a3a960f816b1147cb">mapPixelToCoords</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> point) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"> 401</span> </div>
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#aec80dd6d1f6046f8cc3b1f32b8c80440"> 427</a></span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> <a class="code hl_function" href="classgf_1_1_render_target.html#aec80dd6d1f6046f8cc3b1f32b8c80440">mapCoordsToPixel</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2f</a> point, <span class="keyword">const</span> <a class="code hl_class" href="classgf_1_1_view.html">View</a>& view) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno"> 428</span> </div>
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#aebfe664cad224644a04f2a82cb4acad7"> 448</a></span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> <a class="code hl_function" href="classgf_1_1_render_target.html#aebfe664cad224644a04f2a82cb4acad7">mapCoordsToPixel</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2f</a> point) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"> 449</span> </div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno"> 452</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno"><a class="line" href="classgf_1_1_render_target.html#a4c83cb262854ad4b3cf77bc811c1bff1"> 458</a></span> <a class="code hl_class" href="classgf_1_1_image.html">Image</a> <a class="code hl_function" href="classgf_1_1_render_target.html#a4c83cb262854ad4b3cf77bc811c1bff1">captureFramebuffer</a>(<span class="keywordtype">unsigned</span> name) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno"> 459</span> </div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno"> 460</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno"> 461</span> <span class="keyword">struct </span>Locations {</div>
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno"> 462</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> std::size_t CountMax = 5;</div>
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno"> 463</span> <span class="keywordtype">int</span> data[CountMax];</div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"> 464</span> std::size_t count = 0;</div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"> 465</span> };</div>
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno"> 466</span> </div>
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno"> 467</span> <span class="keywordtype">void</span> drawStart(<span class="keyword">const</span> <a class="code hl_struct" href="structgf_1_1_render_states.html">RenderStates</a>& states, Locations& locations, std::size_t size, <a class="code hl_class" href="classgf_1_1_span.html">Span<const RenderAttributeInfo></a> attributes);</div>
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno"> 468</span> <span class="keywordtype">void</span> drawFinish(<span class="keyword">const</span> Locations& locations);</div>
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno"> 469</span> </div>
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno"> 470</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno"> 471</span> <a class="code hl_class" href="classgf_1_1_view.html">View</a> m_view;</div>
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno"> 472</span> <a class="code hl_class" href="classgf_1_1_shader.html">Shader</a> m_defaultShader;</div>
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno"> 473</span> <a class="code hl_class" href="classgf_1_1_shader.html">Shader</a> m_defaultAlphaShader;</div>
<div class="line"><a id="l00474" name="l00474"></a><span class="lineno"> 474</span> <a class="code hl_class" href="classgf_1_1_texture.html">Texture</a> m_defaultTexture;</div>
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno"> 475</span> };</div>
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno"> 476</span> </div>
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno"> 477</span><span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div>
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno"> 478</span>}</div>
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno"> 479</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno"> 480</span>}</div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno"> 481</span> </div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno"> 482</span><span class="preprocessor">#endif </span><span class="comment">// GF_RENDER_TARGET_H</span></div>
<div class="ttc" id="aclassgf_1_1_drawable_html"><div class="ttname"><a href="classgf_1_1_drawable.html">gf::Drawable</a></div><div class="ttdoc">Abstract base class for objects that can be drawn to a render window.</div><div class="ttdef"><b>Definition:</b> Drawable.h:57</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_render_target_html"><div class="ttname"><a href="classgf_1_1_render_target.html">gf::RenderTarget</a></div><div class="ttdoc">Base class for all render targets (window, texture, ...)</div><div class="ttdef"><b>Definition:</b> RenderTarget.h:102</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a045aed84f20668076682a2638c298329"><div class="ttname"><a href="classgf_1_1_render_target.html#a045aed84f20668076682a2638c298329">gf::RenderTarget::customDraw</a></div><div class="ttdeci">void customDraw(const void *vertices, std::size_t size, std::size_t count, PrimitiveType type, Span< const RenderAttributeInfo > attributes, const RenderStates &states=RenderStates())</div><div class="ttdoc">Draw primitives defined by an array of custom vertices.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a29797883fe14f6e1c49c6290adbd4a8c"><div class="ttname"><a href="classgf_1_1_render_target.html#a29797883fe14f6e1c49c6290adbd4a8c">gf::RenderTarget::getScissorBox</a></div><div class="ttdeci">RectI getScissorBox()</div><div class="ttdoc">Get the current scissor box.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a2c3f888d184e81d8668b6ec5b1d332de"><div class="ttname"><a href="classgf_1_1_render_target.html#a2c3f888d184e81d8668b6ec5b1d332de">gf::RenderTarget::clear</a></div><div class="ttdeci">void clear(const Color4f &color)</div><div class="ttdoc">Clear the entire target with a single color.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a3445880f95c648efbeff3d2572c4c263"><div class="ttname"><a href="classgf_1_1_render_target.html#a3445880f95c648efbeff3d2572c4c263">gf::RenderTarget::draw</a></div><div class="ttdeci">void draw(const Vertex *vertices, std::size_t count, PrimitiveType type, const RenderStates &states=RenderStates())</div><div class="ttdoc">Draw primitives defined by an array of vertices.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a39de6116a654206f146ce4d713713f93"><div class="ttname"><a href="classgf_1_1_render_target.html#a39de6116a654206f146ce4d713713f93">gf::RenderTarget::draw</a></div><div class="ttdeci">void draw(Drawable &drawable, const RenderStates &states=RenderStates())</div><div class="ttdoc">Draw a drawable object to the render target.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a3f9b230127c141fb40c4fd8c66ed1f39"><div class="ttname"><a href="classgf_1_1_render_target.html#a3f9b230127c141fb40c4fd8c66ed1f39">gf::RenderTarget::operator=</a></div><div class="ttdeci">RenderTarget & operator=(const RenderTarget &)=delete</div><div class="ttdoc">Deleted copy assignment.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a4c83cb262854ad4b3cf77bc811c1bff1"><div class="ttname"><a href="classgf_1_1_render_target.html#a4c83cb262854ad4b3cf77bc811c1bff1">gf::RenderTarget::captureFramebuffer</a></div><div class="ttdeci">Image captureFramebuffer(unsigned name) const</div><div class="ttdoc">Capture the given framebuffer.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a50d55c0bdc9d4464b434cc3b85a960a1"><div class="ttname"><a href="classgf_1_1_render_target.html#a50d55c0bdc9d4464b434cc3b85a960a1">gf::RenderTarget::customDraw</a></div><div class="ttdeci">void customDraw(const void *vertices, std::size_t size, const uint16_t *indices, std::size_t count, PrimitiveType type, Span< const RenderAttributeInfo > attributes, const RenderStates &states=RenderStates())</div><div class="ttdoc">Draw primitives defined by an array of custom vertices and their indices.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a51f479ce259f75e323549980cc3f014e"><div class="ttname"><a href="classgf_1_1_render_target.html#a51f479ce259f75e323549980cc3f014e">gf::RenderTarget::getViewport</a></div><div class="ttdeci">RectI getViewport(const View &view) const</div><div class="ttdoc">Get the viewport of a view, applied to this render target.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a56eaf8b36e55cac0f2fd946443a72a9c"><div class="ttname"><a href="classgf_1_1_render_target.html#a56eaf8b36e55cac0f2fd946443a72a9c">gf::RenderTarget::draw</a></div><div class="ttdeci">void draw(const Vertex *vertices, const uint16_t *indices, std::size_t count, PrimitiveType type, const RenderStates &states=RenderStates())</div><div class="ttdoc">Draw primitives defined by an array of vertices and their indices.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a6e99f42c583be94f7b7a47a74403cd4c"><div class="ttname"><a href="classgf_1_1_render_target.html#a6e99f42c583be94f7b7a47a74403cd4c">gf::RenderTarget::RenderTarget</a></div><div class="ttdeci">RenderTarget(Vector2i size)</div><div class="ttdoc">Constructor.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a76ae398641a9171c45bc31abd6e42112"><div class="ttname"><a href="classgf_1_1_render_target.html#a76ae398641a9171c45bc31abd6e42112">gf::RenderTarget::getCanonicalScissorBox</a></div><div class="ttdeci">Region getCanonicalScissorBox()</div><div class="ttdoc">Get the current canonical scissor box.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a78fae041fa10cd9a3a960f816b1147cb"><div class="ttname"><a href="classgf_1_1_render_target.html#a78fae041fa10cd9a3a960f816b1147cb">gf::RenderTarget::mapPixelToCoords</a></div><div class="ttdeci">Vector2f mapPixelToCoords(Vector2i point) const</div><div class="ttdoc">Convert a point from target coordinates to world coordinates, using the current view.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a7a31eaa2a6710e4ec164807e46977159"><div class="ttname"><a href="classgf_1_1_render_target.html#a7a31eaa2a6710e4ec164807e46977159">gf::RenderTarget::draw</a></div><div class="ttdeci">void draw(const VertexBuffer &buffer, const RenderStates &states=RenderStates())</div><div class="ttdoc">Draw a vertex buffer to the render target.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a7d5128d6f88500fdc8b526ca24844431"><div class="ttname"><a href="classgf_1_1_render_target.html#a7d5128d6f88500fdc8b526ca24844431">gf::RenderTarget::~RenderTarget</a></div><div class="ttdeci">virtual ~RenderTarget()</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a7e90892f6a4da7370c0826085d2302ca"><div class="ttname"><a href="classgf_1_1_render_target.html#a7e90892f6a4da7370c0826085d2302ca">gf::RenderTarget::customDraw</a></div><div class="ttdeci">void customDraw(const VertexBuffer &buffer, Span< const RenderAttributeInfo > attributes, const RenderStates &states=RenderStates())</div><div class="ttdoc">Draw a custom vertex buffer to the render target.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a878f6ffa9ba25da18db791fa83eac4c3"><div class="ttname"><a href="classgf_1_1_render_target.html#a878f6ffa9ba25da18db791fa83eac4c3">gf::RenderTarget::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Clear the entire target.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_a9c29db31909b22d29334d5e4e8e3e6a1"><div class="ttname"><a href="classgf_1_1_render_target.html#a9c29db31909b22d29334d5e4e8e3e6a1">gf::RenderTarget::setActive</a></div><div class="ttdeci">virtual void setActive()</div><div class="ttdoc">Activate the render target for rendering.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_aa1814c8b195d2a1a5e6525a3cba3c26f"><div class="ttname"><a href="classgf_1_1_render_target.html#aa1814c8b195d2a1a5e6525a3cba3c26f">gf::RenderTarget::getAliasedLineWidthRange</a></div><div class="ttdeci">RangeF getAliasedLineWidthRange() const</div><div class="ttdoc">Get the range for aliased line width.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_ab47783a4937a88fcf72e282030b86c54"><div class="ttname"><a href="classgf_1_1_render_target.html#ab47783a4937a88fcf72e282030b86c54">gf::RenderTarget::setCanonicalScissorBox</a></div><div class="ttdeci">void setCanonicalScissorBox(const Region &box)</div><div class="ttdoc">Define the canonical scissor box.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_ac400fc5713a745e5459a285ca4c3c11c"><div class="ttname"><a href="classgf_1_1_render_target.html#ac400fc5713a745e5459a285ca4c3c11c">gf::RenderTarget::setScissorBox</a></div><div class="ttdeci">void setScissorBox(const RectI &box)</div><div class="ttdoc">Define the scissor box.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_ad0c0d32d96beabdd18cfdab4c64ee93a"><div class="ttname"><a href="classgf_1_1_render_target.html#ad0c0d32d96beabdd18cfdab4c64ee93a">gf::RenderTarget::setView</a></div><div class="ttdeci">void setView(const View &view)</div><div class="ttdoc">Change the current active view.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_ad13ccf09aeca9003acfbcf21a68f9010"><div class="ttname"><a href="classgf_1_1_render_target.html#ad13ccf09aeca9003acfbcf21a68f9010">gf::RenderTarget::getView</a></div><div class="ttdeci">const View & getView() const</div><div class="ttdoc">Get the view currently in use in the render target.</div><div class="ttdef"><b>Definition:</b> RenderTarget.h:318</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_ad55789701df820a113d22dbc7cffb6e3"><div class="ttname"><a href="classgf_1_1_render_target.html#ad55789701df820a113d22dbc7cffb6e3">gf::RenderTarget::mapPixelToCoords</a></div><div class="ttdeci">Vector2f mapPixelToCoords(Vector2i point, const View &view) const</div><div class="ttdoc">Convert a point from target coordinates to world coordinates.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_aebfe664cad224644a04f2a82cb4acad7"><div class="ttname"><a href="classgf_1_1_render_target.html#aebfe664cad224644a04f2a82cb4acad7">gf::RenderTarget::mapCoordsToPixel</a></div><div class="ttdeci">Vector2i mapCoordsToPixel(Vector2f point) const</div><div class="ttdoc">Convert a point from world coordinates to target coordinates, using the current view.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_aec80dd6d1f6046f8cc3b1f32b8c80440"><div class="ttname"><a href="classgf_1_1_render_target.html#aec80dd6d1f6046f8cc3b1f32b8c80440">gf::RenderTarget::mapCoordsToPixel</a></div><div class="ttdeci">Vector2i mapCoordsToPixel(Vector2f point, const View &view) const</div><div class="ttdoc">Convert a point from world coordinates to target coordinates.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_af36a6312551fa0e297a9f6651b9fee82"><div class="ttname"><a href="classgf_1_1_render_target.html#af36a6312551fa0e297a9f6651b9fee82">gf::RenderTarget::RenderTarget</a></div><div class="ttdeci">RenderTarget(const RenderTarget &)=delete</div><div class="ttdoc">Deleted copy constructor.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_af7b6eeeca709f64b81ea6a09d13ac8d9"><div class="ttname"><a href="classgf_1_1_render_target.html#af7b6eeeca709f64b81ea6a09d13ac8d9">gf::RenderTarget::getLineWidth</a></div><div class="ttdeci">float getLineWidth() const</div><div class="ttdoc">Get the line width.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_afcb4bee93cdb4b5449dfbf823773f512"><div class="ttname"><a href="classgf_1_1_render_target.html#afcb4bee93cdb4b5449dfbf823773f512">gf::RenderTarget::getCanonicalViewport</a></div><div class="ttdeci">Region getCanonicalViewport(const View &view) const</div><div class="ttdoc">Get the canonical viewport of a view, applied to this render target.</div></div>
<div class="ttc" id="aclassgf_1_1_render_target_html_afd374eb663b1c892cb67c18fc6b603cf"><div class="ttname"><a href="classgf_1_1_render_target.html#afd374eb663b1c892cb67c18fc6b603cf">gf::RenderTarget::getSize</a></div><div class="ttdeci">virtual Vector2i getSize() const =0</div><div class="ttdoc">Return the size of the rendering region of the target.</div></div>
<div class="ttc" id="aclassgf_1_1_shader_html"><div class="ttname"><a href="classgf_1_1_shader.html">gf::Shader</a></div><div class="ttdoc">An OpenGL vertex and/or fragment shader.</div><div class="ttdef"><b>Definition:</b> Shader.h:119</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="aclassgf_1_1_vertex_buffer_html"><div class="ttname"><a href="classgf_1_1_vertex_buffer.html">gf::VertexBuffer</a></div><div class="ttdoc">Data in the graphics memory.</div><div class="ttdef"><b>Definition:</b> VertexBuffer.h:81</div></div>
<div class="ttc" id="aclassgf_1_1_view_html"><div class="ttname"><a href="classgf_1_1_view.html">gf::View</a></div><div class="ttdoc">2D camera that defines what region is shown on framebuffer</div><div class="ttdef"><b>Definition:</b> View.h:94</div></div>
<div class="ttc" id="agroup__graphics__gpu_html_gaf345882cbbc4e834ec38715ef1cb0c2b"><div class="ttname"><a href="group__graphics__gpu.html#gaf345882cbbc4e834ec38715ef1cb0c2b">gf::GraphicsTag</a></div><div class="ttdeci">GraphicsTag</div><div class="ttdoc">A tag to represent various GPU resources.</div><div class="ttdef"><b>Definition:</b> GraphicsHandle.h:37</div></div>
<div class="ttc" id="agroup__graphics__gpu_html_ggaf345882cbbc4e834ec38715ef1cb0c2ba42badd9e49002a3cefeaaf28867add83"><div class="ttname"><a href="group__graphics__gpu.html#ggaf345882cbbc4e834ec38715ef1cb0c2ba42badd9e49002a3cefeaaf28867add83">gf::GraphicsTag::Framebuffer</a></div><div class="ttdeci">@ Framebuffer</div><div class="ttdoc">A GPU framebuffer.</div></div>
<div class="ttc" id="agroup__graphics__renderers_html_ga147b34accfb774f4ea41ab0cb94f28e1"><div class="ttname"><a href="group__graphics__renderers.html#ga147b34accfb774f4ea41ab0cb94f28e1">gf::PrimitiveType</a></div><div class="ttdeci">PrimitiveType</div><div class="ttdoc">Kind of primitives to render.</div><div class="ttdef"><b>Definition:</b> PrimitiveType.h:43</div></div>
<div class="ttc" id="agroup__graphics__renderers_html_ga2564e56f5c92b89f512afadeed447519"><div class="ttname"><a href="group__graphics__renderers.html#ga2564e56f5c92b89f512afadeed447519">gf::RenderAttributeType</a></div><div class="ttdeci">RenderAttributeType</div><div class="ttdoc">The type of an attribute.</div><div class="ttdef"><b>Definition:</b> RenderTarget.h:54</div></div>
<div class="ttc" id="agroup__graphics__renderers_html_gga2564e56f5c92b89f512afadeed447519a22ae0e2b89e5e3d477f988cc36d3272b"><div class="ttname"><a href="group__graphics__renderers.html#gga2564e56f5c92b89f512afadeed447519a22ae0e2b89e5e3d477f988cc36d3272b">gf::RenderAttributeType::Float</a></div><div class="ttdeci">@ Float</div></div>
<div class="ttc" id="agroup__graphics__renderers_html_gga2564e56f5c92b89f512afadeed447519a30bb747c98bccdd11b3f89e644c4d0ad"><div class="ttname"><a href="group__graphics__renderers.html#gga2564e56f5c92b89f512afadeed447519a30bb747c98bccdd11b3f89e644c4d0ad">gf::RenderAttributeType::Short</a></div><div class="ttdeci">@ Short</div></div>
<div class="ttc" id="agroup__graphics__renderers_html_gga2564e56f5c92b89f512afadeed447519a4b4ba765b750d5836bfeb2213cc3caea"><div class="ttname"><a href="group__graphics__renderers.html#gga2564e56f5c92b89f512afadeed447519a4b4ba765b750d5836bfeb2213cc3caea">gf::RenderAttributeType::UByte</a></div><div class="ttdeci">@ UByte</div></div>
<div class="ttc" id="agroup__graphics__renderers_html_gga2564e56f5c92b89f512afadeed447519aa245c3230debe5c956484ecc6fa93877"><div class="ttname"><a href="group__graphics__renderers.html#gga2564e56f5c92b89f512afadeed447519aa245c3230debe5c956484ecc6fa93877">gf::RenderAttributeType::Byte</a></div><div class="ttdeci">@ Byte</div></div>
<div class="ttc" id="agroup__graphics__renderers_html_gga2564e56f5c92b89f512afadeed447519adfe785f133347f9b473f99009732b1bc"><div class="ttname"><a href="group__graphics__renderers.html#gga2564e56f5c92b89f512afadeed447519adfe785f133347f9b473f99009732b1bc">gf::RenderAttributeType::UShort</a></div><div class="ttdeci">@ UShort</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_graphics_trait_3_01_graphics_tag_1_1_framebuffer_01_4_html_a242b3808de652defb461aa0009e060ca"><div class="ttname"><a href="structgf_1_1_graphics_trait_3_01_graphics_tag_1_1_framebuffer_01_4.html#a242b3808de652defb461aa0009e060ca">gf::GraphicsTrait< GraphicsTag::Framebuffer >::del</a></div><div class="ttdeci">static void del(int n, const unsigned *resources)</div></div>
<div class="ttc" id="astructgf_1_1_graphics_trait_3_01_graphics_tag_1_1_framebuffer_01_4_html_a91edf852459496d660359250fe654edf"><div class="ttname"><a href="structgf_1_1_graphics_trait_3_01_graphics_tag_1_1_framebuffer_01_4.html#a91edf852459496d660359250fe654edf">gf::GraphicsTrait< GraphicsTag::Framebuffer >::gen</a></div><div class="ttdeci">static void gen(int n, unsigned *resources)</div></div>
<div class="ttc" id="astructgf_1_1_graphics_trait_html"><div class="ttname"><a href="structgf_1_1_graphics_trait.html">gf::GraphicsTrait</a></div><div class="ttdoc">A trait to handle creation and deletion of GPU resources.</div><div class="ttdef"><b>Definition:</b> GraphicsHandle.h:48</div></div>
<div class="ttc" id="astructgf_1_1_range_html"><div class="ttname"><a href="structgf_1_1_range.html">gf::Range</a></div><div class="ttdoc">A half-open range of values.</div><div class="ttdef"><b>Definition:</b> Range.h:44</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_region_html"><div class="ttname"><a href="structgf_1_1_region.html">gf::Region</a></div><div class="ttdoc">A region of a window.</div><div class="ttdef"><b>Definition:</b> Region.h:40</div></div>
<div class="ttc" id="astructgf_1_1_render_attribute_info_html"><div class="ttname"><a href="structgf_1_1_render_attribute_info.html">gf::RenderAttributeInfo</a></div><div class="ttdoc">Attribute info.</div><div class="ttdef"><b>Definition:</b> RenderTarget.h:66</div></div>
<div class="ttc" id="astructgf_1_1_render_attribute_info_html_a13cde35e49c01271dd3e16a556fea8cb"><div class="ttname"><a href="structgf_1_1_render_attribute_info.html#a13cde35e49c01271dd3e16a556fea8cb">gf::RenderAttributeInfo::offset</a></div><div class="ttdeci">std::size_t offset</div><div class="ttdoc">Offset of the attribute in the vertex.</div><div class="ttdef"><b>Definition:</b> RenderTarget.h:71</div></div>
<div class="ttc" id="astructgf_1_1_render_attribute_info_html_a2275b8f9f9fbd4c3d61661d6d44aad58"><div class="ttname"><a href="structgf_1_1_render_attribute_info.html#a2275b8f9f9fbd4c3d61661d6d44aad58">gf::RenderAttributeInfo::size</a></div><div class="ttdeci">int size</div><div class="ttdoc">Size of the attribute.</div><div class="ttdef"><b>Definition:</b> RenderTarget.h:68</div></div>
<div class="ttc" id="astructgf_1_1_render_attribute_info_html_a24004f6ac3f93dbe2bb67c9219d827b2"><div class="ttname"><a href="structgf_1_1_render_attribute_info.html#a24004f6ac3f93dbe2bb67c9219d827b2">gf::RenderAttributeInfo::type</a></div><div class="ttdeci">RenderAttributeType type</div><div class="ttdoc">Type of the attribute.</div><div class="ttdef"><b>Definition:</b> RenderTarget.h:69</div></div>
<div class="ttc" id="astructgf_1_1_render_attribute_info_html_a856bfe9a0a4b43fbad2e6ba314392232"><div class="ttname"><a href="structgf_1_1_render_attribute_info.html#a856bfe9a0a4b43fbad2e6ba314392232">gf::RenderAttributeInfo::name</a></div><div class="ttdeci">const char * name</div><div class="ttdoc">Name of the attribute.</div><div class="ttdef"><b>Definition:</b> RenderTarget.h:67</div></div>
<div class="ttc" id="astructgf_1_1_render_attribute_info_html_a905166be61d41b41845cad9d3b1fbc59"><div class="ttname"><a href="structgf_1_1_render_attribute_info.html#a905166be61d41b41845cad9d3b1fbc59">gf::RenderAttributeInfo::normalized</a></div><div class="ttdeci">bool normalized</div><div class="ttdoc">Is the attribute normalized?</div><div class="ttdef"><b>Definition:</b> RenderTarget.h:70</div></div>
<div class="ttc" id="astructgf_1_1_render_states_html"><div class="ttname"><a href="structgf_1_1_render_states.html">gf::RenderStates</a></div><div class="ttdoc">Define the states used for drawing to a RenderTarget.</div><div class="ttdef"><b>Definition:</b> RenderStates.h:82</div></div>
<div class="ttc" id="astructgf_1_1_vector_3_01_t_00_014_01_4_html"><div class="ttname"><a href="structgf_1_1_vector_3_01_t_00_014_01_4.html">gf::Vector< T, 4 ></a></div><div class="ttdoc">A 4D vector.</div><div class="ttdef"><b>Definition:</b> Vector.h:852</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 class="ttc" id="astructgf_1_1_vertex_html"><div class="ttname"><a href="structgf_1_1_vertex.html">gf::Vertex</a></div><div class="ttdoc">A point associated with a color and a texture coordinate.</div><div class="ttdef"><b>Definition:</b> Vertex.h:75</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>