178 lines
10 KiB
HTML
178 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<title>ewol Library</title>
|
|
<link rel="stylesheet" href="base.css">
|
|
<link rel="stylesheet" href="menu.css">
|
|
</head>
|
|
<body>
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="container">
|
|
<h1><a href="index.html">ewol library</a></h1>
|
|
<h4><a href="http://github.com/heeroyui/ewol/"> [ sources ]</a></h4>
|
|
<h3>API:</h3> <div id="menu">
|
|
<ul class="niveau1">
|
|
<li class="sousmenu"><a href="namespace_ewol.html">ewol</a>
|
|
<ul class="niveau2">
|
|
<li><a href="namespace_ewol__key.html">key</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__widget.html">widget</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__openGL.html">openGL</a>
|
|
</li>
|
|
<li class="sousmenu"><a href="namespace_ewol__context.html">context</a>
|
|
<ul class="niveau3">
|
|
<li><a href="namespace_ewol__context__clipBoard.html">clipBoard</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="sousmenu"><a href="namespace_ewol__audio.html">audio</a>
|
|
<ul class="niveau3">
|
|
<li><a href="namespace_ewol__audio__wav.html">wav</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__audio__music.html">music</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__audio__effects.html">effects</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="namespace_ewol__portAudio.html">portAudio</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__compositing.html">compositing</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__object.html">object</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__resource.html">resource</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__font.html">font</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__event.html">event</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="namespace_MacOs.html">MacOs</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<h3>Documentation:</h3><div id="menu">
|
|
<ul class="niveau1"><li><a href="001_bases.html">bases</a></li>
|
|
</ul></div>
|
|
<h3>Tutorials:</h3><div id="menu">
|
|
<ul class="niveau1"><li><a href="tutorial_000_Build.html">Build</a></li>
|
|
</ul><ul class="niveau1"><li><a href="tutorial_001_HelloWord.html">HelloWord</a></li>
|
|
</ul></div>
|
|
<br/><h3>Associate libraries:</h3><div id="menu">
|
|
<ul class="niveau1"><li><a href="../ejson/index.html">ejson</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../egami/index.html">egami</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../ege/index.html">ege</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../esvg/index.html">esvg</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../etk/index.html">etk</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../exml/index.html">exml</a></li>
|
|
</ul></div>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
<div class="container" id="content">
|
|
<h1>class: ewol::resource::Manager</h1><hr/><h2>Description:</h2>
|
|
|
|
<br/><br/>
|
|
<h2>Constructor and Destructor:</h2>
|
|
<pre>
|
|
+ <a class="code-function" href="#5484">Manager</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <a class="code-function" href="#5486">~Manager</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
<br/>
|
|
<h2>Synopsis:</h2>
|
|
<pre>
|
|
+ <span class="code-type" >void</span> <a class="code-function" href="#5488">unInit</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#5490">display</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#5492">reLoadResources</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#5494">update</a> (<a class="code-type" href="class_ewol__Resource.html">ewol::Resource</a>* <span class="code-argument">_object</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#5496">updateContext</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#5498">contextHasBeenDestroyed</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <a class="code-type" href="class_ewol__Resource.html">ewol::Resource</a>* <a class="code-function" href="#5500">localKeep</a> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_filename</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#5502">localAdd</a> (<a class="code-type" href="class_ewol__Resource.html">ewol::Resource</a>* <span class="code-argument">_object</span>);<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#5504">release</a> (<a class="code-type" href="class_ewol__Resource.html">ewol::Resource</a>* & <span class="code-argument">_object</span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <a class="code-function" href="#5506">onObjectRemove</a> (<a class="code-type" href="class_ewol__Object.html">ewol::Object</a>* <span class="code-argument">_removeObject</span>);<br/></pre>
|
|
<br/>
|
|
<h2>Detail:</h2>
|
|
<a id="5484"/><a id="5486"/><h3>Manager</h3><pre>
|
|
+ <span class="code-function">Manager</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
initialize the internal variable<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="5488"/><h3>~Manager</h3><pre>
|
|
+ <span class="code-function">~Manager</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Uninitiamize the resource manager, free all resources previously requested<br/><b>Note:</b> when not free == > generate warning, because the segfault can appear after...<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="5490"/><h3>unInit</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">unInit</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
remove all resources (un-init) out of the destructor (due to the system implementation)<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="5492"/><h3>display</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">display</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
display in the log all the resources loaded ...<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="5494"/><h3>reLoadResources</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">reLoadResources</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Reload all resources from files, and send there in openGL card if needed.<br/><b>Note:</b> If file is reference at THEME:XXX:filename if the Theme change the file will reload the newOne<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="5496"/><h3>update</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">update</span> (<a class="code-type" href="class_ewol__Resource.html">ewol::Resource</a>* <span class="code-argument">_object</span>);<br/></pre>
|
|
Call by the system to send all the needed data on the graphic card chen they change ...<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_object</span> </td><td> The resources that might be updated</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="5498"/><h3>updateContext</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">updateContext</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Call by the system chen the openGL Context has been unexpectially removed == > This reload all the texture, VBO and other ....<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="5500"/><h3>contextHasBeenDestroyed</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">contextHasBeenDestroyed</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
This is to inform the resources manager that we have no more openGl context ...<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="5502"/><h3>localKeep</h3><pre>
|
|
+ <a class="code-type" href="class_ewol__Resource.html">ewol::Resource</a>* <span class="code-function">localKeep</span> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_filename</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="5504"/><h3>localAdd</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">localAdd</span> (<a class="code-type" href="class_ewol__Resource.html">ewol::Resource</a>* <span class="code-argument">_object</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="5506"/><h3>release</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">release</span> (<a class="code-type" href="class_ewol__Resource.html">ewol::Resource</a>* & <span class="code-argument">_object</span>);<br/></pre>
|
|
release a resources and free it if the Last release is call.<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input] [output]:</b></td><td><span class="code-argument">_object</span> </td><td> element to realease == > is return at NULL value.</td></tr>
|
|
<tr><td><b>Return: </b></td><td></td><td>true, if element is removed, and false for just decreasing counter</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<h3>onObjectRemove</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <span class="code-function">onObjectRemove</span> (<a class="code-type" href="class_ewol__Object.html">ewol::Object</a>* <span class="code-argument">_removeObject</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
</div>
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
ga('create', 'UA-46753803-1', 'heeroyui.github.io');
|
|
ga('send', 'pageview');
|
|
</script>
|
|
</body>
|
|
</html>
|