This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnimatorUtil_8hpp_source.html
110 lines (108 loc) · 10.2 KB
/
AnimatorUtil_8hpp_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
<!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=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPICPRJ Game: libs/spic-engine/includes/spic-api-headers/Utils/AnimatorUtil.hpp 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>
<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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SPICPRJ Game
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(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">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_6719ab1f1f7655efc2fa43f7eb574fd1.html">libs</a></li><li class="navelem"><a class="el" href="dir_9974ec0867326232720279efba291a23.html">spic-engine</a></li><li class="navelem"><a class="el" href="dir_4f186f038b17a7ee674550d24e4eff05.html">includes</a></li><li class="navelem"><a class="el" href="dir_aba4a49ba75ce8e61d343651bd2042cb.html">spic-api-headers</a></li><li class="navelem"><a class="el" href="dir_b1ce97659b5afd5125c328c733318617.html">Utils</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">AnimatorUtil.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="AnimatorUtil_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef SPIC_ANIMATORUTIL_HPP</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define SPIC_ANIMATORUTIL_HPP</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "<a class="code" href="Sprite_8hpp.html">Sprite.hpp</a>"</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <memory></span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <string></span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <vector></span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="keyword">namespace </span><a class="code" href="namespacespic.html">spic</a></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> {</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="namespacespic_1_1types.html"> 12</a></span>  <span class="keyword">namespace </span>types</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  {</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="namespacespic_1_1types.html#a46e7856aebb0175f28b94fdc0d71eb29"> 14</a></span>  <span class="keyword">using</span> <a class="code" href="namespacespic_1_1types.html#a46e7856aebb0175f28b94fdc0d71eb29">sprite_vector</a> = std::vector<std::shared_ptr<spic::Sprite>>;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  }</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classspic_1_1AnimatorUtil.html"> 20</a></span>  <span class="keyword">class </span><a class="code" href="classspic_1_1AnimatorUtil.html">AnimatorUtil</a></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  {</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">static</span> <a class="code" href="namespacespic_1_1types.html#a46e7856aebb0175f28b94fdc0d71eb29">types::sprite_vector</a> <a class="code" href="classspic_1_1AnimatorUtil.html#ae56d0a6f283990af7c8acbaa6823458d">CreateSpriteVector</a>(<span class="keywordtype">int</span> max, <span class="keyword">const</span> std::string& prefix, <span class="keywordtype">int</span> sortingLayer = 0, <span class="keyword">const</span> std::string& extension = <span class="stringliteral">".png"</span>, <span class="keywordtype">bool</span> flipX = <span class="keyword">false</span>, <span class="keywordtype">bool</span> flipY = <span class="keyword">false</span>, <span class="keywordtype">int</span> orderLayer = 0);</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">static</span> <a class="code" href="namespacespic_1_1types.html#a46e7856aebb0175f28b94fdc0d71eb29">types::sprite_vector</a> <a class="code" href="classspic_1_1AnimatorUtil.html#ae56d0a6f283990af7c8acbaa6823458d">CreateSpriteVector</a>(<span class="keywordtype">int</span> max, <span class="keyword">const</span> std::string& prefix, <a class="code" href="classspic_1_1Color.html">spic::Color</a> color, <span class="keywordtype">int</span> sortingLayer = 0, <span class="keyword">const</span> std::string& extension = <span class="stringliteral">".png"</span>, <span class="keywordtype">bool</span> flipX = <span class="keyword">false</span>, <span class="keywordtype">bool</span> flipY = <span class="keyword">false</span>, <span class="keywordtype">int</span> orderLayer = 0);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  };</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> }</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#endif </span><span class="comment">//SPIC_ANIMATORUTIL_HPP</span></div>
<div class="ttc" id="aSprite_8hpp_html"><div class="ttname"><a href="Sprite_8hpp.html">Sprite.hpp</a></div></div>
<div class="ttc" id="aclassspic_1_1AnimatorUtil_html"><div class="ttname"><a href="classspic_1_1AnimatorUtil.html">spic::AnimatorUtil</a></div><div class="ttdoc">A util for animators.</div><div class="ttdef"><b>Definition:</b> AnimatorUtil.hpp:21</div></div>
<div class="ttc" id="aclassspic_1_1AnimatorUtil_html_ae56d0a6f283990af7c8acbaa6823458d"><div class="ttname"><a href="classspic_1_1AnimatorUtil.html#ae56d0a6f283990af7c8acbaa6823458d">spic::AnimatorUtil::CreateSpriteVector</a></div><div class="ttdeci">static types::sprite_vector CreateSpriteVector(int max, const std::string &prefix, int sortingLayer=0, const std::string &extension=".png", bool flipX=false, bool flipY=false, int orderLayer=0)</div><div class="ttdoc">Create a list of sprites by a given file template.</div><div class="ttdef"><b>Definition:</b> AnimatorUtil.cpp:5</div></div>
<div class="ttc" id="aclassspic_1_1Color_html"><div class="ttname"><a href="classspic_1_1Color.html">spic::Color</a></div><div class="ttdoc">Color represents a red-green-blue color with alpha. @spicapi.</div><div class="ttdef"><b>Definition:</b> Color.hpp:10</div></div>
<div class="ttc" id="anamespacespic_1_1types_html_a46e7856aebb0175f28b94fdc0d71eb29"><div class="ttname"><a href="namespacespic_1_1types.html#a46e7856aebb0175f28b94fdc0d71eb29">spic::types::sprite_vector</a></div><div class="ttdeci">std::vector< std::shared_ptr< spic::Sprite > > sprite_vector</div><div class="ttdef"><b>Definition:</b> AnimatorUtil.hpp:14</div></div>
<div class="ttc" id="anamespacespic_html"><div class="ttname"><a href="namespacespic.html">spic</a></div><div class="ttdef"><b>Definition:</b> Animator.hpp:13</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.1
</small></address>
</body>
</html>