forked from mmistakes/minimal-mistakes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
struct_transform_component.html
567 lines (514 loc) · 29 KB
/
struct_transform_component.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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
<!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" lang="en-US">
<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.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CS4850 Final Project: TransformComponent Struct Reference</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/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.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="projectalign">
<div id="projectname">CS4850 Final Project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<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('',true,false,'search.php','Search');
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="struct_transform_component-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">TransformComponent Struct Reference</div></div>
</div><!--header-->
<div class="contents">
<p>A component that represents a 2D transformation.
<a href="#details">More...</a></p>
<p><code>#include <<a class="el" href="_transform_component_8hpp_source.html">TransformComponent.hpp</a>></code></p>
<div class="dynheader">
Inheritance diagram for TransformComponent:</div>
<div class="dyncontent">
<div class="center">
<img src="struct_transform_component.png" usemap="#TransformComponent_map" alt=""/>
<map id="TransformComponent_map" name="TransformComponent_map">
<area href="struct_component.html" title="Base class for all components." alt="Component" shape="rect" coords="0,0,132,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afa35533da84aecb7080930fffca0f4b2" id="r_afa35533da84aecb7080930fffca0f4b2"><td class="memItemLeft" align="right" valign="top"><a id="afa35533da84aecb7080930fffca0f4b2" name="afa35533da84aecb7080930fffca0f4b2"></a>
 </td><td class="memItemRight" valign="bottom"><b>TransformComponent</b> (SDL_FRect rectangle)</td></tr>
