mirror of
https://github.com/Maks1mS/pppi-rpg-game.git
synced 2024-12-23 22:32:59 +03:00
89 lines
6.3 KiB
HTML
89 lines
6.3 KiB
HTML
<!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>PPPI RPG Game: Исходный файл resource_manager.h</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">PPPI RPG Game
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<!-- end header part -->
|
||
<!-- Создано системой 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,'Поиск','.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','Поиск');
|
||
$(document).ready(function() { init_search(); });
|
||
});
|
||
/* @license-end */</script>
|
||
<div id="main-nav"></div>
|
||
</div><!-- top -->
|
||
<!-- 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 class="header">
|
||
<div class="headertitle">
|
||
<div class="title">resource_manager.h</div> </div>
|
||
</div><!--header-->
|
||
<div class="contents">
|
||
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
|
||
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="class_resource_manager.html"> 4</a></span> <span class="keyword">class </span><a class="code" href="class_resource_manager.html">ResourceManager</a> {</div>
|
||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="keyword">public</span>:</div>
|
||
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="class_resource_manager.html#abda6ed5275971daf95188b364f697624"> 10</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_resource_manager.html#abda6ed5275971daf95188b364f697624">loadResource</a>(<span class="keyword">const</span> std::string& resourcePath);</div>
|
||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> ResourceType></div>
|
||
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_resource_manager.html#a6e19865e0c7f5db8ec2068802092fe9b"> 19</a></span>  ResourceType <a class="code" href="class_resource_manager.html#a6e19865e0c7f5db8ec2068802092fe9b">getResource</a>(<span class="keyword">const</span> std::string& resourceName);</div>
|
||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
|
||
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_resource_manager.html#ac8e6c416a491f6fcc78ed682313feb4a"> 24</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_resource_manager.html#ac8e6c416a491f6fcc78ed682313feb4a">unloadAllResources</a>();</div>
|
||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> };</div>
|
||
<div class="ttc" id="aclass_resource_manager_html"><div class="ttname"><a href="class_resource_manager.html">ResourceManager</a></div><div class="ttdoc">Класс ResourceManager управляет загрузкой и выгрузкой игровых ресурсов.</div><div class="ttdef"><b>Definition:</b> resource_manager.h:4</div></div>
|
||
<div class="ttc" id="aclass_resource_manager_html_a6e19865e0c7f5db8ec2068802092fe9b"><div class="ttname"><a href="class_resource_manager.html#a6e19865e0c7f5db8ec2068802092fe9b">ResourceManager::getResource</a></div><div class="ttdeci">ResourceType getResource(const std::string &resourceName)</div><div class="ttdoc">Возвращает загруженный ресурс.</div></div>
|
||
<div class="ttc" id="aclass_resource_manager_html_abda6ed5275971daf95188b364f697624"><div class="ttname"><a href="class_resource_manager.html#abda6ed5275971daf95188b364f697624">ResourceManager::loadResource</a></div><div class="ttdeci">void loadResource(const std::string &resourcePath)</div><div class="ttdoc">Загружает ресурс (текстура, модель, звук и т.д.).</div></div>
|
||
<div class="ttc" id="aclass_resource_manager_html_ac8e6c416a491f6fcc78ed682313feb4a"><div class="ttname"><a href="class_resource_manager.html#ac8e6c416a491f6fcc78ed682313feb4a">ResourceManager::unloadAllResources</a></div><div class="ttdeci">void unloadAllResources()</div><div class="ttdoc">Освобождает ресурсы.</div></div>
|
||
</div><!-- fragment --></div><!-- contents -->
|
||
<!-- start footer part -->
|
||
<hr class="footer"/><address class="footer"><small>
|
||
Создано системой <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>
|