source: OGRE/trunk/ogrenew/Docs/api/html/classOgre_1_1ResourceManager.html @ 692

Revision 692, 91.4 KB checked in by mattausch, 18 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1<html>
2<head>
3<title>Ogre::ResourceManager class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4<link type="text/css" rel="stylesheet" href="style.css">
5</head>
6
7<body>
8<!-- Generated by Doxygen 1.3.6 -->
9<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
10<h1>Ogre::ResourceManager Class Reference</h1>Defines a generic resource handler. 
11<a href="#_details">More...</a>
12<p>
13<code>#include &lt;<a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>&gt;</code>
14<p>
15<p>Inheritance diagram for Ogre::ResourceManager:
16<p><center><img src="classOgre_1_1ResourceManager.png" usemap="#Ogre::ResourceManager_map" border="0" alt=""></center>
17<map name="Ogre::ResourceManager_map">
18<area href="classOgre_1_1ScriptLoader.html" alt="Ogre::ScriptLoader" shape="rect" coords="0,0,226,24">
19<area href="classOgre_1_1BspResourceManager.html" alt="Ogre::BspResourceManager" shape="rect" coords="236,112,462,136">
20<area href="classOgre_1_1CompositorManager.html" alt="Ogre::CompositorManager" shape="rect" coords="236,168,462,192">
21<area href="classOgre_1_1FontManager.html" alt="Ogre::FontManager" shape="rect" coords="236,224,462,248">
22<area href="classOgre_1_1GpuProgramManager.html" alt="Ogre::GpuProgramManager" shape="rect" coords="236,280,462,304">
23<area href="classOgre_1_1HighLevelGpuProgramManager.html" alt="Ogre::HighLevelGpuProgramManager" shape="rect" coords="236,336,462,360">
24<area href="classOgre_1_1MaterialManager.html" alt="Ogre::MaterialManager" shape="rect" coords="236,392,462,416">
25<area href="classOgre_1_1MeshManager.html" alt="Ogre::MeshManager" shape="rect" coords="236,448,462,472">
26<area href="classOgre_1_1SkeletonManager.html" alt="Ogre::SkeletonManager" shape="rect" coords="236,504,462,528">
27<area href="classOgre_1_1TextureManager.html" alt="Ogre::TextureManager" shape="rect" coords="236,560,462,584">
28</map>
29<a href="classOgre_1_1ResourceManager-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
30<tr><td></td></tr>
31<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
32<tr><td class="memItemLeft" nowrap align=right valign=top>typedef HashMap&lt; <a class="el" href="namespaceOgre.html#a471">String</a>, <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw0">ResourceMap</a></td></tr>
33
34<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::map&lt; <a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>,<br>
35 <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw1">ResourceHandleMap</a></td></tr>
36
37<tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="classOgre_1_1MapIterator.html">MapIterator</a>&lt; <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw1">ResourceHandleMap</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw2">ResourceMapIterator</a></td></tr>
38
39<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
40<tr><td class="memItemLeft" nowrap align=right valign=top>OGRE_AUTO_MUTEX&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1ResourceManagera0">ResourceManager</a> ()</td></tr>
41
42<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1ResourceManagera1">~ResourceManager</a> ()</td></tr>
43
44<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera14">create</a> (const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;name, const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;group, bool isManual=false, <a class="el" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a> *loader=0, const <a class="el" href="namespaceOgre.html#a76">NameValuePairList</a> *createParams=0)</td></tr>
45
46<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new blank resource, but does not immediately load it.  <a href="#Ogre_1_1TextureManagera14"></a><br><br></td></tr>
47<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera15">setMemoryBudget</a> (size_t bytes)</td></tr>
48
49<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set a limit on the amount of memory this resource handler may use.  <a href="#Ogre_1_1TextureManagera15"></a><br><br></td></tr>
50<tr><td class="memItemLeft" nowrap align=right valign=top>virtual size_t&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera16">getMemoryBudget</a> (void) const </td></tr>
51
52<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the limit on the amount of memory this resource handler may use.  <a href="#Ogre_1_1TextureManagera16"></a><br><br></td></tr>
53<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera17">unload</a> (const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;name)</td></tr>
54
55<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unloads a single resource by name.  <a href="#Ogre_1_1TextureManagera17"></a><br><br></td></tr>
56<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera18">unload</a> (<a class="el" href="namespaceOgre.html#a529">ResourceHandle</a> handle)</td></tr>
57
58<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unloads a single resource by handle.  <a href="#Ogre_1_1TextureManagera18"></a><br><br></td></tr>
59<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera19">unloadAll</a> (bool reloadableOnly=true)</td></tr>
60
61<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unloads all resources.  <a href="#Ogre_1_1TextureManagera19"></a><br><br></td></tr>
62<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera20">reloadAll</a> (bool reloadableOnly=true)</td></tr>
63
64<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Caused all currently loaded resources to be reloaded.  <a href="#Ogre_1_1TextureManagera20"></a><br><br></td></tr>
65<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera21">unloadUnreferencedResources</a> (bool reloadableOnly=true)</td></tr>
66
67<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unload all resources which are not referenced by any other object.  <a href="#Ogre_1_1TextureManagera21"></a><br><br></td></tr>
68<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera22">reloadUnreferencedResources</a> (bool reloadableOnly=true)</td></tr>
69
70<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Caused all currently loaded but not referenced by any other object resources to be reloaded.  <a href="#Ogre_1_1TextureManagera22"></a><br><br></td></tr>
71<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera23">remove</a> (<a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &amp;r)</td></tr>
72
73<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove a single resource.  <a href="#Ogre_1_1TextureManagera23"></a><br><br></td></tr>
74<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera24">remove</a> (const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;name)</td></tr>
75
76<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove a single resource by name.  <a href="#Ogre_1_1TextureManagera24"></a><br><br></td></tr>
77<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera25">remove</a> (<a class="el" href="namespaceOgre.html#a529">ResourceHandle</a> handle)</td></tr>
78
79<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove a single resource by handle.  <a href="#Ogre_1_1TextureManagera25"></a><br><br></td></tr>
80<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera26">removeAll</a> (void)</td></tr>
81
82<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes all resources.  <a href="#Ogre_1_1TextureManagera26"></a><br><br></td></tr>
83<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera27">getByName</a> (const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;name)</td></tr>
84
85<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves a pointer to a resource by name, or null if the resource does not exist.  <a href="#Ogre_1_1TextureManagera27"></a><br><br></td></tr>
86<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera28">getByHandle</a> (<a class="el" href="namespaceOgre.html#a529">ResourceHandle</a> handle)</td></tr>
87
88<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves a pointer to a resource by handle, or null if the resource does not exist.  <a href="#Ogre_1_1TextureManagera28"></a><br><br></td></tr>
89<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera29">resourceExists</a> (const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;name)</td></tr>
90
91<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether the named resource exists in this manager.  <a href="#Ogre_1_1TextureManagera29"></a><br><br></td></tr>
92<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera30">resourceExists</a> (<a class="el" href="namespaceOgre.html#a529">ResourceHandle</a> handle)</td></tr>
93
94<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether a resource with the given handle exists in this manager.  <a href="#Ogre_1_1TextureManagera30"></a><br><br></td></tr>
95<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera31">_notifyResourceTouched</a> (<a class="el" href="classOgre_1_1Resource.html">Resource</a> *res)</td></tr>
96
97<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Notify this manager that a resource which it manages has been 'touched', ie used.  <a href="#Ogre_1_1TextureManagera31"></a><br><br></td></tr>
98<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera32">_notifyResourceLoaded</a> (<a class="el" href="classOgre_1_1Resource.html">Resource</a> *res)</td></tr>
99
100<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Notify this manager that a resource which it manages has been loaded.  <a href="#Ogre_1_1TextureManagera32"></a><br><br></td></tr>
101<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera33">_notifyResourceUnloaded</a> (<a class="el" href="classOgre_1_1Resource.html">Resource</a> *res)</td></tr>
102
103<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Notify this manager that a resource which it manages has been unloaded.  <a href="#Ogre_1_1TextureManagera33"></a><br><br></td></tr>
104<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera34">load</a> (const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;name, const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;group, bool isManual=false, <a class="el" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a> *loader=0, const <a class="el" href="namespaceOgre.html#a76">NameValuePairList</a> *loadParams=0)</td></tr>
105
106<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generic load method, used to create a <a class="el" href="classOgre_1_1Resource.html">Resource</a> specific to this <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a> without using one of the specialised 'load' methods (containing per-Resource-type parameters).  <a href="#Ogre_1_1TextureManagera34"></a><br><br></td></tr>
107<tr><td class="memItemLeft" nowrap align=right valign=top>virtual const <a class="el" href="namespaceOgre.html#a580">StringVector</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera35">getScriptPatterns</a> (void) const </td></tr>
108
109<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the file patterns which should be used to find scripts for this <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a>.  <a href="#Ogre_1_1TextureManagera35"></a><br><br></td></tr>
110<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera36">parseScript</a> (<a class="el" href="classOgre_1_1SharedPtr.html">DataStreamPtr</a> &amp;stream, const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;groupName)</td></tr>
111
112<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the definition of a set of resources from a script file.  <a href="#Ogre_1_1TextureManagera36"></a><br><br></td></tr>
113<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera37">getLoadingOrder</a> (void) const </td></tr>
114
115<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the relative loading order of resources of this type.  <a href="#Ogre_1_1TextureManagera37"></a><br><br></td></tr>
116<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera38">getResourceType</a> (void) const </td></tr>
117
118<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets a string identifying the type of resource this manager handles.  <a href="#Ogre_1_1TextureManagera38"></a><br><br></td></tr>
119<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1MapIterator.html">ResourceMapIterator</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera39">getResourceIterator</a> (void)</td></tr>
120
121<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns an iterator over all resources in this manager.  <a href="#Ogre_1_1TextureManagera39"></a><br><br></td></tr>
122<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
123<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerb0">getNextHandle</a> (void)</td></tr>
124
125<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocates the next handle.  <a href="#Ogre_1_1TextureManagerb0"></a><br><br></td></tr>
126<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classOgre_1_1Resource.html">Resource</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerb1">createImpl</a> (const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;name, <a class="el" href="namespaceOgre.html#a529">ResourceHandle</a> handle, const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;group, bool isManual, <a class="el" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a> *loader, const <a class="el" href="namespaceOgre.html#a76">NameValuePairList</a> *createParams)=0</td></tr>
127
128<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new resource instance compatible with this manager (no custom parameters are populated at this point).  <a href="#Ogre_1_1TextureManagerb1"></a><br><br></td></tr>
129<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerb2">addImpl</a> (<a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &amp;res)</td></tr>
130
131<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a newly created resource to the manager (note weak reference).  <a href="#Ogre_1_1TextureManagerb2"></a><br><br></td></tr>
132<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerb3">removeImpl</a> (<a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &amp;res)</td></tr>
133
134<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove a resource from this manager; remove it from the lists.  <a href="#Ogre_1_1TextureManagerb3"></a><br><br></td></tr>
135<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerb4">checkUsage</a> (void)</td></tr>
136
137<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks memory usage and pages out if required.  <a href="#Ogre_1_1TextureManagerb4"></a><br><br></td></tr>
138<tr><td class="memItemLeft" nowrap align=right valign=top>virtual size_t&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerb5">getMemoryUsage</a> (void) const </td></tr>
139
140<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the current memory usage, in bytes.  <a href="#Ogre_1_1TextureManagerb5"></a><br><br></td></tr>
141<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
142<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw1">ResourceHandleMap</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp2">mResourcesByHandle</a></td></tr>
143
144<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw0">ResourceMap</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp3">mResources</a></td></tr>
145
146<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp4">mNextHandle</a></td></tr>
147
148<tr><td class="memItemLeft" nowrap align=right valign=top>size_t&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp5">mMemoryBudget</a></td></tr>
149
150<tr><td class="memItemLeft" nowrap align=right valign=top>size_t&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp6">mMemoryUsage</a></td></tr>
151
152<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a580">StringVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp7">mScriptPatterns</a></td></tr>
153
154<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Patterns to use to look for scripts if supported (e.g. *.overlay).  <a href="#Ogre_1_1TextureManagerp7"></a><br><br></td></tr>
155<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp8">mLoadOrder</a></td></tr>
156
157<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Loading order relative to other managers, higher is later.  <a href="#Ogre_1_1TextureManagerp8"></a><br><br></td></tr>
158<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a471">String</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp9">mResourceType</a></td></tr>
159
160<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">String identifying the resource type this manager handles.  <a href="#Ogre_1_1TextureManagerp9"></a><br><br></td></tr>
161</table>
162<hr><a name="_details"></a><h2>Detailed Description</h2>
163Defines a generic resource handler.
164<p>
165<dl compact><dt><b>Remarks:</b></dt><dd>A resource manager is responsible for managing a pool of resources of a particular type. It must index them, look them up, load and destroy them. It may also need to stay within a defined memory budget, and temporaily unload some resources if it needs to to stay within this budget. </dd></dl>
166<dl compact><dt><b></b></dt><dd><a class="el" href="classOgre_1_1Resource.html">Resource</a> managers use a priority system to determine what can be unloaded, and a Least Recently Used (LRU) policy within resources of the same priority. </dd></dl>
167<dl compact><dt><b></b></dt><dd>Resources can be loaded using the generalised load interface, and they can be unloaded and removed. In addition, each subclass of <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a> will likely define custom 'load' methods which take explicit parameters depending on the kind of resource being created. </dd></dl>
168<dl compact><dt><b>Note:</b></dt><dd>Resources can be loaded and unloaded through the <a class="el" href="classOgre_1_1Resource.html">Resource</a> class, but they can only be removed (and thus eventually destroyed) using their parent <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a>. <p>
169If OGRE_THREAD_SUPPORT is 1, this class is thread-safe. </dd></dl>
170
171<p>
172
173<p>
174Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00064">64</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.<hr><h2>Member Typedef Documentation</h2>
175<a class="anchor" name="Ogre_1_1TextureManagerw1" doxytag="Ogre::ResourceManager::ResourceHandleMap" ></a><p>
176<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
177  <tr>
178    <td class="mdRow">
179      <table cellpadding="0" cellspacing="0" border="0">
180        <tr>
181          <td class="md" nowrap valign="top"> typedef std::map&lt;<a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>, <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&gt; <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw1">Ogre::ResourceManager::ResourceHandleMap</a>
182      </table>
183    </td>
184  </tr>
185</table>
186<table cellspacing=5 cellpadding=0 border=0>
187  <tr>
188    <td>
189      &nbsp;
190    </td>
191    <td>
192
193<p>
194
195<p>
196Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00387">387</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
197  </tr>
198</table>
199<a class="anchor" name="Ogre_1_1TextureManagerw0" doxytag="Ogre::ResourceManager::ResourceMap" ></a><p>
200<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
201  <tr>
202    <td class="mdRow">
203      <table cellpadding="0" cellspacing="0" border="0">
204        <tr>
205          <td class="md" nowrap valign="top"> typedef HashMap&lt; <a class="el" href="namespaceOgre.html#a471">String</a>, <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &gt; <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw0">Ogre::ResourceManager::ResourceMap</a>
206      </table>
207    </td>
208  </tr>
209</table>
210<table cellspacing=5 cellpadding=0 border=0>
211  <tr>
212    <td>
213      &nbsp;
214    </td>
215    <td>
216
217<p>
218
219<p>
220Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00386">386</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
221  </tr>
222</table>
223<a class="anchor" name="Ogre_1_1TextureManagerw2" doxytag="Ogre::ResourceManager::ResourceMapIterator" ></a><p>
224<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
225  <tr>
226    <td class="mdRow">
227      <table cellpadding="0" cellspacing="0" border="0">
228        <tr>
229          <td class="md" nowrap valign="top"> typedef <a class="el" href="classOgre_1_1MapIterator.html">MapIterator</a>&lt;<a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw1">ResourceHandleMap</a>&gt; <a class="el" href="classOgre_1_1MapIterator.html">Ogre::ResourceManager::ResourceMapIterator</a>
230      </table>
231    </td>
232  </tr>
233</table>
234<table cellspacing=5 cellpadding=0 border=0>
235  <tr>
236    <td>
237      &nbsp;
238    </td>
239    <td>
240
241<p>
242
243<p>
244Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00405">405</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.
245<p>
246Referenced by <a class="el" href="OgreResourceManager_8h-source.html#l00410">getResourceIterator()</a>.    </td>
247  </tr>
248</table>
249<hr><h2>Constructor &amp; Destructor Documentation</h2>
250<a class="anchor" name="Ogre_1_1ResourceManagera0" doxytag="Ogre::ResourceManager::ResourceManager" ></a><p>
251<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
252  <tr>
253    <td class="mdRow">
254      <table cellpadding="0" cellspacing="0" border="0">
255        <tr>
256          <td class="md" nowrap valign="top"> OGRE_AUTO_MUTEX Ogre::ResourceManager::ResourceManager </td>
257          <td class="md" valign="top">(&nbsp;</td>
258          <td class="mdname1" valign="top" nowrap>          </td>
259          <td class="md" valign="top">&nbsp;)&nbsp;</td>
260          <td class="md" nowrap></td>
261        </tr>
262
263      </table>
264    </td>
265  </tr>
266</table>
267<table cellspacing=5 cellpadding=0 border=0>
268  <tr>
269    <td>
270      &nbsp;
271    </td>
272    <td>
273
274<p>
275    </td>
276  </tr>
277</table>
278<a class="anchor" name="Ogre_1_1ResourceManagera1" doxytag="Ogre::ResourceManager::~ResourceManager" ></a><p>
279<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
280  <tr>
281    <td class="mdRow">
282      <table cellpadding="0" cellspacing="0" border="0">
283        <tr>
284          <td class="md" nowrap valign="top"> virtual Ogre::ResourceManager::~<a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a> </td>
285          <td class="md" valign="top">(&nbsp;</td>
286          <td class="mdname1" valign="top" nowrap>          </td>
287          <td class="md" valign="top">&nbsp;)&nbsp;</td>
288          <td class="md" nowrap><code> [virtual]</code></td>
289        </tr>
290
291      </table>
292    </td>
293  </tr>
294</table>
295<table cellspacing=5 cellpadding=0 border=0>
296  <tr>
297    <td>
298      &nbsp;
299    </td>
300    <td>
301
302<p>
303    </td>
304  </tr>
305</table>
306<hr><h2>Member Function Documentation</h2>
307<a class="anchor" name="Ogre_1_1TextureManagera32" doxytag="Ogre::ResourceManager::_notifyResourceLoaded" ></a><p>
308<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
309  <tr>
310    <td class="mdRow">
311      <table cellpadding="0" cellspacing="0" border="0">
312        <tr>
313          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::_notifyResourceLoaded </td>
314          <td class="md" valign="top">(&nbsp;</td>
315          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1Resource.html">Resource</a> *&nbsp;</td>
316          <td class="mdname1" valign="top" nowrap> <em>res</em>          </td>
317          <td class="md" valign="top">&nbsp;)&nbsp;</td>
318          <td class="md" nowrap><code> [virtual]</code></td>
319        </tr>
320
321      </table>
322    </td>
323  </tr>
324</table>
325<table cellspacing=5 cellpadding=0 border=0>
326  <tr>
327    <td>
328      &nbsp;
329    </td>
330    <td>
331
332<p>
333Notify this manager that a resource which it manages has been loaded.
334<p>
335    </td>
336  </tr>
337</table>
338<a class="anchor" name="Ogre_1_1TextureManagera31" doxytag="Ogre::ResourceManager::_notifyResourceTouched" ></a><p>
339<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
340  <tr>
341    <td class="mdRow">
342      <table cellpadding="0" cellspacing="0" border="0">
343        <tr>
344          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::_notifyResourceTouched </td>
345          <td class="md" valign="top">(&nbsp;</td>
346          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1Resource.html">Resource</a> *&nbsp;</td>
347          <td class="mdname1" valign="top" nowrap> <em>res</em>          </td>
348          <td class="md" valign="top">&nbsp;)&nbsp;</td>
349          <td class="md" nowrap><code> [virtual]</code></td>
350        </tr>
351
352      </table>
353    </td>
354  </tr>
355</table>
356<table cellspacing=5 cellpadding=0 border=0>
357  <tr>
358    <td>
359      &nbsp;
360    </td>
361    <td>
362
363<p>
364Notify this manager that a resource which it manages has been 'touched', ie used.
365<p>
366    </td>
367  </tr>
368</table>
369<a class="anchor" name="Ogre_1_1TextureManagera33" doxytag="Ogre::ResourceManager::_notifyResourceUnloaded" ></a><p>
370<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
371  <tr>
372    <td class="mdRow">
373      <table cellpadding="0" cellspacing="0" border="0">
374        <tr>
375          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::_notifyResourceUnloaded </td>
376          <td class="md" valign="top">(&nbsp;</td>
377          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1Resource.html">Resource</a> *&nbsp;</td>
378          <td class="mdname1" valign="top" nowrap> <em>res</em>          </td>
379          <td class="md" valign="top">&nbsp;)&nbsp;</td>
380          <td class="md" nowrap><code> [virtual]</code></td>
381        </tr>
382
383      </table>
384    </td>
385  </tr>
386</table>
387<table cellspacing=5 cellpadding=0 border=0>
388  <tr>
389    <td>
390      &nbsp;
391    </td>
392    <td>
393
394<p>
395Notify this manager that a resource which it manages has been unloaded.
396<p>
397    </td>
398  </tr>
399</table>
400<a class="anchor" name="Ogre_1_1TextureManagerb2" doxytag="Ogre::ResourceManager::addImpl" ></a><p>
401<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
402  <tr>
403    <td class="mdRow">
404      <table cellpadding="0" cellspacing="0" border="0">
405        <tr>
406          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::addImpl </td>
407          <td class="md" valign="top">(&nbsp;</td>
408          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &amp;&nbsp;</td>
409          <td class="mdname1" valign="top" nowrap> <em>res</em>          </td>
410          <td class="md" valign="top">&nbsp;)&nbsp;</td>
411          <td class="md" nowrap><code> [protected, virtual]</code></td>
412        </tr>
413
414      </table>
415    </td>
416  </tr>
417</table>
418<table cellspacing=5 cellpadding=0 border=0>
419  <tr>
420    <td>
421      &nbsp;
422    </td>
423    <td>
424
425<p>
426Add a newly created resource to the manager (note weak reference).
427<p>
428    </td>
429  </tr>
430</table>
431<a class="anchor" name="Ogre_1_1TextureManagerb4" doxytag="Ogre::ResourceManager::checkUsage" ></a><p>
432<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
433  <tr>
434    <td class="mdRow">
435      <table cellpadding="0" cellspacing="0" border="0">
436        <tr>
437          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::checkUsage </td>
438          <td class="md" valign="top">(&nbsp;</td>
439          <td class="md" nowrap valign="top">void&nbsp;</td>
440          <td class="mdname1" valign="top" nowrap>          </td>
441          <td class="md" valign="top">&nbsp;)&nbsp;</td>
442          <td class="md" nowrap><code> [protected, virtual]</code></td>
443        </tr>
444
445      </table>
446    </td>
447  </tr>
448</table>
449<table cellspacing=5 cellpadding=0 border=0>
450  <tr>
451    <td>
452      &nbsp;
453    </td>
454    <td>
455
456<p>
457Checks memory usage and pages out if required.
458<p>
459    </td>
460  </tr>
461</table>
462<a class="anchor" name="Ogre_1_1TextureManagera14" doxytag="Ogre::ResourceManager::create" ></a><p>
463<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
464  <tr>
465    <td class="mdRow">
466      <table cellpadding="0" cellspacing="0" border="0">
467        <tr>
468          <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> Ogre::ResourceManager::create </td>
469          <td class="md" valign="top">(&nbsp;</td>
470          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
471          <td class="mdname" nowrap> <em>name</em>, </td>
472        </tr>
473        <tr>
474          <td class="md" nowrap align="right"></td>
475          <td></td>
476          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
477          <td class="mdname" nowrap> <em>group</em>, </td>
478        </tr>
479        <tr>
480          <td class="md" nowrap align="right"></td>
481          <td></td>
482          <td class="md" nowrap>bool&nbsp;</td>
483          <td class="mdname" nowrap> <em>isManual</em> = false, </td>
484        </tr>
485        <tr>
486          <td class="md" nowrap align="right"></td>
487          <td></td>
488          <td class="md" nowrap><a class="el" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a> *&nbsp;</td>
489          <td class="mdname" nowrap> <em>loader</em> = 0, </td>
490        </tr>
491        <tr>
492          <td class="md" nowrap align="right"></td>
493          <td></td>
494          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a76">NameValuePairList</a> *&nbsp;</td>
495          <td class="mdname" nowrap> <em>createParams</em> = 0</td>
496        </tr>
497        <tr>
498          <td></td>
499          <td class="md">)&nbsp;</td>
500          <td class="md" colspan="2"><code> [virtual]</code></td>
501        </tr>
502
503      </table>
504    </td>
505  </tr>
506</table>
507<table cellspacing=5 cellpadding=0 border=0>
508  <tr>
509    <td>
510      &nbsp;
511    </td>
512    <td>
513
514<p>
515Creates a new blank resource, but does not immediately load it.
516<p>
517<dl compact><dt><b>Remarks:</b></dt><dd><a class="el" href="classOgre_1_1Resource.html">Resource</a> managers handle disparate types of resources, so if you want to get at the detailed interface of this resource, you'll have to cast the result to the subclass you know you're creating. </dd></dl>
518<dl compact><dt><b>Parameters:</b></dt><dd>
519  <table border="0" cellspacing="2" cellpadding="0">
520    <tr><td valign=top><em>name</em>&nbsp;</td><td>The unique name of the resource </td></tr>
521    <tr><td valign=top><em>group</em>&nbsp;</td><td>The name of the resource group to attach this new resource to </td></tr>
522    <tr><td valign=top><em>isManual</em>&nbsp;</td><td>Is this resource manually loaded? If so, you should really populate the loader parameter in order that the load process can call the loader back when loading is required. </td></tr>
523    <tr><td valign=top><em>loader</em>&nbsp;</td><td>Pointer to a ManualLoader implementation which will be called when the <a class="el" href="classOgre_1_1Resource.html">Resource</a> wishes to load (should be supplied if you set isManual to true). You can in fact leave this parameter null if you wish, but the <a class="el" href="classOgre_1_1Resource.html">Resource</a> will never be able to reload if anything ever causes it to unload. Therefore provision of a proper ManualLoader instance is strongly recommended. </td></tr>
524    <tr><td valign=top><em>createParams</em>&nbsp;</td><td>If any parameters are required to create an instance, they should be supplied here as name / value pairs </td></tr>
525  </table>
526</dl>
527    </td>
528  </tr>
529</table>
530<a class="anchor" name="Ogre_1_1TextureManagerb1" doxytag="Ogre::ResourceManager::createImpl" ></a><p>
531<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
532  <tr>
533    <td class="mdRow">
534      <table cellpadding="0" cellspacing="0" border="0">
535        <tr>
536          <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1Resource.html">Resource</a>* Ogre::ResourceManager::createImpl </td>
537          <td class="md" valign="top">(&nbsp;</td>
538          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
539          <td class="mdname" nowrap> <em>name</em>, </td>
540        </tr>
541        <tr>
542          <td class="md" nowrap align="right"></td>
543          <td></td>
544          <td class="md" nowrap><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td>
545          <td class="mdname" nowrap> <em>handle</em>, </td>
546        </tr>
547        <tr>
548          <td class="md" nowrap align="right"></td>
549          <td></td>
550          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
551          <td class="mdname" nowrap> <em>group</em>, </td>
552        </tr>
553        <tr>
554          <td class="md" nowrap align="right"></td>
555          <td></td>
556          <td class="md" nowrap>bool&nbsp;</td>
557          <td class="mdname" nowrap> <em>isManual</em>, </td>
558        </tr>
559        <tr>
560          <td class="md" nowrap align="right"></td>
561          <td></td>
562          <td class="md" nowrap><a class="el" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a> *&nbsp;</td>
563          <td class="mdname" nowrap> <em>loader</em>, </td>
564        </tr>
565        <tr>
566          <td class="md" nowrap align="right"></td>
567          <td></td>
568          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a76">NameValuePairList</a> *&nbsp;</td>
569          <td class="mdname" nowrap> <em>createParams</em></td>
570        </tr>
571        <tr>
572          <td></td>
573          <td class="md">)&nbsp;</td>
574          <td class="md" colspan="2"><code> [protected, pure virtual]</code></td>
575        </tr>
576
577      </table>
578    </td>
579  </tr>
580</table>
581<table cellspacing=5 cellpadding=0 border=0>
582  <tr>
583    <td>
584      &nbsp;
585    </td>
586    <td>
587
588<p>
589Create a new resource instance compatible with this manager (no custom parameters are populated at this point).
590<p>
591<dl compact><dt><b>Remarks:</b></dt><dd>Subclasses must override this method and create a subclass of <a class="el" href="classOgre_1_1Resource.html">Resource</a>. </dd></dl>
592<dl compact><dt><b>Parameters:</b></dt><dd>
593  <table border="0" cellspacing="2" cellpadding="0">
594    <tr><td valign=top><em>name</em>&nbsp;</td><td>The unique name of the resource </td></tr>
595    <tr><td valign=top><em>group</em>&nbsp;</td><td>The name of the resource group to attach this new resource to </td></tr>
596    <tr><td valign=top><em>isManual</em>&nbsp;</td><td>Is this resource manually loaded? If so, you should really populate the loader parameter in order that the load process can call the loader back when loading is required. </td></tr>
597    <tr><td valign=top><em>loader</em>&nbsp;</td><td>Pointer to a ManualLoader implementation which will be called when the <a class="el" href="classOgre_1_1Resource.html">Resource</a> wishes to load (should be supplied if you set isManual to true). You can in fact leave this parameter null if you wish, but the <a class="el" href="classOgre_1_1Resource.html">Resource</a> will never be able to reload if anything ever causes it to unload. Therefore provision of a proper ManualLoader instance is strongly recommended. </td></tr>
598    <tr><td valign=top><em>createParams</em>&nbsp;</td><td>If any parameters are required to create an instance, they should be supplied here as name / value pairs. These do not need to be set on the instance (handled elsewhere), just used if required to differentiate which concrete class is created.</td></tr>
599  </table>
600</dl>
601
602<p>
603Implemented in <a class="el" href="classOgre_1_1CompositorManager.html#Ogre_1_1CompositorManagera2">Ogre::CompositorManager</a>, <a class="el" href="classOgre_1_1FontManager.html#Ogre_1_1FontManagerb0">Ogre::FontManager</a>, <a class="el" href="classOgre_1_1HighLevelGpuProgramManager.html#Ogre_1_1HighLevelGpuProgramManagerb1">Ogre::HighLevelGpuProgramManager</a>, <a class="el" href="classOgre_1_1MaterialManager.html#Ogre_1_1MaterialManagerb0">Ogre::MaterialManager</a>, <a class="el" href="classOgre_1_1MeshManager.html#Ogre_1_1MeshManagerb0">Ogre::MeshManager</a>, <a class="el" href="classOgre_1_1SkeletonManager.html#Ogre_1_1SkeletonManagerb0">Ogre::SkeletonManager</a>, <a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagerb0">Ogre::BspResourceManager</a>, <a class="el" href="classOgre_1_1D3D9GpuProgramManager.html#Ogre_1_1D3D9GpuProgramManagerb0">Ogre::D3D9GpuProgramManager</a>, <a class="el" href="classOgre_1_1D3D9TextureManager.html#Ogre_1_1D3D9TextureManagerb0">Ogre::D3D9TextureManager</a>, <a class="el" href="classOgre_1_1GLGpuProgramManager.html#Ogre_1_1GLGpuProgramManagerb0">Ogre::GLGpuProgramManager</a>, and <a class="el" href="classOgre_1_1GLTextureManager.html#Ogre_1_1GLTextureManagerb0">Ogre::GLTextureManager</a>.    </td>
604  </tr>
605</table>
606<a class="anchor" name="Ogre_1_1TextureManagera28" doxytag="Ogre::ResourceManager::getByHandle" ></a><p>
607<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
608  <tr>
609    <td class="mdRow">
610      <table cellpadding="0" cellspacing="0" border="0">
611        <tr>
612          <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> Ogre::ResourceManager::getByHandle </td>
613          <td class="md" valign="top">(&nbsp;</td>
614          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td>
615          <td class="mdname1" valign="top" nowrap> <em>handle</em>          </td>
616          <td class="md" valign="top">&nbsp;)&nbsp;</td>
617          <td class="md" nowrap><code> [virtual]</code></td>
618        </tr>
619
620      </table>
621    </td>
622  </tr>
623</table>
624<table cellspacing=5 cellpadding=0 border=0>
625  <tr>
626    <td>
627      &nbsp;
628    </td>
629    <td>
630
631<p>
632Retrieves a pointer to a resource by handle, or null if the resource does not exist.
633<p>
634    </td>
635  </tr>
636</table>
637<a class="anchor" name="Ogre_1_1TextureManagera27" doxytag="Ogre::ResourceManager::getByName" ></a><p>
638<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
639  <tr>
640    <td class="mdRow">
641      <table cellpadding="0" cellspacing="0" border="0">
642        <tr>
643          <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> Ogre::ResourceManager::getByName </td>
644          <td class="md" valign="top">(&nbsp;</td>
645          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
646          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
647          <td class="md" valign="top">&nbsp;)&nbsp;</td>
648          <td class="md" nowrap><code> [virtual]</code></td>
649        </tr>
650
651      </table>
652    </td>
653  </tr>
654</table>
655<table cellspacing=5 cellpadding=0 border=0>
656  <tr>
657    <td>
658      &nbsp;
659    </td>
660    <td>
661
662<p>
663Retrieves a pointer to a resource by name, or null if the resource does not exist.
664<p>
665    </td>
666  </tr>
667</table>
668<a class="anchor" name="Ogre_1_1TextureManagera37" doxytag="Ogre::ResourceManager::getLoadingOrder" ></a><p>
669<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
670  <tr>
671    <td class="mdRow">
672      <table cellpadding="0" cellspacing="0" border="0">
673        <tr>
674          <td class="md" nowrap valign="top"> virtual <a class="el" href="namespaceOgre.html#a465">Real</a> Ogre::ResourceManager::getLoadingOrder </td>
675          <td class="md" valign="top">(&nbsp;</td>
676          <td class="md" nowrap valign="top">void&nbsp;</td>
677          <td class="mdname1" valign="top" nowrap>          </td>
678          <td class="md" valign="top">&nbsp;)&nbsp;</td>
679          <td class="md" nowrap> const<code> [virtual]</code></td>
680        </tr>
681
682      </table>
683    </td>
684  </tr>
685</table>
686<table cellspacing=5 cellpadding=0 border=0>
687  <tr>
688    <td>
689      &nbsp;
690    </td>
691    <td>
692
693<p>
694Gets the relative loading order of resources of this type.
695<p>
696<dl compact><dt><b>Remarks:</b></dt><dd>There are dependencies between some kinds of resource in terms of loading order, and this value enumerates that. Higher values load later during bulk loading tasks.</dd></dl>
697
698<p>
699Implements <a class="el" href="classOgre_1_1ScriptLoader.html#Ogre_1_1ScriptLoadera3">Ogre::ScriptLoader</a>.
700<p>
701Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00340">340</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.
702<p>
703References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
704  </tr>
705</table>
706<a class="anchor" name="Ogre_1_1TextureManagera16" doxytag="Ogre::ResourceManager::getMemoryBudget" ></a><p>
707<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
708  <tr>
709    <td class="mdRow">
710      <table cellpadding="0" cellspacing="0" border="0">
711        <tr>
712          <td class="md" nowrap valign="top"> virtual size_t Ogre::ResourceManager::getMemoryBudget </td>
713          <td class="md" valign="top">(&nbsp;</td>
714          <td class="md" nowrap valign="top">void&nbsp;</td>
715          <td class="mdname1" valign="top" nowrap>          </td>
716          <td class="md" valign="top">&nbsp;)&nbsp;</td>
717          <td class="md" nowrap> const<code> [virtual]</code></td>
718        </tr>
719
720      </table>
721    </td>
722  </tr>
723</table>
724<table cellspacing=5 cellpadding=0 border=0>
725  <tr>
726    <td>
727      &nbsp;
728    </td>
729    <td>
730
731<p>
732Get the limit on the amount of memory this resource handler may use.
733<p>
734    </td>
735  </tr>
736</table>
737<a class="anchor" name="Ogre_1_1TextureManagerb5" doxytag="Ogre::ResourceManager::getMemoryUsage" ></a><p>
738<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
739  <tr>
740    <td class="mdRow">
741      <table cellpadding="0" cellspacing="0" border="0">
742        <tr>
743          <td class="md" nowrap valign="top"> virtual size_t Ogre::ResourceManager::getMemoryUsage </td>
744          <td class="md" valign="top">(&nbsp;</td>
745          <td class="md" nowrap valign="top">void&nbsp;</td>
746          <td class="mdname1" valign="top" nowrap>          </td>
747          <td class="md" valign="top">&nbsp;)&nbsp;</td>
748          <td class="md" nowrap> const<code> [protected, virtual]</code></td>
749        </tr>
750
751      </table>
752    </td>
753  </tr>
754</table>
755<table cellspacing=5 cellpadding=0 border=0>
756  <tr>
757    <td>
758      &nbsp;
759    </td>
760    <td>
761
762<p>
763Gets the current memory usage, in bytes.
764<p>
765
766<p>
767Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00382">382</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
768  </tr>
769</table>
770<a class="anchor" name="Ogre_1_1TextureManagerb0" doxytag="Ogre::ResourceManager::getNextHandle" ></a><p>
771<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
772  <tr>
773    <td class="mdRow">
774      <table cellpadding="0" cellspacing="0" border="0">
775        <tr>
776          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a529">ResourceHandle</a> Ogre::ResourceManager::getNextHandle </td>
777          <td class="md" valign="top">(&nbsp;</td>
778          <td class="md" nowrap valign="top">void&nbsp;</td>
779          <td class="mdname1" valign="top" nowrap>          </td>
780          <td class="md" valign="top">&nbsp;)&nbsp;</td>
781          <td class="md" nowrap><code> [protected]</code></td>
782        </tr>
783
784      </table>
785    </td>
786  </tr>
787</table>
788<table cellspacing=5 cellpadding=0 border=0>
789  <tr>
790    <td>
791      &nbsp;
792    </td>
793    <td>
794
795<p>
796Allocates the next handle.
797<p>
798    </td>
799  </tr>
800</table>
801<a class="anchor" name="Ogre_1_1TextureManagera39" doxytag="Ogre::ResourceManager::getResourceIterator" ></a><p>
802<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
803  <tr>
804    <td class="mdRow">
805      <table cellpadding="0" cellspacing="0" border="0">
806        <tr>
807          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1MapIterator.html">ResourceMapIterator</a> Ogre::ResourceManager::getResourceIterator </td>
808          <td class="md" valign="top">(&nbsp;</td>
809          <td class="md" nowrap valign="top">void&nbsp;</td>
810          <td class="mdname1" valign="top" nowrap>          </td>
811          <td class="md" valign="top">&nbsp;)&nbsp;</td>
812          <td class="md" nowrap></td>
813        </tr>
814
815      </table>
816    </td>
817  </tr>
818</table>
819<table cellspacing=5 cellpadding=0 border=0>
820  <tr>
821    <td>
822      &nbsp;
823    </td>
824    <td>
825
826<p>
827Returns an iterator over all resources in this manager.
828<p>
829<dl compact><dt><b>Note:</b></dt><dd>Use of this iterator is NOT thread safe! </dd></dl>
830
831<p>
832Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00410">410</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.
833<p>
834References <a class="el" href="OgreResourceManager_8h-source.html#l00405">ResourceMapIterator</a>.    </td>
835  </tr>
836</table>
837<a class="anchor" name="Ogre_1_1TextureManagera38" doxytag="Ogre::ResourceManager::getResourceType" ></a><p>
838<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
839  <tr>
840    <td class="mdRow">
841      <table cellpadding="0" cellspacing="0" border="0">
842        <tr>
843          <td class="md" nowrap valign="top"> const <a class="el" href="namespaceOgre.html#a471">String</a>&amp; Ogre::ResourceManager::getResourceType </td>
844          <td class="md" valign="top">(&nbsp;</td>
845          <td class="md" nowrap valign="top">void&nbsp;</td>
846          <td class="mdname1" valign="top" nowrap>          </td>
847          <td class="md" valign="top">&nbsp;)&nbsp;</td>
848          <td class="md" nowrap> const</td>
849        </tr>
850
851      </table>
852    </td>
853  </tr>
854</table>
855<table cellspacing=5 cellpadding=0 border=0>
856  <tr>
857    <td>
858      &nbsp;
859    </td>
860    <td>
861
862<p>
863Gets a string identifying the type of resource this manager handles.
864<p>
865
866<p>
867Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00343">343</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.
868<p>
869References <a class="el" href="OgrePrerequisites_8h-source.html#l00156">Ogre::String</a>.    </td>
870  </tr>
871</table>
872<a class="anchor" name="Ogre_1_1TextureManagera35" doxytag="Ogre::ResourceManager::getScriptPatterns" ></a><p>
873<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
874  <tr>
875    <td class="mdRow">
876      <table cellpadding="0" cellspacing="0" border="0">
877        <tr>
878          <td class="md" nowrap valign="top"> virtual const <a class="el" href="namespaceOgre.html#a580">StringVector</a>&amp; Ogre::ResourceManager::getScriptPatterns </td>
879          <td class="md" valign="top">(&nbsp;</td>
880          <td class="md" nowrap valign="top">void&nbsp;</td>
881          <td class="mdname1" valign="top" nowrap>          </td>
882          <td class="md" valign="top">&nbsp;)&nbsp;</td>
883          <td class="md" nowrap> const<code> [virtual]</code></td>
884        </tr>
885
886      </table>
887    </td>
888  </tr>
889</table>
890<table cellspacing=5 cellpadding=0 border=0>
891  <tr>
892    <td>
893      &nbsp;
894    </td>
895    <td>
896
897<p>
898Gets the file patterns which should be used to find scripts for this <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a>.
899<p>
900<dl compact><dt><b>Remarks:</b></dt><dd>Some resource managers can read script files in order to define resources ahead of time. These resources are added to the available list inside the manager, but none are loaded initially. This allows you to load the items that are used on demand, or to load them all as a group if you wish (through <a class="el" href="classOgre_1_1ResourceGroupManager.html">ResourceGroupManager</a>). </dd></dl>
901<dl compact><dt><b></b></dt><dd>This method lets you determine the file pattern which will be used to identify scripts intended for this manager. </dd></dl>
902<dl compact><dt><b>Returns:</b></dt><dd>A list of file patterns, in the order they should be searched in. </dd></dl>
903<dl compact><dt><b>See also:</b></dt><dd>isScriptingSupported, <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera36">parseScript</a></dd></dl>
904
905<p>
906Implements <a class="el" href="classOgre_1_1ScriptLoader.html#Ogre_1_1ScriptLoadera1">Ogre::ScriptLoader</a>.
907<p>
908Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00317">317</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.
909<p>
910References <a class="el" href="OgreStringVector_8h-source.html#l00036">Ogre::StringVector</a>.    </td>
911  </tr>
912</table>
913<a class="anchor" name="Ogre_1_1TextureManagera34" doxytag="Ogre::ResourceManager::load" ></a><p>
914<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
915  <tr>
916    <td class="mdRow">
917      <table cellpadding="0" cellspacing="0" border="0">
918        <tr>
919          <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> Ogre::ResourceManager::load </td>
920          <td class="md" valign="top">(&nbsp;</td>
921          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
922          <td class="mdname" nowrap> <em>name</em>, </td>
923        </tr>
924        <tr>
925          <td class="md" nowrap align="right"></td>
926          <td></td>
927          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
928          <td class="mdname" nowrap> <em>group</em>, </td>
929        </tr>
930        <tr>
931          <td class="md" nowrap align="right"></td>
932          <td></td>
933          <td class="md" nowrap>bool&nbsp;</td>
934          <td class="mdname" nowrap> <em>isManual</em> = false, </td>
935        </tr>
936        <tr>
937          <td class="md" nowrap align="right"></td>
938          <td></td>
939          <td class="md" nowrap><a class="el" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a> *&nbsp;</td>
940          <td class="mdname" nowrap> <em>loader</em> = 0, </td>
941        </tr>
942        <tr>
943          <td class="md" nowrap align="right"></td>
944          <td></td>
945          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a76">NameValuePairList</a> *&nbsp;</td>
946          <td class="mdname" nowrap> <em>loadParams</em> = 0</td>
947        </tr>
948        <tr>
949          <td></td>
950          <td class="md">)&nbsp;</td>
951          <td class="md" colspan="2"><code> [virtual]</code></td>
952        </tr>
953
954      </table>
955    </td>
956  </tr>
957</table>
958<table cellspacing=5 cellpadding=0 border=0>
959  <tr>
960    <td>
961      &nbsp;
962    </td>
963    <td>
964
965<p>
966Generic load method, used to create a <a class="el" href="classOgre_1_1Resource.html">Resource</a> specific to this <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a> without using one of the specialised 'load' methods (containing per-Resource-type parameters).
967<p>
968<dl compact><dt><b>Parameters:</b></dt><dd>
969  <table border="0" cellspacing="2" cellpadding="0">
970    <tr><td valign=top><em>name</em>&nbsp;</td><td>The name of the <a class="el" href="classOgre_1_1Resource.html">Resource</a> </td></tr>
971    <tr><td valign=top><em>group</em>&nbsp;</td><td>The resource group to which this resource will belong </td></tr>
972    <tr><td valign=top><em>isManual</em>&nbsp;</td><td>Is the resource to be manually loaded? If so, you should provide a value for the loader parameter </td></tr>
973    <tr><td valign=top><em>loader</em>&nbsp;</td><td>The manual loader which is to perform the required actions when this resource is loaded; only applicable when you specify true for the previous parameter </td></tr>
974    <tr><td valign=top><em>loadParams</em>&nbsp;</td><td>Optional pointer to a list of name/value pairs containing loading parameters for this type of resource.</td></tr>
975  </table>
976</dl>
977
978<p>
979Reimplemented in <a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagera2">Ogre::BspResourceManager</a>.    </td>
980  </tr>
981</table>
982<a class="anchor" name="Ogre_1_1TextureManagera36" doxytag="Ogre::ResourceManager::parseScript" ></a><p>
983<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
984  <tr>
985    <td class="mdRow">
986      <table cellpadding="0" cellspacing="0" border="0">
987        <tr>
988          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::parseScript </td>
989          <td class="md" valign="top">(&nbsp;</td>
990          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">DataStreamPtr</a> &amp;&nbsp;</td>
991          <td class="mdname" nowrap> <em>stream</em>, </td>
992        </tr>
993        <tr>
994          <td class="md" nowrap align="right"></td>
995          <td></td>
996          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
997          <td class="mdname" nowrap> <em>groupName</em></td>
998        </tr>
999        <tr>
1000          <td></td>
1001          <td class="md">)&nbsp;</td>
1002          <td class="md" colspan="2"><code> [virtual]</code></td>
1003        </tr>
1004
1005      </table>
1006    </td>
1007  </tr>
1008</table>
1009<table cellspacing=5 cellpadding=0 border=0>
1010  <tr>
1011    <td>
1012      &nbsp;
1013    </td>
1014    <td>
1015
1016<p>
1017Parse the definition of a set of resources from a script file.
1018<p>
1019<dl compact><dt><b>Remarks:</b></dt><dd>Some resource managers can read script files in order to define resources ahead of time. These resources are added to the available list inside the manager, but none are loaded initially. This allows you to load the items that are used on demand, or to load them all as a group if you wish (through <a class="el" href="classOgre_1_1ResourceGroupManager.html">ResourceGroupManager</a>). </dd></dl>
1020<dl compact><dt><b>Parameters:</b></dt><dd>
1021  <table border="0" cellspacing="2" cellpadding="0">
1022    <tr><td valign=top><em>stream</em>&nbsp;</td><td>Weak reference to a data stream which is the source of the script </td></tr>
1023    <tr><td valign=top><em>groupName</em>&nbsp;</td><td>The name of the resource group that resources which are parsed are to become a member of. If this group is loaded or unloaded, then the resources discovered in this script will be loaded / unloaded with it.</td></tr>
1024  </table>
1025</dl>
1026
1027<p>
1028Implements <a class="el" href="classOgre_1_1ScriptLoader.html#Ogre_1_1ScriptLoadera2">Ogre::ScriptLoader</a>.
1029<p>
1030Reimplemented in <a class="el" href="classOgre_1_1CompositorManager.html#Ogre_1_1CompositorManagera4">Ogre::CompositorManager</a>, <a class="el" href="classOgre_1_1FontManager.html#Ogre_1_1FontManagera2">Ogre::FontManager</a>, and <a class="el" href="classOgre_1_1MaterialManager.html#Ogre_1_1MaterialManagera3">Ogre::MaterialManager</a>.
1031<p>
1032Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00332">332</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.
1033<p>
1034References <a class="el" href="OgreDataStream_8h-source.html#l00149">Ogre::DataStreamPtr</a>, and <a class="el" href="OgrePrerequisites_8h-source.html#l00156">Ogre::String</a>.    </td>
1035  </tr>
1036</table>
1037<a class="anchor" name="Ogre_1_1TextureManagera20" doxytag="Ogre::ResourceManager::reloadAll" ></a><p>
1038<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1039  <tr>
1040    <td class="mdRow">
1041      <table cellpadding="0" cellspacing="0" border="0">
1042        <tr>
1043          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::reloadAll </td>
1044          <td class="md" valign="top">(&nbsp;</td>
1045          <td class="md" nowrap valign="top">bool&nbsp;</td>
1046          <td class="mdname1" valign="top" nowrap> <em>reloadableOnly</em> = true          </td>
1047          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1048          <td class="md" nowrap><code> [virtual]</code></td>
1049        </tr>
1050
1051      </table>
1052    </td>
1053  </tr>
1054</table>
1055<table cellspacing=5 cellpadding=0 border=0>
1056  <tr>
1057    <td>
1058      &nbsp;
1059    </td>
1060    <td>
1061
1062<p>
1063Caused all currently loaded resources to be reloaded.
1064<p>
1065<dl compact><dt><b>Remarks:</b></dt><dd>All resources currently being held in this manager which are also marked as currently loaded will be unloaded, then loaded again. </dd></dl>
1066<dl compact><dt><b>Parameters:</b></dt><dd>
1067  <table border="0" cellspacing="2" cellpadding="0">
1068    <tr><td valign=top><em>reloadableOnly</em>&nbsp;</td><td>If true (the default), only reload the resource that is reloadable. Because some resources isn't reloadable, they will be unloaded but can't loaded again. Thus, you might not want to them unloaded. Or, you might unload all of them, and then populate them manually later. </td></tr>
1069  </table>
1070</dl>
1071<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classOgre_1_1Resource.html#Ogre_1_1Texturea32">Resource::isReloadable</a> for resource is reloadable.</dd></dl>
1072    </td>
1073  </tr>
1074</table>
1075<a class="anchor" name="Ogre_1_1TextureManagera22" doxytag="Ogre::ResourceManager::reloadUnreferencedResources" ></a><p>
1076<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1077  <tr>
1078    <td class="mdRow">
1079      <table cellpadding="0" cellspacing="0" border="0">
1080        <tr>
1081          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::reloadUnreferencedResources </td>
1082          <td class="md" valign="top">(&nbsp;</td>
1083          <td class="md" nowrap valign="top">bool&nbsp;</td>
1084          <td class="mdname1" valign="top" nowrap> <em>reloadableOnly</em> = true          </td>
1085          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1086          <td class="md" nowrap><code> [virtual]</code></td>
1087        </tr>
1088
1089      </table>
1090    </td>
1091  </tr>
1092</table>
1093<table cellspacing=5 cellpadding=0 border=0>
1094  <tr>
1095    <td>
1096      &nbsp;
1097    </td>
1098    <td>
1099
1100<p>
1101Caused all currently loaded but not referenced by any other object resources to be reloaded.
1102<p>
1103<dl compact><dt><b>Remarks:</b></dt><dd>This method behaves like reloadAll, except that it only reloads resources which are not in use, ie not referenced by other objects. </dd></dl>
1104<dl compact><dt><b></b></dt><dd>Some referenced resource may exists 'weak' pointer to their sub-components (e.g. <a class="el" href="classOgre_1_1Entity.html">Entity</a> held pointer to <a class="el" href="classOgre_1_1SubMesh.html">SubMesh</a>), in this case, unload or reload that resource will cause dangerous pointer access. Use this function instead of reloadAll allows you avoid fail in those situations. </dd></dl>
1105<dl compact><dt><b>Parameters:</b></dt><dd>
1106  <table border="0" cellspacing="2" cellpadding="0">
1107    <tr><td valign=top><em>reloadableOnly</em>&nbsp;</td><td>If true (the default), only reloads resources which can be subsequently automatically reloaded.</td></tr>
1108  </table>
1109</dl>
1110    </td>
1111  </tr>
1112</table>
1113<a class="anchor" name="Ogre_1_1TextureManagera25" doxytag="Ogre::ResourceManager::remove" ></a><p>
1114<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1115  <tr>
1116    <td class="mdRow">
1117      <table cellpadding="0" cellspacing="0" border="0">
1118        <tr>
1119          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::remove </td>
1120          <td class="md" valign="top">(&nbsp;</td>
1121          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td>
1122          <td class="mdname1" valign="top" nowrap> <em>handle</em>          </td>
1123          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1124          <td class="md" nowrap><code> [virtual]</code></td>
1125        </tr>
1126
1127      </table>
1128    </td>
1129  </tr>
1130</table>
1131<table cellspacing=5 cellpadding=0 border=0>
1132  <tr>
1133    <td>
1134      &nbsp;
1135    </td>
1136    <td>
1137
1138<p>
1139Remove a single resource by handle.
1140<p>
1141<dl compact><dt><b>Remarks:</b></dt><dd>Removes a single resource, meaning it will be removed from the list of valid resources in this manager, also causing it to be unloaded. </dd></dl>
1142<dl compact><dt><b>Note:</b></dt><dd>The word 'Destroy' is not used here, since if any other pointers are referring to this resource, it will persist until they have finished with it; however to all intents and purposes it no longer exists and will likely get destroyed imminently. <p>
1143If you do have shared pointers to resources hanging around after the <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a> is destroyed, you may get problems on destruction of these resources if they were relying on the manager (especially if it is a plugin). If you find you get problems on shutdown in the destruction of resources, try making sure you release all your shared pointers before you shutdown OGRE.</dd></dl>
1144    </td>
1145  </tr>
1146</table>
1147<a class="anchor" name="Ogre_1_1TextureManagera24" doxytag="Ogre::ResourceManager::remove" ></a><p>
1148<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1149  <tr>
1150    <td class="mdRow">
1151      <table cellpadding="0" cellspacing="0" border="0">
1152        <tr>
1153          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::remove </td>
1154          <td class="md" valign="top">(&nbsp;</td>
1155          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
1156          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
1157          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1158          <td class="md" nowrap><code> [virtual]</code></td>
1159        </tr>
1160
1161      </table>
1162    </td>
1163  </tr>
1164</table>
1165<table cellspacing=5 cellpadding=0 border=0>
1166  <tr>
1167    <td>
1168      &nbsp;
1169    </td>
1170    <td>
1171
1172<p>
1173Remove a single resource by name.
1174<p>
1175<dl compact><dt><b>Remarks:</b></dt><dd>Removes a single resource, meaning it will be removed from the list of valid resources in this manager, also causing it to be unloaded. </dd></dl>
1176<dl compact><dt><b>Note:</b></dt><dd>The word 'Destroy' is not used here, since if any other pointers are referring to this resource, it will persist until they have finished with it; however to all intents and purposes it no longer exists and will likely get destroyed imminently. <p>
1177If you do have shared pointers to resources hanging around after the <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a> is destroyed, you may get problems on destruction of these resources if they were relying on the manager (especially if it is a plugin). If you find you get problems on shutdown in the destruction of resources, try making sure you release all your shared pointers before you shutdown OGRE.</dd></dl>
1178    </td>
1179  </tr>
1180</table>
1181<a class="anchor" name="Ogre_1_1TextureManagera23" doxytag="Ogre::ResourceManager::remove" ></a><p>
1182<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1183  <tr>
1184    <td class="mdRow">
1185      <table cellpadding="0" cellspacing="0" border="0">
1186        <tr>
1187          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::remove </td>
1188          <td class="md" valign="top">(&nbsp;</td>
1189          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &amp;&nbsp;</td>
1190          <td class="mdname1" valign="top" nowrap> <em>r</em>          </td>
1191          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1192          <td class="md" nowrap><code> [virtual]</code></td>
1193        </tr>
1194
1195      </table>
1196    </td>
1197  </tr>
1198</table>
1199<table cellspacing=5 cellpadding=0 border=0>
1200  <tr>
1201    <td>
1202      &nbsp;
1203    </td>
1204    <td>
1205
1206<p>
1207Remove a single resource.
1208<p>
1209<dl compact><dt><b>Remarks:</b></dt><dd>Removes a single resource, meaning it will be removed from the list of valid resources in this manager, also causing it to be unloaded. </dd></dl>
1210<dl compact><dt><b>Note:</b></dt><dd>The word 'Destroy' is not used here, since if any other pointers are referring to this resource, it will persist until they have finished with it; however to all intents and purposes it no longer exists and will likely get destroyed imminently. <p>
1211If you do have shared pointers to resources hanging around after the <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a> is destroyed, you may get problems on destruction of these resources if they were relying on the manager (especially if it is a plugin). If you find you get problems on shutdown in the destruction of resources, try making sure you release all your shared pointers before you shutdown OGRE.</dd></dl>
1212    </td>
1213  </tr>
1214</table>
1215<a class="anchor" name="Ogre_1_1TextureManagera26" doxytag="Ogre::ResourceManager::removeAll" ></a><p>
1216<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1217  <tr>
1218    <td class="mdRow">
1219      <table cellpadding="0" cellspacing="0" border="0">
1220        <tr>
1221          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::removeAll </td>
1222          <td class="md" valign="top">(&nbsp;</td>
1223          <td class="md" nowrap valign="top">void&nbsp;</td>
1224          <td class="mdname1" valign="top" nowrap>          </td>
1225          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1226          <td class="md" nowrap><code> [virtual]</code></td>
1227        </tr>
1228
1229      </table>
1230    </td>
1231  </tr>
1232</table>
1233<table cellspacing=5 cellpadding=0 border=0>
1234  <tr>
1235    <td>
1236      &nbsp;
1237    </td>
1238    <td>
1239
1240<p>
1241Removes all resources.
1242<p>
1243<dl compact><dt><b>Note:</b></dt><dd>The word 'Destroy' is not used here, since if any other pointers are referring to these resources, they will persist until they have been finished with; however to all intents and purposes the resources no longer exist and will get destroyed imminently. <p>
1244If you do have shared pointers to resources hanging around after the <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a> is destroyed, you may get problems on destruction of these resources if they were relying on the manager (especially if it is a plugin). If you find you get problems on shutdown in the destruction of resources, try making sure you release all your shared pointers before you shutdown OGRE. </dd></dl>
1245
1246<p>
1247Reimplemented in <a class="el" href="classOgre_1_1CompositorManager.html#Ogre_1_1CompositorManagera12">Ogre::CompositorManager</a>.    </td>
1248  </tr>
1249</table>
1250<a class="anchor" name="Ogre_1_1TextureManagerb3" doxytag="Ogre::ResourceManager::removeImpl" ></a><p>
1251<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1252  <tr>
1253    <td class="mdRow">
1254      <table cellpadding="0" cellspacing="0" border="0">
1255        <tr>
1256          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::removeImpl </td>
1257          <td class="md" valign="top">(&nbsp;</td>
1258          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &amp;&nbsp;</td>
1259          <td class="mdname1" valign="top" nowrap> <em>res</em>          </td>
1260          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1261          <td class="md" nowrap><code> [protected, virtual]</code></td>
1262        </tr>
1263
1264      </table>
1265    </td>
1266  </tr>
1267</table>
1268<table cellspacing=5 cellpadding=0 border=0>
1269  <tr>
1270    <td>
1271      &nbsp;
1272    </td>
1273    <td>
1274
1275<p>
1276Remove a resource from this manager; remove it from the lists.
1277<p>
1278    </td>
1279  </tr>
1280</table>
1281<a class="anchor" name="Ogre_1_1TextureManagera30" doxytag="Ogre::ResourceManager::resourceExists" ></a><p>
1282<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1283  <tr>
1284    <td class="mdRow">
1285      <table cellpadding="0" cellspacing="0" border="0">
1286        <tr>
1287          <td class="md" nowrap valign="top"> virtual bool Ogre::ResourceManager::resourceExists </td>
1288          <td class="md" valign="top">(&nbsp;</td>
1289          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td>
1290          <td class="mdname1" valign="top" nowrap> <em>handle</em>          </td>
1291          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1292          <td class="md" nowrap><code> [virtual]</code></td>
1293        </tr>
1294
1295      </table>
1296    </td>
1297  </tr>
1298</table>
1299<table cellspacing=5 cellpadding=0 border=0>
1300  <tr>
1301    <td>
1302      &nbsp;
1303    </td>
1304    <td>
1305
1306<p>
1307Returns whether a resource with the given handle exists in this manager.
1308<p>
1309
1310<p>
1311Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00265">265</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.
1312<p>
1313References <a class="el" href="OgreSharedPtr_8h-source.html#l00114">Ogre::SharedPtr&lt; T &gt;::isNull()</a>, and <a class="el" href="OgreResource_8h-source.html#l00035">Ogre::ResourceHandle</a>.    </td>
1314  </tr>
1315</table>
1316<a class="anchor" name="Ogre_1_1TextureManagera29" doxytag="Ogre::ResourceManager::resourceExists" ></a><p>
1317<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1318  <tr>
1319    <td class="mdRow">
1320      <table cellpadding="0" cellspacing="0" border="0">
1321        <tr>
1322          <td class="md" nowrap valign="top"> virtual bool Ogre::ResourceManager::resourceExists </td>
1323          <td class="md" valign="top">(&nbsp;</td>
1324          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
1325          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
1326          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1327          <td class="md" nowrap><code> [virtual]</code></td>
1328        </tr>
1329
1330      </table>
1331    </td>
1332  </tr>
1333</table>
1334<table cellspacing=5 cellpadding=0 border=0>
1335  <tr>
1336    <td>
1337      &nbsp;
1338    </td>
1339    <td>
1340
1341<p>
1342Returns whether the named resource exists in this manager.
1343<p>
1344
1345<p>
1346Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00260">260</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.
1347<p>
1348References <a class="el" href="OgreSharedPtr_8h-source.html#l00114">Ogre::SharedPtr&lt; T &gt;::isNull()</a>, and <a class="el" href="OgrePrerequisites_8h-source.html#l00156">Ogre::String</a>.    </td>
1349  </tr>
1350</table>
1351<a class="anchor" name="Ogre_1_1TextureManagera15" doxytag="Ogre::ResourceManager::setMemoryBudget" ></a><p>
1352<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1353  <tr>
1354    <td class="mdRow">
1355      <table cellpadding="0" cellspacing="0" border="0">
1356        <tr>
1357          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::setMemoryBudget </td>
1358          <td class="md" valign="top">(&nbsp;</td>
1359          <td class="md" nowrap valign="top">size_t&nbsp;</td>
1360          <td class="mdname1" valign="top" nowrap> <em>bytes</em>          </td>
1361          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1362          <td class="md" nowrap><code> [virtual]</code></td>
1363        </tr>
1364
1365      </table>
1366    </td>
1367  </tr>
1368</table>
1369<table cellspacing=5 cellpadding=0 border=0>
1370  <tr>
1371    <td>
1372      &nbsp;
1373    </td>
1374    <td>
1375
1376<p>
1377Set a limit on the amount of memory this resource handler may use.
1378<p>
1379<dl compact><dt><b>Remarks:</b></dt><dd>If, when asked to load a new resource, the manager believes it will exceed this memory budget, it will temporarily unload a resource to make room for the new one. This unloading is not permanent and the <a class="el" href="classOgre_1_1Resource.html">Resource</a> is not destroyed; it simply needs to be reloaded when next used. </dd></dl>
1380    </td>
1381  </tr>
1382</table>
1383<a class="anchor" name="Ogre_1_1TextureManagera18" doxytag="Ogre::ResourceManager::unload" ></a><p>
1384<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1385  <tr>
1386    <td class="mdRow">
1387      <table cellpadding="0" cellspacing="0" border="0">
1388        <tr>
1389          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::unload </td>
1390          <td class="md" valign="top">(&nbsp;</td>
1391          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td>
1392          <td class="mdname1" valign="top" nowrap> <em>handle</em>          </td>
1393          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1394          <td class="md" nowrap><code> [virtual]</code></td>
1395        </tr>
1396
1397      </table>
1398    </td>
1399  </tr>
1400</table>
1401<table cellspacing=5 cellpadding=0 border=0>
1402  <tr>
1403    <td>
1404      &nbsp;
1405    </td>
1406    <td>
1407
1408<p>
1409Unloads a single resource by handle.
1410<p>
1411<dl compact><dt><b>Remarks:</b></dt><dd>Unloaded resources are not removed, they simply free up their memory as much as they can and wait to be reloaded. </dd></dl>
1412<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classOgre_1_1ResourceGroupManager.html">ResourceGroupManager</a> for unloading of resource groups.</dd></dl>
1413    </td>
1414  </tr>
1415</table>
1416<a class="anchor" name="Ogre_1_1TextureManagera17" doxytag="Ogre::ResourceManager::unload" ></a><p>
1417<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1418  <tr>
1419    <td class="mdRow">
1420      <table cellpadding="0" cellspacing="0" border="0">
1421        <tr>
1422          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::unload </td>
1423          <td class="md" valign="top">(&nbsp;</td>
1424          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
1425          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
1426          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1427          <td class="md" nowrap><code> [virtual]</code></td>
1428        </tr>
1429
1430      </table>
1431    </td>
1432  </tr>
1433</table>
1434<table cellspacing=5 cellpadding=0 border=0>
1435  <tr>
1436    <td>
1437      &nbsp;
1438    </td>
1439    <td>
1440
1441<p>
1442Unloads a single resource by name.
1443<p>
1444<dl compact><dt><b>Remarks:</b></dt><dd>Unloaded resources are not removed, they simply free up their memory as much as they can and wait to be reloaded. </dd></dl>
1445<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classOgre_1_1ResourceGroupManager.html">ResourceGroupManager</a> for unloading of resource groups.</dd></dl>
1446    </td>
1447  </tr>
1448</table>
1449<a class="anchor" name="Ogre_1_1TextureManagera19" doxytag="Ogre::ResourceManager::unloadAll" ></a><p>
1450<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1451  <tr>
1452    <td class="mdRow">
1453      <table cellpadding="0" cellspacing="0" border="0">
1454        <tr>
1455          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::unloadAll </td>
1456          <td class="md" valign="top">(&nbsp;</td>
1457          <td class="md" nowrap valign="top">bool&nbsp;</td>
1458          <td class="mdname1" valign="top" nowrap> <em>reloadableOnly</em> = true          </td>
1459          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1460          <td class="md" nowrap><code> [virtual]</code></td>
1461        </tr>
1462
1463      </table>
1464    </td>
1465  </tr>
1466</table>
1467<table cellspacing=5 cellpadding=0 border=0>
1468  <tr>
1469    <td>
1470      &nbsp;
1471    </td>
1472    <td>
1473
1474<p>
1475Unloads all resources.
1476<p>
1477<dl compact><dt><b>Remarks:</b></dt><dd>Unloaded resources are not removed, they simply free up their memory as much as they can and wait to be reloaded. </dd></dl>
1478<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classOgre_1_1ResourceGroupManager.html">ResourceGroupManager</a> for unloading of resource groups. </dd></dl>
1479<dl compact><dt><b>Parameters:</b></dt><dd>
1480  <table border="0" cellspacing="2" cellpadding="0">
1481    <tr><td valign=top><em>reloadableOnly</em>&nbsp;</td><td>If true (the default), only unload the resource that is reloadable. Because some resources isn't reloadable, they will be unloaded but can't load them later. Thus, you might not want to them unloaded. Or, you might unload all of them, and then populate them manually later. </td></tr>
1482  </table>
1483</dl>
1484<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classOgre_1_1Resource.html#Ogre_1_1Texturea32">Resource::isReloadable</a> for resource is reloadable.</dd></dl>
1485    </td>
1486  </tr>
1487</table>
1488<a class="anchor" name="Ogre_1_1TextureManagera21" doxytag="Ogre::ResourceManager::unloadUnreferencedResources" ></a><p>
1489<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1490  <tr>
1491    <td class="mdRow">
1492      <table cellpadding="0" cellspacing="0" border="0">
1493        <tr>
1494          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::unloadUnreferencedResources </td>
1495          <td class="md" valign="top">(&nbsp;</td>
1496          <td class="md" nowrap valign="top">bool&nbsp;</td>
1497          <td class="mdname1" valign="top" nowrap> <em>reloadableOnly</em> = true          </td>
1498          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1499          <td class="md" nowrap><code> [virtual]</code></td>
1500        </tr>
1501
1502      </table>
1503    </td>
1504  </tr>
1505</table>
1506<table cellspacing=5 cellpadding=0 border=0>
1507  <tr>
1508    <td>
1509      &nbsp;
1510    </td>
1511    <td>
1512
1513<p>
1514Unload all resources which are not referenced by any other object.
1515<p>
1516<dl compact><dt><b>Remarks:</b></dt><dd>This method behaves like unloadAll, except that it only unloads resources which are not in use, ie not referenced by other objects. This allows you to free up some memory selectively whilst still keeping the group around (and the resources present, just not using much memory). </dd></dl>
1517<dl compact><dt><b></b></dt><dd>Some referenced resource may exists 'weak' pointer to their sub-components (e.g. <a class="el" href="classOgre_1_1Entity.html">Entity</a> held pointer to <a class="el" href="classOgre_1_1SubMesh.html">SubMesh</a>), in this case, unload or reload that resource will cause dangerous pointer access. Use this function instead of unloadAll allows you avoid fail in those situations. </dd></dl>
1518<dl compact><dt><b>Parameters:</b></dt><dd>
1519  <table border="0" cellspacing="2" cellpadding="0">
1520    <tr><td valign=top><em>reloadableOnly</em>&nbsp;</td><td>If true (the default), only unloads resources which can be subsequently automatically reloaded.</td></tr>
1521  </table>
1522</dl>
1523    </td>
1524  </tr>
1525</table>
1526<hr><h2>Member Data Documentation</h2>
1527<a class="anchor" name="Ogre_1_1TextureManagerp8" doxytag="Ogre::ResourceManager::mLoadOrder" ></a><p>
1528<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1529  <tr>
1530    <td class="mdRow">
1531      <table cellpadding="0" cellspacing="0" border="0">
1532        <tr>
1533          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a> <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp8">Ogre::ResourceManager::mLoadOrder</a><code> [protected]</code>
1534      </table>
1535    </td>
1536  </tr>
1537</table>
1538<table cellspacing=5 cellpadding=0 border=0>
1539  <tr>
1540    <td>
1541      &nbsp;
1542    </td>
1543    <td>
1544
1545<p>
1546Loading order relative to other managers, higher is later.
1547<p>
1548
1549<p>
1550Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00400">400</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
1551  </tr>
1552</table>
1553<a class="anchor" name="Ogre_1_1TextureManagerp5" doxytag="Ogre::ResourceManager::mMemoryBudget" ></a><p>
1554<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1555  <tr>
1556    <td class="mdRow">
1557      <table cellpadding="0" cellspacing="0" border="0">
1558        <tr>
1559          <td class="md" nowrap valign="top"> size_t <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp5">Ogre::ResourceManager::mMemoryBudget</a><code> [protected]</code>
1560      </table>
1561    </td>
1562  </tr>
1563</table>
1564<table cellspacing=5 cellpadding=0 border=0>
1565  <tr>
1566    <td>
1567      &nbsp;
1568    </td>
1569    <td>
1570
1571<p>
1572
1573<p>
1574Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00392">392</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
1575  </tr>
1576</table>
1577<a class="anchor" name="Ogre_1_1TextureManagerp6" doxytag="Ogre::ResourceManager::mMemoryUsage" ></a><p>
1578<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1579  <tr>
1580    <td class="mdRow">
1581      <table cellpadding="0" cellspacing="0" border="0">
1582        <tr>
1583          <td class="md" nowrap valign="top"> size_t <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp6">Ogre::ResourceManager::mMemoryUsage</a><code> [protected]</code>
1584      </table>
1585    </td>
1586  </tr>
1587</table>
1588<table cellspacing=5 cellpadding=0 border=0>
1589  <tr>
1590    <td>
1591      &nbsp;
1592    </td>
1593    <td>
1594
1595<p>
1596
1597<p>
1598Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00393">393</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
1599  </tr>
1600</table>
1601<a class="anchor" name="Ogre_1_1TextureManagerp4" doxytag="Ogre::ResourceManager::mNextHandle" ></a><p>
1602<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1603  <tr>
1604    <td class="mdRow">
1605      <table cellpadding="0" cellspacing="0" border="0">
1606        <tr>
1607          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a529">ResourceHandle</a> <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp4">Ogre::ResourceManager::mNextHandle</a><code> [protected]</code>
1608      </table>
1609    </td>
1610  </tr>
1611</table>
1612<table cellspacing=5 cellpadding=0 border=0>
1613  <tr>
1614    <td>
1615      &nbsp;
1616    </td>
1617    <td>
1618
1619<p>
1620
1621<p>
1622Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00391">391</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
1623  </tr>
1624</table>
1625<a class="anchor" name="Ogre_1_1TextureManagerp3" doxytag="Ogre::ResourceManager::mResources" ></a><p>
1626<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1627  <tr>
1628    <td class="mdRow">
1629      <table cellpadding="0" cellspacing="0" border="0">
1630        <tr>
1631          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw0">ResourceMap</a> <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp3">Ogre::ResourceManager::mResources</a><code> [protected]</code>
1632      </table>
1633    </td>
1634  </tr>
1635</table>
1636<table cellspacing=5 cellpadding=0 border=0>
1637  <tr>
1638    <td>
1639      &nbsp;
1640    </td>
1641    <td>
1642
1643<p>
1644
1645<p>
1646Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00390">390</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
1647  </tr>
1648</table>
1649<a class="anchor" name="Ogre_1_1TextureManagerp2" doxytag="Ogre::ResourceManager::mResourcesByHandle" ></a><p>
1650<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1651  <tr>
1652    <td class="mdRow">
1653      <table cellpadding="0" cellspacing="0" border="0">
1654        <tr>
1655          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw1">ResourceHandleMap</a> <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp2">Ogre::ResourceManager::mResourcesByHandle</a><code> [protected]</code>
1656      </table>
1657    </td>
1658  </tr>
1659</table>
1660<table cellspacing=5 cellpadding=0 border=0>
1661  <tr>
1662    <td>
1663      &nbsp;
1664    </td>
1665    <td>
1666
1667<p>
1668
1669<p>
1670Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00389">389</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
1671  </tr>
1672</table>
1673<a class="anchor" name="Ogre_1_1TextureManagerp9" doxytag="Ogre::ResourceManager::mResourceType" ></a><p>
1674<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1675  <tr>
1676    <td class="mdRow">
1677      <table cellpadding="0" cellspacing="0" border="0">
1678        <tr>
1679          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a471">String</a> <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp9">Ogre::ResourceManager::mResourceType</a><code> [protected]</code>
1680      </table>
1681    </td>
1682  </tr>
1683</table>
1684<table cellspacing=5 cellpadding=0 border=0>
1685  <tr>
1686    <td>
1687      &nbsp;
1688    </td>
1689    <td>
1690
1691<p>
1692String identifying the resource type this manager handles.
1693<p>
1694
1695<p>
1696Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00402">402</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
1697  </tr>
1698</table>
1699<a class="anchor" name="Ogre_1_1TextureManagerp7" doxytag="Ogre::ResourceManager::mScriptPatterns" ></a><p>
1700<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1701  <tr>
1702    <td class="mdRow">
1703      <table cellpadding="0" cellspacing="0" border="0">
1704        <tr>
1705          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a580">StringVector</a> <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerp7">Ogre::ResourceManager::mScriptPatterns</a><code> [protected]</code>
1706      </table>
1707    </td>
1708  </tr>
1709</table>
1710<table cellspacing=5 cellpadding=0 border=0>
1711  <tr>
1712    <td>
1713      &nbsp;
1714    </td>
1715    <td>
1716
1717<p>
1718Patterns to use to look for scripts if supported (e.g. *.overlay).
1719<p>
1720
1721<p>
1722Definition at line <a class="el" href="OgreResourceManager_8h-source.html#l00398">398</a> of file <a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a>.    </td>
1723  </tr>
1724</table>
1725<hr>The documentation for this class was generated from the following file:<ul>
1726<li><a class="el" href="OgreResourceManager_8h-source.html">OgreResourceManager.h</a></ul>
1727<hr>
1728<p>
1729Copyright &copy; 2000-2005 by The OGRE Team<br />
1730<!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>
1731This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/>
1732                <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
1733                <Work rdf:about="">
1734                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
1735        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
1736                </Work>
1737                <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> -->
1738
1739Last modified Sun Mar 12 14:42:45 2006
1740</p>
1741</body>
1742</html>
Note: See TracBrowser for help on using the repository browser.