172 lines
16 KiB
HTML
172 lines
16 KiB
HTML
|
|
<!-- HTML header for doxygen 1.9.2-->
|
||
|
|
<!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" class="dark-mode">
|
||
|
|
<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.12.0"/>
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||
|
|
<title>Archeus: /home/herbglitch/programs/archeus/arc/include/arc/graphics/spritesheet.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>
|
||
|
|
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||
|
|
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||
|
|
<script type="text/javascript" src="../../navtree.js"></script>
|
||
|
|
<script type="text/javascript" src="../../resize.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" />
|
||
|
|
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
||
|
|
<link href="../../doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
|
||
|
|
<link href="../../doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
|
||
|
|
<script type="text/javascript" src="../../doxygen-awesome-darkmode-toggle.js"></script>
|
||
|
|
</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">Archeus<span id="projectnumber"> 0.0.0</span>
|
||
|
|
</div>
|
||
|
|
<div id="projectbrief">A C library and game engine that focuses on documentation</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<!-- end header part -->
|
||
|
|
<!-- Generated by Doxygen 1.12.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">
|
||
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||
|
|
$(function() { codefold.init(1); });
|
||
|
|
/* @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',true);
|
||
|
|
$(function() { init_search(); });
|
||
|
|
});
|
||
|
|
/* @license-end */
|
||
|
|
</script>
|
||
|
|
<div id="main-nav"></div>
|
||
|
|
</div><!-- top -->
|
||
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||
|
|
<div id="nav-tree">
|
||
|
|
<div id="nav-tree-contents">
|
||
|
|
<div id="nav-sync" class="sync"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
||
|
|
class="ui-resizable-handle">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<script type="text/javascript">
|
||
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||
|
|
$(function(){initNavTree('d9/d53/spritesheet_8h_source.html','../../'); initResizable(true); });
|
||
|
|
/* @license-end */
|
||
|
|
</script>
|
||
|
|
<div id="doc-content">
|
||
|
|
<!-- 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 class="header">
|
||
|
|
<div class="headertitle"><div class="title">spritesheet.h</div></div>
|
||
|
|
</div><!--header-->
|
||
|
|
<div class="contents">
|
||
|
|
<a href="../../d9/d53/spritesheet_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef ARC_GRAPHICS_SPRITESHEET_H_</span></div>
|
||
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define ARC_GRAPHICS_SPRITESHEET_H_</span></div>
|
||
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
||
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#ifdef __cplusplus</span></div>
|
||
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
|
||
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#endif</span></div>
|
||
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
|
||
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <stdint.h></span></div>
|
||
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include "<a class="code" href="../../d2/d91/point_8h.html">arc/math/point.h</a>"</span></div>
|
||
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include "<a class="code" href="../../d2/d14/math_2rectangle_8h.html">arc/math/rectangle.h</a>"</span></div>
|
||
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include "<a class="code" href="../../d6/d85/renderer_8h.html">arc/graphics/renderer.h</a>"</span></div>
|
||
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include "<a class="code" href="../../da/d66/string_8h.html">arc/std/string.h</a>"</span></div>
|
||
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
||
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="../../d9/d53/spritesheet_8h.html#a1e01dfc3d163e82e7d00d039f0e0a82c"> 14</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_typedef" href="../../d9/d53/spritesheet_8h.html#a1e01dfc3d163e82e7d00d039f0e0a82c">ARC_Spritesheet</a> <a class="code hl_typedef" href="../../d9/d53/spritesheet_8h.html#a1e01dfc3d163e82e7d00d039f0e0a82c">ARC_Spritesheet</a>;</div>
|
||
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
|
||
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="../../d9/d53/spritesheet_8h.html#a07d3eb2716f237551fb29dc425a14870"> 16</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d9/d53/spritesheet_8h.html#a07d3eb2716f237551fb29dc425a14870">ARC_Spritesheet_CreateFromFile</a>(<a class="code hl_typedef" href="../../d9/d53/spritesheet_8h.html#a1e01dfc3d163e82e7d00d039f0e0a82c">ARC_Spritesheet</a> **spritesheet, <a class="code hl_typedef" href="../../d6/d85/renderer_8h.html#a2b82366dc421b3e80aace49f3ae8639a">ARC_Renderer</a> *renderer, <a class="code hl_struct" href="../../df/d06/structARC__String.html">ARC_String</a> *path);</div>
|
||
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
|
||
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="../../d9/d53/spritesheet_8h.html#abef4c60c51ed55e11b67c33073092811"> 18</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d9/d53/spritesheet_8h.html#abef4c60c51ed55e11b67c33073092811">ARC_Spritesheet_Destroy</a>(<a class="code hl_typedef" href="../../d9/d53/spritesheet_8h.html#a1e01dfc3d163e82e7d00d039f0e0a82c">ARC_Spritesheet</a> *spritesheet);</div>
|
||
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
||
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="../../d9/d53/spritesheet_8h.html#ab2943ba8a63fa94ad9ddff7ecc3b2dc7"> 20</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d9/d53/spritesheet_8h.html#ab2943ba8a63fa94ad9ddff7ecc3b2dc7">ARC_Spritesheet_RenderArea</a>(<a class="code hl_typedef" href="../../d9/d53/spritesheet_8h.html#a1e01dfc3d163e82e7d00d039f0e0a82c">ARC_Spritesheet</a> *spritesheet, <a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a> *sheetBounds, <a class="code hl_typedef" href="../../d6/d85/renderer_8h.html#a2b82366dc421b3e80aace49f3ae8639a">ARC_Renderer</a> *renderer, <a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a> *renderBounds);</div>
|
||
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
|
||
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="../../d9/d53/spritesheet_8h.html#a87bd15ebf4a1ebebe8f8033dd55c0142"> 22</a></span><a class="code hl_struct" href="../../d2/d9d/structARC__Point.html">ARC_Point</a> <a class="code hl_function" href="../../d9/d53/spritesheet_8h.html#a87bd15ebf4a1ebebe8f8033dd55c0142">ARC_Spritesheet_GetSize</a>(<a class="code hl_typedef" href="../../d9/d53/spritesheet_8h.html#a1e01dfc3d163e82e7d00d039f0e0a82c">ARC_Spritesheet</a> *spritesheet);</div>
|
||
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="../../d9/d53/spritesheet_8h.html#a6881e1db0e3ccf7aec5b97d59cc558c6"> 23</a></span>uint32_t *<a class="code hl_function" href="../../d9/d53/spritesheet_8h.html#a6881e1db0e3ccf7aec5b97d59cc558c6">ARC_Spritesheet_GetTileSize</a>(<a class="code hl_typedef" href="../../d9/d53/spritesheet_8h.html#a1e01dfc3d163e82e7d00d039f0e0a82c">ARC_Spritesheet</a> *spritesheet);</div>
|
||
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
||
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#ifdef __cplusplus</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">#endif</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">#endif </span><span class="comment">// !ARC_GRAPHICS_SPRITESHEET_H_</span></div>
|
||
|
|
<div class="ttc" id="amath_2rectangle_8h_html"><div class="ttname"><a href="../../d2/d14/math_2rectangle_8h.html">rectangle.h</a></div></div>
|
||
|
|
<div class="ttc" id="apoint_8h_html"><div class="ttname"><a href="../../d2/d91/point_8h.html">point.h</a></div></div>
|
||
|
|
<div class="ttc" id="arenderer_8h_html"><div class="ttname"><a href="../../d6/d85/renderer_8h.html">renderer.h</a></div></div>
|
||
|
|
<div class="ttc" id="arenderer_8h_html_a2b82366dc421b3e80aace49f3ae8639a"><div class="ttname"><a href="../../d6/d85/renderer_8h.html#a2b82366dc421b3e80aace49f3ae8639a">ARC_Renderer</a></div><div class="ttdeci">struct ARC_RendererType ARC_Renderer</div><div class="ttdef"><b>Definition</b> <a href="../../d6/d85/renderer_8h_source.html#l00016">renderer.h:16</a></div></div>
|
||
|
|
<div class="ttc" id="aspritesheet_8h_html_a07d3eb2716f237551fb29dc425a14870"><div class="ttname"><a href="../../d9/d53/spritesheet_8h.html#a07d3eb2716f237551fb29dc425a14870">ARC_Spritesheet_CreateFromFile</a></div><div class="ttdeci">void ARC_Spritesheet_CreateFromFile(ARC_Spritesheet **spritesheet, ARC_Renderer *renderer, ARC_String *path)</div></div>
|
||
|
|
<div class="ttc" id="aspritesheet_8h_html_a1e01dfc3d163e82e7d00d039f0e0a82c"><div class="ttname"><a href="../../d9/d53/spritesheet_8h.html#a1e01dfc3d163e82e7d00d039f0e0a82c">ARC_Spritesheet</a></div><div class="ttdeci">struct ARC_Spritesheet ARC_Spritesheet</div><div class="ttdef"><b>Definition</b> <a href="#l00014">spritesheet.h:14</a></div></div>
|
||
|
|
<div class="ttc" id="aspritesheet_8h_html_a6881e1db0e3ccf7aec5b97d59cc558c6"><div class="ttname"><a href="../../d9/d53/spritesheet_8h.html#a6881e1db0e3ccf7aec5b97d59cc558c6">ARC_Spritesheet_GetTileSize</a></div><div class="ttdeci">uint32_t * ARC_Spritesheet_GetTileSize(ARC_Spritesheet *spritesheet)</div></div>
|
||
|
|
<div class="ttc" id="aspritesheet_8h_html_a87bd15ebf4a1ebebe8f8033dd55c0142"><div class="ttname"><a href="../../d9/d53/spritesheet_8h.html#a87bd15ebf4a1ebebe8f8033dd55c0142">ARC_Spritesheet_GetSize</a></div><div class="ttdeci">ARC_Point ARC_Spritesheet_GetSize(ARC_Spritesheet *spritesheet)</div></div>
|
||
|
|
<div class="ttc" id="aspritesheet_8h_html_ab2943ba8a63fa94ad9ddff7ecc3b2dc7"><div class="ttname"><a href="../../d9/d53/spritesheet_8h.html#ab2943ba8a63fa94ad9ddff7ecc3b2dc7">ARC_Spritesheet_RenderArea</a></div><div class="ttdeci">void ARC_Spritesheet_RenderArea(ARC_Spritesheet *spritesheet, ARC_Rect *sheetBounds, ARC_Renderer *renderer, ARC_Rect *renderBounds)</div></div>
|
||
|
|
<div class="ttc" id="aspritesheet_8h_html_abef4c60c51ed55e11b67c33073092811"><div class="ttname"><a href="../../d9/d53/spritesheet_8h.html#abef4c60c51ed55e11b67c33073092811">ARC_Spritesheet_Destroy</a></div><div class="ttdeci">void ARC_Spritesheet_Destroy(ARC_Spritesheet *spritesheet)</div></div>
|
||
|
|
<div class="ttc" id="astring_8h_html"><div class="ttname"><a href="../../da/d66/string_8h.html">string.h</a></div></div>
|
||
|
|
<div class="ttc" id="astructARC__Point_html"><div class="ttname"><a href="../../d2/d9d/structARC__Point.html">ARC_Point</a></div><div class="ttdef"><b>Definition</b> <a href="../../d2/d91/point_8h_source.html#l00010">point.h:10</a></div></div>
|
||
|
|
<div class="ttc" id="astructARC__Rect_html"><div class="ttname"><a href="../../d0/d18/structARC__Rect.html">ARC_Rect</a></div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00012">rectangle.h:12</a></div></div>
|
||
|
|
<div class="ttc" id="astructARC__String_html"><div class="ttname"><a href="../../df/d06/structARC__String.html">ARC_String</a></div><div class="ttdoc">substring position within a string</div><div class="ttdef"><b>Definition</b> <a href="../../da/d66/string_8h_source.html#l00014">string.h:14</a></div></div>
|
||
|
|
</div><!-- fragment --></div><!-- contents -->
|
||
|
|
</div><!-- doc-content -->
|
||
|
|
<!-- HTML footer for doxygen 1.9.2-->
|
||
|
|
<!-- start footer part -->
|
||
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||
|
|
<ul><li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_8698ff38f6ae643760cdad826b9d4736.html">arc</a></li><li class="navelem"><a class="el" href="../../dir_169ca87d8ac185e5b51c45f4a68386c0.html">graphics</a></li><li class="navelem"><a class="el" href="../../d9/d53/spritesheet_8h.html">spritesheet.h</a></li></ul>
|
||
|
|
</div>
|
||
|
|
<script type="text/javascript">
|
||
|
|
// script for doxygen 1.9.1
|
||
|
|
$(function() {
|
||
|
|
toggleButton = document.createElement('doxygen-awesome-dark-mode-toggle')
|
||
|
|
toggleButton.title = "Toggle Light/Dark Mode"
|
||
|
|
$(document).ready(function(){
|
||
|
|
document.getElementById("MSearchBox").parentNode.appendChild(toggleButton)
|
||
|
|
})
|
||
|
|
$(window).resize(function(){
|
||
|
|
document.getElementById("MSearchBox").parentNode.appendChild(toggleButton)
|
||
|
|
})
|
||
|
|
})
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|