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

165 lines
8.6 KiB
HTML
Raw Permalink 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: Класс ResourceManager</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>
<!-- 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><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Открытые члены</a> &#124;
<a href="class_resource_manager-members.html">Полный список членов класса</a> </div>
<div class="headertitle">
<div class="title">Класс ResourceManager</div> </div>
</div><!--header-->
<div class="contents">
<p>Класс <a class="el" href="class_resource_manager.html" title="Класс ResourceManager управляет загрузкой и выгрузкой игровых ресурсов.">ResourceManager</a> управляет загрузкой и выгрузкой игровых ресурсов.
<a href="class_resource_manager.html#details">Подробнее...</a></p>
<p><code>#include &lt;<a class="el" href="resource__manager_8h_source.html">resource_manager.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Открытые члены</h2></td></tr>
<tr class="memitem:abda6ed5275971daf95188b364f697624"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_resource_manager.html#abda6ed5275971daf95188b364f697624">loadResource</a> (const std::string &amp;resourcePath)</td></tr>
<tr class="memdesc:abda6ed5275971daf95188b364f697624"><td class="mdescLeft">&#160;</td><td class="mdescRight">Загружает ресурс (текстура, модель, звук и т.д.). <a href="class_resource_manager.html#abda6ed5275971daf95188b364f697624">Подробнее...</a><br /></td></tr>
<tr class="separator:abda6ed5275971daf95188b364f697624"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e19865e0c7f5db8ec2068802092fe9b"><td class="memTemplParams" colspan="2">template&lt;typename ResourceType &gt; </td></tr>
<tr class="memitem:a6e19865e0c7f5db8ec2068802092fe9b"><td class="memTemplItemLeft" align="right" valign="top">ResourceType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_resource_manager.html#a6e19865e0c7f5db8ec2068802092fe9b">getResource</a> (const std::string &amp;resourceName)</td></tr>
<tr class="memdesc:a6e19865e0c7f5db8ec2068802092fe9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает загруженный ресурс. <a href="class_resource_manager.html#a6e19865e0c7f5db8ec2068802092fe9b">Подробнее...</a><br /></td></tr>
<tr class="separator:a6e19865e0c7f5db8ec2068802092fe9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8e6c416a491f6fcc78ed682313feb4a"><td class="memItemLeft" align="right" valign="top"><a id="ac8e6c416a491f6fcc78ed682313feb4a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_resource_manager.html#ac8e6c416a491f6fcc78ed682313feb4a">unloadAllResources</a> ()</td></tr>
<tr class="memdesc:ac8e6c416a491f6fcc78ed682313feb4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Освобождает ресурсы. <br /></td></tr>
<tr class="separator:ac8e6c416a491f6fcc78ed682313feb4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Подробное описание</h2>
<div class="textblock"><p>Класс <a class="el" href="class_resource_manager.html" title="Класс ResourceManager управляет загрузкой и выгрузкой игровых ресурсов.">ResourceManager</a> управляет загрузкой и выгрузкой игровых ресурсов. </p>
</div><h2 class="groupheader">Методы</h2>
<a id="a6e19865e0c7f5db8ec2068802092fe9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e19865e0c7f5db8ec2068802092fe9b">&#9670;&nbsp;</a></span>getResource()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ResourceType &gt; </div>
<table class="memname">
<tr>
<td class="memname">ResourceType ResourceManager::getResource </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>resourceName</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Возвращает загруженный ресурс. </p>
<dl class="tparams"><dt>Параметры шаблона</dt><dd>
<table class="tparams">
<tr><td class="paramname">ResourceType</td><td>Тип возвращаемого ресурса. </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Аргументы</dt><dd>
<table class="params">
<tr><td class="paramname">resourceName</td><td>Имя ресурса. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Возвращает</dt><dd>Загруженный ресурс заданного типа. </dd></dl>
</div>
</div>
<a id="abda6ed5275971daf95188b364f697624"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abda6ed5275971daf95188b364f697624">&#9670;&nbsp;</a></span>loadResource()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ResourceManager::loadResource </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>resourcePath</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Загружает ресурс (текстура, модель, звук и т.д.). </p>
<dl class="params"><dt>Аргументы</dt><dd>
<table class="params">
<tr><td class="paramname">resourcePath</td><td>Путь к ресурсу. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>Объявления и описания членов класса находятся в файле:<ul>
<li><a class="el" href="resource__manager_8h_source.html">resource_manager.h</a></li>
</ul>
</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>