pppi-rpg-game/program/html/resource__manager_8h_source.html

89 lines
6.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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&amp;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&amp;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>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="class_resource_manager.html"> 4</a></span>&#160;<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>&#160;<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>&#160; <span class="keywordtype">void</span> <a class="code" href="class_resource_manager.html#abda6ed5275971daf95188b364f697624">loadResource</a>(<span class="keyword">const</span> std::string&amp; resourcePath);</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ResourceType&gt;</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_resource_manager.html#a6e19865e0c7f5db8ec2068802092fe9b"> 19</a></span>&#160; ResourceType <a class="code" href="class_resource_manager.html#a6e19865e0c7f5db8ec2068802092fe9b">getResource</a>(<span class="keyword">const</span> std::string&amp; resourceName);</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_resource_manager.html#ac8e6c416a491f6fcc78ed682313feb4a"> 24</a></span>&#160; <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>&#160;};</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 &amp;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 &amp;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>
Создано системой&#160;<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>