<tr class="separator:afa35533da84aecb7080930fffca0f4b2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a031ba1c6f597c25d677fb33793479d53" id="r_a031ba1c6f597c25d677fb33793479d53"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a031ba1c6f597c25d677fb33793479d53">Input</a> (float deltaTime) override</td></tr>
<tr class="memdesc:a031ba1c6f597c25d677fb33793479d53"><td class="mdescLeft"> </td><td class="mdescRight">Handle input. <br /></td></tr>
<tr class="separator:a031ba1c6f597c25d677fb33793479d53"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7f61e8eea1e3d05a32653fa45bd10fe1" id="r_a7f61e8eea1e3d05a32653fa45bd10fe1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a7f61e8eea1e3d05a32653fa45bd10fe1">Update</a> (float deltaTime) override</td></tr>
<tr class="memdesc:a7f61e8eea1e3d05a32653fa45bd10fe1"><td class="mdescLeft"> </td><td class="mdescRight">Update the game state. <br /></td></tr>
<tr class="separator:a7f61e8eea1e3d05a32653fa45bd10fe1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a78eedf13d70917145f2cb613509c14c1" id="r_a78eedf13d70917145f2cb613509c14c1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a78eedf13d70917145f2cb613509c14c1">Render</a> (SDL_Renderer *renderer) override</td></tr>
<tr class="memdesc:a78eedf13d70917145f2cb613509c14c1"><td class="mdescLeft"> </td><td class="mdescRight">Render the game. <br /></td></tr>
<tr class="separator:a78eedf13d70917145f2cb613509c14c1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4d30c255d54af02fc53774412b488014" id="r_a4d30c255d54af02fc53774412b488014"><td class="memItemLeft" align="right" valign="top">ComponentType </td><td class="memItemRight" valign="bottom"><a class="el" href="#a4d30c255d54af02fc53774412b488014">GetType</a> () override</td></tr>
<tr class="memdesc:a4d30c255d54af02fc53774412b488014"><td class="mdescLeft"> </td><td class="mdescRight">Get the type of the component. <br /></td></tr>
<tr class="separator:a4d30c255d54af02fc53774412b488014"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad0ec4d225535f56ab1a0aa942d7f006b" id="r_ad0ec4d225535f56ab1a0aa942d7f006b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ad0ec4d225535f56ab1a0aa942d7f006b">SetW</a> (float w)</td></tr>
<tr class="memdesc:ad0ec4d225535f56ab1a0aa942d7f006b"><td class="mdescLeft"> </td><td class="mdescRight">Set the width of the transformation. <br /></td></tr>
<tr class="separator:ad0ec4d225535f56ab1a0aa942d7f006b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a18d77f1e7dd0eae8f011f538560a91f0" id="r_a18d77f1e7dd0eae8f011f538560a91f0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a18d77f1e7dd0eae8f011f538560a91f0">SetH</a> (float h)</td></tr>
<tr class="memdesc:a18d77f1e7dd0eae8f011f538560a91f0"><td class="mdescLeft"> </td><td class="mdescRight">Set the height of the transformation. <br /></td></tr>
<tr class="separator:a18d77f1e7dd0eae8f011f538560a91f0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a198f76af633557e85027771f60867432" id="r_a198f76af633557e85027771f60867432"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a198f76af633557e85027771f60867432">SetWH</a> (float w, float h)</td></tr>
<tr class="memdesc:a198f76af633557e85027771f60867432"><td class="mdescLeft"> </td><td class="mdescRight">Set the width and height of the transformation. <br /></td></tr>
<tr class="separator:a198f76af633557e85027771f60867432"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae5501067c1a954f5ed3b0cf75aadff20" id="r_ae5501067c1a954f5ed3b0cf75aadff20"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="#ae5501067c1a954f5ed3b0cf75aadff20">GetW</a> () const</td></tr>
<tr class="memdesc:ae5501067c1a954f5ed3b0cf75aadff20"><td class="mdescLeft"> </td><td class="mdescRight">Get the width of the transformation. <br /></td></tr>
<tr class="separator:ae5501067c1a954f5ed3b0cf75aadff20"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec4ba1c40d8071ff463a2a697c2984d6" id="r_aec4ba1c40d8071ff463a2a697c2984d6"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="#aec4ba1c40d8071ff463a2a697c2984d6">GetH</a> () const</td></tr>
<tr class="memdesc:aec4ba1c40d8071ff463a2a697c2984d6"><td class="mdescLeft"> </td><td class="mdescRight">Get the height of the transformation. <br /></td></tr>
<tr class="separator:aec4ba1c40d8071ff463a2a697c2984d6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8052d38b75f03094e781481212878589" id="r_a8052d38b75f03094e781481212878589"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a8052d38b75f03094e781481212878589">SetX</a> (float x)</td></tr>
<tr class="memdesc:a8052d38b75f03094e781481212878589"><td class="mdescLeft"> </td><td class="mdescRight">Set the x position of the transformation. <br /></td></tr>
<tr class="separator:a8052d38b75f03094e781481212878589"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab7df147cf1e48361aec3f96573278a09" id="r_ab7df147cf1e48361aec3f96573278a09"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ab7df147cf1e48361aec3f96573278a09">SetY</a> (float y)</td></tr>
<tr class="memdesc:ab7df147cf1e48361aec3f96573278a09"><td class="mdescLeft"> </td><td class="mdescRight">Set the y position of the transformation. <br /></td></tr>
<tr class="separator:ab7df147cf1e48361aec3f96573278a09"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1977fcd1d8cd835aea71651f18cc9ea4" id="r_a1977fcd1d8cd835aea71651f18cc9ea4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a1977fcd1d8cd835aea71651f18cc9ea4">SetXY</a> (float x, float y)</td></tr>
<tr class="memdesc:a1977fcd1d8cd835aea71651f18cc9ea4"><td class="mdescLeft"> </td><td class="mdescRight">Set the x and y position of the transformation. <br /></td></tr>
<tr class="separator:a1977fcd1d8cd835aea71651f18cc9ea4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7260ce3bc9ef172d4a57a482c2b209ad" id="r_a7260ce3bc9ef172d4a57a482c2b209ad"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="#a7260ce3bc9ef172d4a57a482c2b209ad">GetX</a> () const</td></tr>
<tr class="memdesc:a7260ce3bc9ef172d4a57a482c2b209ad"><td class="mdescLeft"> </td><td class="mdescRight">Get the x position of the transformation. <br /></td></tr>
<tr class="separator:a7260ce3bc9ef172d4a57a482c2b209ad"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae02c8d6e718fdcc01065b228bbcdb10d" id="r_ae02c8d6e718fdcc01065b228bbcdb10d"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="#ae02c8d6e718fdcc01065b228bbcdb10d">GetY</a> () const</td></tr>
<tr class="memdesc:ae02c8d6e718fdcc01065b228bbcdb10d"><td class="mdescLeft"> </td><td class="mdescRight">Get the y position of the transformation. <br /></td></tr>
<tr class="separator:ae02c8d6e718fdcc01065b228bbcdb10d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a992e0cbffe237badd34641f1e82cb1b2" id="r_a992e0cbffe237badd34641f1e82cb1b2"><td class="memItemLeft" align="right" valign="top">SDL_FRect </td><td class="memItemRight" valign="bottom"><a class="el" href="#a992e0cbffe237badd34641f1e82cb1b2">GetRectangle</a> () const</td></tr>
<tr class="memdesc:a992e0cbffe237badd34641f1e82cb1b2"><td class="mdescLeft"> </td><td class="mdescRight">Get the transformation as an SDL_FRect. <br /></td></tr>
<tr class="separator:a992e0cbffe237badd34641f1e82cb1b2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_struct_component"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_struct_component')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="struct_component.html">Component</a></td></tr>
<tr class="memitem:abd8232c424fe5808f4f3d1cc020a960f inherit pub_methods_struct_component" id="r_abd8232c424fe5808f4f3d1cc020a960f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_component.html#abd8232c424fe5808f4f3d1cc020a960f">SetGameEntity</a> (std::shared_ptr< <a class="el" href="struct_game_entity.html">GameEntity</a> > gameEntity)</td></tr>
<tr class="memdesc:abd8232c424fe5808f4f3d1cc020a960f inherit pub_methods_struct_component"><td class="mdescLeft"> </td><td class="mdescRight">Set the game entity that the component is attached to. <br /></td></tr>
<tr class="separator:abd8232c424fe5808f4f3d1cc020a960f inherit pub_methods_struct_component"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad1000f79fe140ee4cc90d0b23cd6c035 inherit pub_methods_struct_component" id="r_ad1000f79fe140ee4cc90d0b23cd6c035"><td class="memItemLeft" align="right" valign="top">std::shared_ptr< <a class="el" href="struct_game_entity.html">GameEntity</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_component.html#ad1000f79fe140ee4cc90d0b23cd6c035">GetGameEntity</a> ()</td></tr>
<tr class="memdesc:ad1000f79fe140ee4cc90d0b23cd6c035 inherit pub_methods_struct_component"><td class="mdescLeft"> </td><td class="mdescRight">Get the game entity that the component is attached to. <br /></td></tr>
<tr class="separator:ad1000f79fe140ee4cc90d0b23cd6c035 inherit pub_methods_struct_component"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_struct_component"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pro_attribs_struct_component')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="struct_component.html">Component</a></td></tr>
<tr class="memitem:a0f7c731464b5394b5d58ef3cf7a06d72 inherit pro_attribs_struct_component" id="r_a0f7c731464b5394b5d58ef3cf7a06d72"><td class="memItemLeft" align="right" valign="top">
std::shared_ptr< <a class="el" href="struct_game_entity.html">GameEntity</a> > </td><td class="memItemRight" valign="bottom"><b>mGameEntity</b></td></tr>
<tr class="separator:a0f7c731464b5394b5d58ef3cf7a06d72 inherit pro_attribs_struct_component"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A component that represents a 2D transformation. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="aec4ba1c40d8071ff463a2a697c2984d6" name="aec4ba1c40d8071ff463a2a697c2984d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec4ba1c40d8071ff463a2a697c2984d6">◆ </a></span>GetH()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float TransformComponent::GetH </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the height of the transformation. </p>
<dl class="section return"><dt>Returns</dt><dd>float </dd></dl>
</div>
</div>
<a id="a992e0cbffe237badd34641f1e82cb1b2" name="a992e0cbffe237badd34641f1e82cb1b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a992e0cbffe237badd34641f1e82cb1b2">◆ </a></span>GetRectangle()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">SDL_FRect TransformComponent::GetRectangle </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the transformation as an SDL_FRect. </p>
<dl class="section return"><dt>Returns</dt><dd>SDL_FRect </dd></dl>
</div>
</div>
<a id="a4d30c255d54af02fc53774412b488014" name="a4d30c255d54af02fc53774412b488014"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d30c255d54af02fc53774412b488014">◆ </a></span>GetType()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ComponentType TransformComponent::GetType </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the type of the component. </p>
<dl class="section return"><dt>Returns</dt><dd>ComponentType </dd></dl>
<p>Implements <a class="el" href="struct_component.html#a2e87d60cd7150786e51bfcda7129ed90">Component</a>.</p>
</div>
</div>
<a id="ae5501067c1a954f5ed3b0cf75aadff20" name="ae5501067c1a954f5ed3b0cf75aadff20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5501067c1a954f5ed3b0cf75aadff20">◆ </a></span>GetW()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float TransformComponent::GetW </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the width of the transformation. </p>
<dl class="section return"><dt>Returns</dt><dd>float </dd></dl>
</div>
</div>
<a id="a7260ce3bc9ef172d4a57a482c2b209ad" name="a7260ce3bc9ef172d4a57a482c2b209ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7260ce3bc9ef172d4a57a482c2b209ad">◆ </a></span>GetX()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float TransformComponent::GetX </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the x position of the transformation. </p>
<dl class="section return"><dt>Returns</dt><dd>float </dd></dl>
</div>
</div>
<a id="ae02c8d6e718fdcc01065b228bbcdb10d" name="ae02c8d6e718fdcc01065b228bbcdb10d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae02c8d6e718fdcc01065b228bbcdb10d">◆ </a></span>GetY()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float TransformComponent::GetY </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the y position of the transformation. </p>
<dl class="section return"><dt>Returns</dt><dd>float </dd></dl>
</div>
</div>
<a id="a031ba1c6f597c25d677fb33793479d53" name="a031ba1c6f597c25d677fb33793479d53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a031ba1c6f597c25d677fb33793479d53">◆ </a></span>Input()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void TransformComponent::Input </td>
<td>(</td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>deltaTime</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Handle input. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">deltaTime</td><td>Time since last frame </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="struct_component.html#a85d6bd954d08b01cfad8e8357f98d011">Component</a>.</p>
</div>
</div>
<a id="a78eedf13d70917145f2cb613509c14c1" name="a78eedf13d70917145f2cb613509c14c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78eedf13d70917145f2cb613509c14c1">◆ </a></span>Render()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void TransformComponent::Render </td>
<td>(</td>
<td class="paramtype">SDL_Renderer *</td> <td class="paramname"><span class="paramname"><em>renderer</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Render the game. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">renderer</td><td>SDL renderer </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="struct_component.html#a223de42285cca9e02809120c1a44c4ac">Component</a>.</p>
</div>
</div>
<a id="a18d77f1e7dd0eae8f011f538560a91f0" name="a18d77f1e7dd0eae8f011f538560a91f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18d77f1e7dd0eae8f011f538560a91f0">◆ </a></span>SetH()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TransformComponent::SetH </td>
<td>(</td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>h</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the height of the transformation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">h</td><td>Height </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ad0ec4d225535f56ab1a0aa942d7f006b" name="ad0ec4d225535f56ab1a0aa942d7f006b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0ec4d225535f56ab1a0aa942d7f006b">◆ </a></span>SetW()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TransformComponent::SetW </td>
<td>(</td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>w</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the width of the transformation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">w</td><td>Width </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a198f76af633557e85027771f60867432" name="a198f76af633557e85027771f60867432"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a198f76af633557e85027771f60867432">◆ </a></span>SetWH()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TransformComponent::SetWH </td>
<td>(</td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>w</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>h</em></span> )</td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the width and height of the transformation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">w</td><td>Width </td></tr>
<tr><td class="paramname">h</td><td>Height </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a8052d38b75f03094e781481212878589" name="a8052d38b75f03094e781481212878589"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8052d38b75f03094e781481212878589">◆ </a></span>SetX()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TransformComponent::SetX </td>
<td>(</td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>x</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the x position of the transformation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>X position </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a1977fcd1d8cd835aea71651f18cc9ea4" name="a1977fcd1d8cd835aea71651f18cc9ea4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1977fcd1d8cd835aea71651f18cc9ea4">◆ </a></span>SetXY()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TransformComponent::SetXY </td>
<td>(</td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>y</em></span> )</td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the x and y position of the transformation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>X position </td></tr>
<tr><td class="paramname">y</td><td>Y position </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ab7df147cf1e48361aec3f96573278a09" name="ab7df147cf1e48361aec3f96573278a09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7df147cf1e48361aec3f96573278a09">◆ </a></span>SetY()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TransformComponent::SetY </td>
<td>(</td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>y</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the y position of the transformation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">y</td><td>Y position </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a7f61e8eea1e3d05a32653fa45bd10fe1" name="a7f61e8eea1e3d05a32653fa45bd10fe1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f61e8eea1e3d05a32653fa45bd10fe1">◆ </a></span>Update()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void TransformComponent::Update </td>
<td>(</td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>deltaTime</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Update the game state. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">deltaTime</td><td>Time since last frame </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="struct_component.html#a3c50208a8c7ea021b0ae2b9dfbaec65a">Component</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="_transform_component_8hpp_source.html">TransformComponent.hpp</a></li>
</ul>
</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.10.0
</small></address>
</body>
</html>