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

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

adding ogre 1.2 and dependencies

Line 
1<html>
2<head>
3<title>Ogre::BspResourceManager 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::BspResourceManager Class Reference</h1>Manages the locating and loading of BSP-based indoor levels. 
11<a href="#_details">More...</a>
12<p>
13<code>#include &lt;<a class="el" href="OgreBspResourceManager_8h-source.html">OgreBspResourceManager.h</a>&gt;</code>
14<p>
15<p>Inheritance diagram for Ogre::BspResourceManager:
16<p><center><img src="classOgre_1_1BspResourceManager.png" usemap="#Ogre::BspResourceManager_map" border="0" alt=""></center>
17<map name="Ogre::BspResourceManager_map">
18<area href="classOgre_1_1ResourceManager.html" alt="Ogre::ResourceManager" shape="rect" coords="0,56,249,80">
19<area href="classOgre_1_1Singleton.html" alt="Ogre::Singleton< BspResourceManager >" shape="rect" coords="259,56,508,80">
20<area href="classOgre_1_1ScriptLoader.html" alt="Ogre::ScriptLoader" shape="rect" coords="0,0,249,24">
21</map>
22<a href="classOgre_1_1BspResourceManager-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
23<tr><td></td></tr>
24<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
25<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>
26
27<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::map&lt; <a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>,<br>
28 <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>
29
30<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>
31
32<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
33<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagera0">BspResourceManager</a> ()</td></tr>
34
35<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagera1">~BspResourceManager</a> ()</td></tr>
36
37<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagera2">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>
38
39<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Loads a BSP-based level from the named file.  <a href="#Ogre_1_1BspResourceManagera2"></a><br><br></td></tr>
40<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagera3">load</a> (<a class="el" href="classOgre_1_1SharedPtr.html">DataStreamPtr</a> &amp;stream, const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;group)</td></tr>
41
42<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Loads a BSP-based level from a stream.  <a href="#Ogre_1_1BspResourceManagera3"></a><br><br></td></tr>
43<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>
44
45<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>
46<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>
47
48<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>
49<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>
50
51<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>
52<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>
53
54<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>
55<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>
56
57<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>
58<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>
59
60<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unloads all resources.  <a href="#Ogre_1_1TextureManagera19"></a><br><br></td></tr>
61<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>
62
63<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>
64<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>
65
66<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>
67<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>
68
69<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>
70<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>
71
72<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove a single resource.  <a href="#Ogre_1_1TextureManagera23"></a><br><br></td></tr>
73<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>
74
75<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>
76<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>
77
78<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>
79<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>
80
81<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes all resources.  <a href="#Ogre_1_1TextureManagera26"></a><br><br></td></tr>
82<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>
83
84<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>
85<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>
86
87<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>
88<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>
89
90<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>
91<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>
92
93<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>
94<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>
95
96<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>
97<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>
98
99<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>
100<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>
101
102<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>
103<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>
104
105<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>
106<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>
107
108<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>
109<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>
110
111<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>
112<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>
113
114<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>
115<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw2">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>
116
117<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>
118<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
119<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1BspResourceManager.html">BspResourceManager</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagere0">getSingleton</a> (void)</td></tr>
120
121<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Override standard <a class="el" href="classOgre_1_1Singleton.html">Singleton</a> retrieval.  <a href="#Ogre_1_1BspResourceManagere0"></a><br><br></td></tr>
122<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1BspResourceManager.html">BspResourceManager</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagere1">getSingletonPtr</a> (void)</td></tr>
123
124<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Override standard <a class="el" href="classOgre_1_1Singleton.html">Singleton</a> retrieval.  <a href="#Ogre_1_1BspResourceManagere1"></a><br><br></td></tr>
125<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
126<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Resource.html">Resource</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagerb0">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)</td></tr>
127
128<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><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>
129<dl compact><dt><b>Parameters:</b></dt><dd>
130  <table border="0" cellspacing="2" cellpadding="0">
131    <tr><td valign=top><em>name</em>&nbsp;</td><td>The unique name of the resource </td></tr>
132    <tr><td valign=top><em>group</em>&nbsp;</td><td>The name of the resource group to attach this new resource to </td></tr>
133    <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>
134    <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>
135    <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>
136  </table>
137</dl>
138.  <a href="#Ogre_1_1BspResourceManagerb0"></a><br><br></td></tr>
139<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>
140
141<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocates the next handle.  <a href="#Ogre_1_1TextureManagerb0"></a><br><br></td></tr>
142<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>
143
144<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>
145<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>
146
147<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>
148<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>
149
150<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>
151<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>
152
153<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>
154<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
155<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Quake3ShaderManager.html">Quake3ShaderManager</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagerp0">mShaderMgr</a></td></tr>
156
157<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>
158
159<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>
160
161<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>
162
163<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>
164
165<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>
166
167<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>
168
169<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>
170<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>
171
172<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>
173<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>
174
175<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>
176<tr><td colspan=2><br><h2>Static Protected Attributes</h2></td></tr>
177<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1BspResourceManager.html">BspResourceManager</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Singleton.html#Ogre_1_1Singletont0">ms_Singleton</a></td></tr>
178
179</table>
180<hr><a name="_details"></a><h2>Detailed Description</h2>
181Manages the locating and loading of BSP-based indoor levels.
182<p>
183Like other <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a> specialisations it manages the location and loading of a specific type of resource, in this case files containing Binary Space Partition (BSP) based level files e.g. Quake3 levels. However, note that unlike other <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a> implementations, only 1 <a class="el" href="classOgre_1_1BspLevel.html">BspLevel</a> resource is allowed to be loaded at one time. Loading another automatically unloads the currently loaded level if any.
184<p>
185
186<p>
187Definition at line <a class="el" href="OgreBspResourceManager_8h-source.html#l00042">42</a> of file <a class="el" href="OgreBspResourceManager_8h-source.html">OgreBspResourceManager.h</a>.<hr><h2>Member Typedef Documentation</h2>
188<a class="anchor" name="Ogre_1_1TextureManagerw1" doxytag="Ogre::BspResourceManager::ResourceHandleMap" ></a><p>
189<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
190  <tr>
191    <td class="mdRow">
192      <table cellpadding="0" cellspacing="0" border="0">
193        <tr>
194          <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><code> [inherited]</code>
195      </table>
196    </td>
197  </tr>
198</table>
199<table cellspacing=5 cellpadding=0 border=0>
200  <tr>
201    <td>
202      &nbsp;
203    </td>
204    <td>
205
206<p>
207
208<p>
209Definition 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>
210  </tr>
211</table>
212<a class="anchor" name="Ogre_1_1TextureManagerw0" doxytag="Ogre::BspResourceManager::ResourceMap" ></a><p>
213<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
214  <tr>
215    <td class="mdRow">
216      <table cellpadding="0" cellspacing="0" border="0">
217        <tr>
218          <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><code> [inherited]</code>
219      </table>
220    </td>
221  </tr>
222</table>
223<table cellspacing=5 cellpadding=0 border=0>
224  <tr>
225    <td>
226      &nbsp;
227    </td>
228    <td>
229
230<p>
231
232<p>
233Definition 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>
234  </tr>
235</table>
236<a class="anchor" name="Ogre_1_1TextureManagerw2" doxytag="Ogre::BspResourceManager::ResourceMapIterator" ></a><p>
237<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
238  <tr>
239    <td class="mdRow">
240      <table cellpadding="0" cellspacing="0" border="0">
241        <tr>
242          <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><code> [inherited]</code>
243      </table>
244    </td>
245  </tr>
246</table>
247<table cellspacing=5 cellpadding=0 border=0>
248  <tr>
249    <td>
250      &nbsp;
251    </td>
252    <td>
253
254<p>
255
256<p>
257Definition 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>.
258<p>
259Referenced by <a class="el" href="OgreResourceManager_8h-source.html#l00410">Ogre::ResourceManager::getResourceIterator()</a>.    </td>
260  </tr>
261</table>
262<hr><h2>Constructor &amp; Destructor Documentation</h2>
263<a class="anchor" name="Ogre_1_1BspResourceManagera0" doxytag="Ogre::BspResourceManager::BspResourceManager" ></a><p>
264<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
265  <tr>
266    <td class="mdRow">
267      <table cellpadding="0" cellspacing="0" border="0">
268        <tr>
269          <td class="md" nowrap valign="top"> Ogre::BspResourceManager::BspResourceManager </td>
270          <td class="md" valign="top">(&nbsp;</td>
271          <td class="mdname1" valign="top" nowrap>          </td>
272          <td class="md" valign="top">&nbsp;)&nbsp;</td>
273          <td class="md" nowrap></td>
274        </tr>
275
276      </table>
277    </td>
278  </tr>
279</table>
280<table cellspacing=5 cellpadding=0 border=0>
281  <tr>
282    <td>
283      &nbsp;
284    </td>
285    <td>
286
287<p>
288    </td>
289  </tr>
290</table>
291<a class="anchor" name="Ogre_1_1BspResourceManagera1" doxytag="Ogre::BspResourceManager::~BspResourceManager" ></a><p>
292<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
293  <tr>
294    <td class="mdRow">
295      <table cellpadding="0" cellspacing="0" border="0">
296        <tr>
297          <td class="md" nowrap valign="top"> Ogre::BspResourceManager::~<a class="el" href="classOgre_1_1BspResourceManager.html">BspResourceManager</a> </td>
298          <td class="md" valign="top">(&nbsp;</td>
299          <td class="mdname1" valign="top" nowrap>          </td>
300          <td class="md" valign="top">&nbsp;)&nbsp;</td>
301          <td class="md" nowrap></td>
302        </tr>
303
304      </table>
305    </td>
306  </tr>
307</table>
308<table cellspacing=5 cellpadding=0 border=0>
309  <tr>
310    <td>
311      &nbsp;
312    </td>
313    <td>
314
315<p>
316    </td>
317  </tr>
318</table>
319<hr><h2>Member Function Documentation</h2>
320<a class="anchor" name="Ogre_1_1TextureManagera32" doxytag="Ogre::BspResourceManager::_notifyResourceLoaded" ></a><p>
321<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
322  <tr>
323    <td class="mdRow">
324      <table cellpadding="0" cellspacing="0" border="0">
325        <tr>
326          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::_notifyResourceLoaded </td>
327          <td class="md" valign="top">(&nbsp;</td>
328          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1Resource.html">Resource</a> *&nbsp;</td>
329          <td class="mdname1" valign="top" nowrap> <em>res</em>          </td>
330          <td class="md" valign="top">&nbsp;)&nbsp;</td>
331          <td class="md" nowrap><code> [virtual, inherited]</code></td>
332        </tr>
333
334      </table>
335    </td>
336  </tr>
337</table>
338<table cellspacing=5 cellpadding=0 border=0>
339  <tr>
340    <td>
341      &nbsp;
342    </td>
343    <td>
344
345<p>
346Notify this manager that a resource which it manages has been loaded.
347<p>
348    </td>
349  </tr>
350</table>
351<a class="anchor" name="Ogre_1_1TextureManagera31" doxytag="Ogre::BspResourceManager::_notifyResourceTouched" ></a><p>
352<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
353  <tr>
354    <td class="mdRow">
355      <table cellpadding="0" cellspacing="0" border="0">
356        <tr>
357          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::_notifyResourceTouched </td>
358          <td class="md" valign="top">(&nbsp;</td>
359          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1Resource.html">Resource</a> *&nbsp;</td>
360          <td class="mdname1" valign="top" nowrap> <em>res</em>          </td>
361          <td class="md" valign="top">&nbsp;)&nbsp;</td>
362          <td class="md" nowrap><code> [virtual, inherited]</code></td>
363        </tr>
364
365      </table>
366    </td>
367  </tr>
368</table>
369<table cellspacing=5 cellpadding=0 border=0>
370  <tr>
371    <td>
372      &nbsp;
373    </td>
374    <td>
375
376<p>
377Notify this manager that a resource which it manages has been 'touched', ie used.
378<p>
379    </td>
380  </tr>
381</table>
382<a class="anchor" name="Ogre_1_1TextureManagera33" doxytag="Ogre::BspResourceManager::_notifyResourceUnloaded" ></a><p>
383<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
384  <tr>
385    <td class="mdRow">
386      <table cellpadding="0" cellspacing="0" border="0">
387        <tr>
388          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::_notifyResourceUnloaded </td>
389          <td class="md" valign="top">(&nbsp;</td>
390          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1Resource.html">Resource</a> *&nbsp;</td>
391          <td class="mdname1" valign="top" nowrap> <em>res</em>          </td>
392          <td class="md" valign="top">&nbsp;)&nbsp;</td>
393          <td class="md" nowrap><code> [virtual, inherited]</code></td>
394        </tr>
395
396      </table>
397    </td>
398  </tr>
399</table>
400<table cellspacing=5 cellpadding=0 border=0>
401  <tr>
402    <td>
403      &nbsp;
404    </td>
405    <td>
406
407<p>
408Notify this manager that a resource which it manages has been unloaded.
409<p>
410    </td>
411  </tr>
412</table>
413<a class="anchor" name="Ogre_1_1TextureManagerb2" doxytag="Ogre::BspResourceManager::addImpl" ></a><p>
414<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
415  <tr>
416    <td class="mdRow">
417      <table cellpadding="0" cellspacing="0" border="0">
418        <tr>
419          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::addImpl </td>
420          <td class="md" valign="top">(&nbsp;</td>
421          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &amp;&nbsp;</td>
422          <td class="mdname1" valign="top" nowrap> <em>res</em>          </td>
423          <td class="md" valign="top">&nbsp;)&nbsp;</td>
424          <td class="md" nowrap><code> [protected, virtual, inherited]</code></td>
425        </tr>
426
427      </table>
428    </td>
429  </tr>
430</table>
431<table cellspacing=5 cellpadding=0 border=0>
432  <tr>
433    <td>
434      &nbsp;
435    </td>
436    <td>
437
438<p>
439Add a newly created resource to the manager (note weak reference).
440<p>
441    </td>
442  </tr>
443</table>
444<a class="anchor" name="Ogre_1_1TextureManagerb4" doxytag="Ogre::BspResourceManager::checkUsage" ></a><p>
445<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
446  <tr>
447    <td class="mdRow">
448      <table cellpadding="0" cellspacing="0" border="0">
449        <tr>
450          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::checkUsage </td>
451          <td class="md" valign="top">(&nbsp;</td>
452          <td class="md" nowrap valign="top">void&nbsp;</td>
453          <td class="mdname1" valign="top" nowrap>          </td>
454          <td class="md" valign="top">&nbsp;)&nbsp;</td>
455          <td class="md" nowrap><code> [protected, virtual, inherited]</code></td>
456        </tr>
457
458      </table>
459    </td>
460  </tr>
461</table>
462<table cellspacing=5 cellpadding=0 border=0>
463  <tr>
464    <td>
465      &nbsp;
466    </td>
467    <td>
468
469<p>
470Checks memory usage and pages out if required.
471<p>
472    </td>
473  </tr>
474</table>
475<a class="anchor" name="Ogre_1_1TextureManagera14" doxytag="Ogre::BspResourceManager::create" ></a><p>
476<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
477  <tr>
478    <td class="mdRow">
479      <table cellpadding="0" cellspacing="0" border="0">
480        <tr>
481          <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> Ogre::ResourceManager::create </td>
482          <td class="md" valign="top">(&nbsp;</td>
483          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
484          <td class="mdname" nowrap> <em>name</em>, </td>
485        </tr>
486        <tr>
487          <td class="md" nowrap align="right"></td>
488          <td></td>
489          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
490          <td class="mdname" nowrap> <em>group</em>, </td>
491        </tr>
492        <tr>
493          <td class="md" nowrap align="right"></td>
494          <td></td>
495          <td class="md" nowrap>bool&nbsp;</td>
496          <td class="mdname" nowrap> <em>isManual</em> = false, </td>
497        </tr>
498        <tr>
499          <td class="md" nowrap align="right"></td>
500          <td></td>
501          <td class="md" nowrap><a class="el" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a> *&nbsp;</td>
502          <td class="mdname" nowrap> <em>loader</em> = 0, </td>
503        </tr>
504        <tr>
505          <td class="md" nowrap align="right"></td>
506          <td></td>
507          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a76">NameValuePairList</a> *&nbsp;</td>
508          <td class="mdname" nowrap> <em>createParams</em> = 0</td>
509        </tr>
510        <tr>
511          <td></td>
512          <td class="md">)&nbsp;</td>
513          <td class="md" colspan="2"><code> [virtual, inherited]</code></td>
514        </tr>
515
516      </table>
517    </td>
518  </tr>
519</table>
520<table cellspacing=5 cellpadding=0 border=0>
521  <tr>
522    <td>
523      &nbsp;
524    </td>
525    <td>
526
527<p>
528Creates a new blank resource, but does not immediately load it.
529<p>
530<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>
531<dl compact><dt><b>Parameters:</b></dt><dd>
532  <table border="0" cellspacing="2" cellpadding="0">
533    <tr><td valign=top><em>name</em>&nbsp;</td><td>The unique name of the resource </td></tr>
534    <tr><td valign=top><em>group</em>&nbsp;</td><td>The name of the resource group to attach this new resource to </td></tr>
535    <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>
536    <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>
537    <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>
538  </table>
539</dl>
540    </td>
541  </tr>
542</table>
543<a class="anchor" name="Ogre_1_1BspResourceManagerb0" doxytag="Ogre::BspResourceManager::createImpl" ></a><p>
544<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
545  <tr>
546    <td class="mdRow">
547      <table cellpadding="0" cellspacing="0" border="0">
548        <tr>
549          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Resource.html">Resource</a>* Ogre::BspResourceManager::createImpl </td>
550          <td class="md" valign="top">(&nbsp;</td>
551          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
552          <td class="mdname" nowrap> <em>name</em>, </td>
553        </tr>
554        <tr>
555          <td class="md" nowrap align="right"></td>
556          <td></td>
557          <td class="md" nowrap><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td>
558          <td class="mdname" nowrap> <em>handle</em>, </td>
559        </tr>
560        <tr>
561          <td class="md" nowrap align="right"></td>
562          <td></td>
563          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
564          <td class="mdname" nowrap> <em>group</em>, </td>
565        </tr>
566        <tr>
567          <td class="md" nowrap align="right"></td>
568          <td></td>
569          <td class="md" nowrap>bool&nbsp;</td>
570          <td class="mdname" nowrap> <em>isManual</em>, </td>
571        </tr>
572        <tr>
573          <td class="md" nowrap align="right"></td>
574          <td></td>
575          <td class="md" nowrap><a class="el" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a> *&nbsp;</td>
576          <td class="mdname" nowrap> <em>loader</em>, </td>
577        </tr>
578        <tr>
579          <td class="md" nowrap align="right"></td>
580          <td></td>
581          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a76">NameValuePairList</a> *&nbsp;</td>
582          <td class="mdname" nowrap> <em>createParams</em></td>
583        </tr>
584        <tr>
585          <td></td>
586          <td class="md">)&nbsp;</td>
587          <td class="md" colspan="2"><code> [protected, virtual]</code></td>
588        </tr>
589
590      </table>
591    </td>
592  </tr>
593</table>
594<table cellspacing=5 cellpadding=0 border=0>
595  <tr>
596    <td>
597      &nbsp;
598    </td>
599    <td>
600
601<p>
602<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>
603<dl compact><dt><b>Parameters:</b></dt><dd>
604  <table border="0" cellspacing="2" cellpadding="0">
605    <tr><td valign=top><em>name</em>&nbsp;</td><td>The unique name of the resource </td></tr>
606    <tr><td valign=top><em>group</em>&nbsp;</td><td>The name of the resource group to attach this new resource to </td></tr>
607    <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>
608    <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>
609    <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>
610  </table>
611</dl>
612.
613<p>
614
615<p>
616Implements <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerb1">Ogre::ResourceManager</a>.    </td>
617  </tr>
618</table>
619<a class="anchor" name="Ogre_1_1TextureManagera28" doxytag="Ogre::BspResourceManager::getByHandle" ></a><p>
620<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
621  <tr>
622    <td class="mdRow">
623      <table cellpadding="0" cellspacing="0" border="0">
624        <tr>
625          <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> Ogre::ResourceManager::getByHandle </td>
626          <td class="md" valign="top">(&nbsp;</td>
627          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td>
628          <td class="mdname1" valign="top" nowrap> <em>handle</em>          </td>
629          <td class="md" valign="top">&nbsp;)&nbsp;</td>
630          <td class="md" nowrap><code> [virtual, inherited]</code></td>
631        </tr>
632
633      </table>
634    </td>
635  </tr>
636</table>
637<table cellspacing=5 cellpadding=0 border=0>
638  <tr>
639    <td>
640      &nbsp;
641    </td>
642    <td>
643
644<p>
645Retrieves a pointer to a resource by handle, or null if the resource does not exist.
646<p>
647    </td>
648  </tr>
649</table>
650<a class="anchor" name="Ogre_1_1TextureManagera27" doxytag="Ogre::BspResourceManager::getByName" ></a><p>
651<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
652  <tr>
653    <td class="mdRow">
654      <table cellpadding="0" cellspacing="0" border="0">
655        <tr>
656          <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> Ogre::ResourceManager::getByName </td>
657          <td class="md" valign="top">(&nbsp;</td>
658          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
659          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
660          <td class="md" valign="top">&nbsp;)&nbsp;</td>
661          <td class="md" nowrap><code> [virtual, inherited]</code></td>
662        </tr>
663
664      </table>
665    </td>
666  </tr>
667</table>
668<table cellspacing=5 cellpadding=0 border=0>
669  <tr>
670    <td>
671      &nbsp;
672    </td>
673    <td>
674
675<p>
676Retrieves a pointer to a resource by name, or null if the resource does not exist.
677<p>
678    </td>
679  </tr>
680</table>
681<a class="anchor" name="Ogre_1_1TextureManagera37" doxytag="Ogre::BspResourceManager::getLoadingOrder" ></a><p>
682<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
683  <tr>
684    <td class="mdRow">
685      <table cellpadding="0" cellspacing="0" border="0">
686        <tr>
687          <td class="md" nowrap valign="top"> virtual <a class="el" href="namespaceOgre.html#a465">Real</a> Ogre::ResourceManager::getLoadingOrder </td>
688          <td class="md" valign="top">(&nbsp;</td>
689          <td class="md" nowrap valign="top">void&nbsp;</td>
690          <td class="mdname1" valign="top" nowrap>          </td>
691          <td class="md" valign="top">&nbsp;)&nbsp;</td>
692          <td class="md" nowrap> const<code> [virtual, inherited]</code></td>
693        </tr>
694
695      </table>
696    </td>
697  </tr>
698</table>
699<table cellspacing=5 cellpadding=0 border=0>
700  <tr>
701    <td>
702      &nbsp;
703    </td>
704    <td>
705
706<p>
707Gets the relative loading order of resources of this type.
708<p>
709<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>
710
711<p>
712Implements <a class="el" href="classOgre_1_1ScriptLoader.html#Ogre_1_1ScriptLoadera3">Ogre::ScriptLoader</a>.
713<p>
714Definition 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>.
715<p>
716References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
717  </tr>
718</table>
719<a class="anchor" name="Ogre_1_1TextureManagera16" doxytag="Ogre::BspResourceManager::getMemoryBudget" ></a><p>
720<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
721  <tr>
722    <td class="mdRow">
723      <table cellpadding="0" cellspacing="0" border="0">
724        <tr>
725          <td class="md" nowrap valign="top"> virtual size_t Ogre::ResourceManager::getMemoryBudget </td>
726          <td class="md" valign="top">(&nbsp;</td>
727          <td class="md" nowrap valign="top">void&nbsp;</td>
728          <td class="mdname1" valign="top" nowrap>          </td>
729          <td class="md" valign="top">&nbsp;)&nbsp;</td>
730          <td class="md" nowrap> const<code> [virtual, inherited]</code></td>
731        </tr>
732
733      </table>
734    </td>
735  </tr>
736</table>
737<table cellspacing=5 cellpadding=0 border=0>
738  <tr>
739    <td>
740      &nbsp;
741    </td>
742    <td>
743
744<p>
745Get the limit on the amount of memory this resource handler may use.
746<p>
747    </td>
748  </tr>
749</table>
750<a class="anchor" name="Ogre_1_1TextureManagerb5" doxytag="Ogre::BspResourceManager::getMemoryUsage" ></a><p>
751<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
752  <tr>
753    <td class="mdRow">
754      <table cellpadding="0" cellspacing="0" border="0">
755        <tr>
756          <td class="md" nowrap valign="top"> virtual size_t Ogre::ResourceManager::getMemoryUsage </td>
757          <td class="md" valign="top">(&nbsp;</td>
758          <td class="md" nowrap valign="top">void&nbsp;</td>
759          <td class="mdname1" valign="top" nowrap>          </td>
760          <td class="md" valign="top">&nbsp;)&nbsp;</td>
761          <td class="md" nowrap> const<code> [protected, virtual, inherited]</code></td>
762        </tr>
763
764      </table>
765    </td>
766  </tr>
767</table>
768<table cellspacing=5 cellpadding=0 border=0>
769  <tr>
770    <td>
771      &nbsp;
772    </td>
773    <td>
774
775<p>
776Gets the current memory usage, in bytes.
777<p>
778
779<p>
780Definition 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>
781  </tr>
782</table>
783<a class="anchor" name="Ogre_1_1TextureManagerb0" doxytag="Ogre::BspResourceManager::getNextHandle" ></a><p>
784<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
785  <tr>
786    <td class="mdRow">
787      <table cellpadding="0" cellspacing="0" border="0">
788        <tr>
789          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a529">ResourceHandle</a> Ogre::ResourceManager::getNextHandle </td>
790          <td class="md" valign="top">(&nbsp;</td>
791          <td class="md" nowrap valign="top">void&nbsp;</td>
792          <td class="mdname1" valign="top" nowrap>          </td>
793          <td class="md" valign="top">&nbsp;)&nbsp;</td>
794          <td class="md" nowrap><code> [protected, inherited]</code></td>
795        </tr>
796
797      </table>
798    </td>
799  </tr>
800</table>
801<table cellspacing=5 cellpadding=0 border=0>
802  <tr>
803    <td>
804      &nbsp;
805    </td>
806    <td>
807
808<p>
809Allocates the next handle.
810<p>
811    </td>
812  </tr>
813</table>
814<a class="anchor" name="Ogre_1_1TextureManagera39" doxytag="Ogre::BspResourceManager::getResourceIterator" ></a><p>
815<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
816  <tr>
817    <td class="mdRow">
818      <table cellpadding="0" cellspacing="0" border="0">
819        <tr>
820          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagerw2">ResourceMapIterator</a> Ogre::ResourceManager::getResourceIterator </td>
821          <td class="md" valign="top">(&nbsp;</td>
822          <td class="md" nowrap valign="top">void&nbsp;</td>
823          <td class="mdname1" valign="top" nowrap>          </td>
824          <td class="md" valign="top">&nbsp;)&nbsp;</td>
825          <td class="md" nowrap><code> [inherited]</code></td>
826        </tr>
827
828      </table>
829    </td>
830  </tr>
831</table>
832<table cellspacing=5 cellpadding=0 border=0>
833  <tr>
834    <td>
835      &nbsp;
836    </td>
837    <td>
838
839<p>
840Returns an iterator over all resources in this manager.
841<p>
842<dl compact><dt><b>Note:</b></dt><dd>Use of this iterator is NOT thread safe! </dd></dl>
843
844<p>
845Definition 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>.
846<p>
847References <a class="el" href="OgreResourceManager_8h-source.html#l00405">Ogre::ResourceManager::ResourceMapIterator</a>.    </td>
848  </tr>
849</table>
850<a class="anchor" name="Ogre_1_1TextureManagera38" doxytag="Ogre::BspResourceManager::getResourceType" ></a><p>
851<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
852  <tr>
853    <td class="mdRow">
854      <table cellpadding="0" cellspacing="0" border="0">
855        <tr>
856          <td class="md" nowrap valign="top"> const <a class="el" href="namespaceOgre.html#a471">String</a>&amp; Ogre::ResourceManager::getResourceType </td>
857          <td class="md" valign="top">(&nbsp;</td>
858          <td class="md" nowrap valign="top">void&nbsp;</td>
859          <td class="mdname1" valign="top" nowrap>          </td>
860          <td class="md" valign="top">&nbsp;)&nbsp;</td>
861          <td class="md" nowrap> const<code> [inherited]</code></td>
862        </tr>
863
864      </table>
865    </td>
866  </tr>
867</table>
868<table cellspacing=5 cellpadding=0 border=0>
869  <tr>
870    <td>
871      &nbsp;
872    </td>
873    <td>
874
875<p>
876Gets a string identifying the type of resource this manager handles.
877<p>
878
879<p>
880Definition 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>.
881<p>
882References <a class="el" href="OgrePrerequisites_8h-source.html#l00156">Ogre::String</a>.    </td>
883  </tr>
884</table>
885<a class="anchor" name="Ogre_1_1TextureManagera35" doxytag="Ogre::BspResourceManager::getScriptPatterns" ></a><p>
886<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
887  <tr>
888    <td class="mdRow">
889      <table cellpadding="0" cellspacing="0" border="0">
890        <tr>
891          <td class="md" nowrap valign="top"> virtual const <a class="el" href="namespaceOgre.html#a580">StringVector</a>&amp; Ogre::ResourceManager::getScriptPatterns </td>
892          <td class="md" valign="top">(&nbsp;</td>
893          <td class="md" nowrap valign="top">void&nbsp;</td>
894          <td class="mdname1" valign="top" nowrap>          </td>
895          <td class="md" valign="top">&nbsp;)&nbsp;</td>
896          <td class="md" nowrap> const<code> [virtual, inherited]</code></td>
897        </tr>
898
899      </table>
900    </td>
901  </tr>
902</table>
903<table cellspacing=5 cellpadding=0 border=0>
904  <tr>
905    <td>
906      &nbsp;
907    </td>
908    <td>
909
910<p>
911Gets the file patterns which should be used to find scripts for this <a class="el" href="classOgre_1_1ResourceManager.html">ResourceManager</a>.
912<p>
913<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>
914<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>
915<dl compact><dt><b>Returns:</b></dt><dd>A list of file patterns, in the order they should be searched in. </dd></dl>
916<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>
917
918<p>
919Implements <a class="el" href="classOgre_1_1ScriptLoader.html#Ogre_1_1ScriptLoadera1">Ogre::ScriptLoader</a>.
920<p>
921Definition 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>.
922<p>
923References <a class="el" href="OgreStringVector_8h-source.html#l00036">Ogre::StringVector</a>.    </td>
924  </tr>
925</table>
926<a class="anchor" name="Ogre_1_1BspResourceManagere0" doxytag="Ogre::BspResourceManager::getSingleton" ></a><p>
927<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
928  <tr>
929    <td class="mdRow">
930      <table cellpadding="0" cellspacing="0" border="0">
931        <tr>
932          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1BspResourceManager.html">BspResourceManager</a>&amp; Ogre::BspResourceManager::getSingleton </td>
933          <td class="md" valign="top">(&nbsp;</td>
934          <td class="md" nowrap valign="top">void&nbsp;</td>
935          <td class="mdname1" valign="top" nowrap>          </td>
936          <td class="md" valign="top">&nbsp;)&nbsp;</td>
937          <td class="md" nowrap><code> [static]</code></td>
938        </tr>
939
940      </table>
941    </td>
942  </tr>
943</table>
944<table cellspacing=5 cellpadding=0 border=0>
945  <tr>
946    <td>
947      &nbsp;
948    </td>
949    <td>
950
951<p>
952Override standard <a class="el" href="classOgre_1_1Singleton.html">Singleton</a> retrieval.
953<p>
954<dl compact><dt><b>Remarks:</b></dt><dd>Why do we do this? Well, it's because the <a class="el" href="classOgre_1_1Singleton.html">Singleton</a> implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the <a class="el" href="classOgre_1_1Singleton.html">Singleton</a> template to work, but we actually only want it compiled into the implementation of the class based on the <a class="el" href="classOgre_1_1Singleton.html">Singleton</a>, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. </dd></dl>
955<dl compact><dt><b></b></dt><dd>This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. </dd></dl>
956
957<p>
958Reimplemented from <a class="el" href="classOgre_1_1Singleton.html#Ogre_1_1Singletone0">Ogre::Singleton&lt; BspResourceManager &gt;</a>.    </td>
959  </tr>
960</table>
961<a class="anchor" name="Ogre_1_1BspResourceManagere1" doxytag="Ogre::BspResourceManager::getSingletonPtr" ></a><p>
962<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
963  <tr>
964    <td class="mdRow">
965      <table cellpadding="0" cellspacing="0" border="0">
966        <tr>
967          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1BspResourceManager.html">BspResourceManager</a>* Ogre::BspResourceManager::getSingletonPtr </td>
968          <td class="md" valign="top">(&nbsp;</td>
969          <td class="md" nowrap valign="top">void&nbsp;</td>
970          <td class="mdname1" valign="top" nowrap>          </td>
971          <td class="md" valign="top">&nbsp;)&nbsp;</td>
972          <td class="md" nowrap><code> [static]</code></td>
973        </tr>
974
975      </table>
976    </td>
977  </tr>
978</table>
979<table cellspacing=5 cellpadding=0 border=0>
980  <tr>
981    <td>
982      &nbsp;
983    </td>
984    <td>
985
986<p>
987Override standard <a class="el" href="classOgre_1_1Singleton.html">Singleton</a> retrieval.
988<p>
989<dl compact><dt><b>Remarks:</b></dt><dd>Why do we do this? Well, it's because the <a class="el" href="classOgre_1_1Singleton.html">Singleton</a> implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the <a class="el" href="classOgre_1_1Singleton.html">Singleton</a> template to work, but we actually only want it compiled into the implementation of the class based on the <a class="el" href="classOgre_1_1Singleton.html">Singleton</a>, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. </dd></dl>
990<dl compact><dt><b></b></dt><dd>This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors. </dd></dl>
991
992<p>
993Reimplemented from <a class="el" href="classOgre_1_1Singleton.html#Ogre_1_1Singletone1">Ogre::Singleton&lt; BspResourceManager &gt;</a>.    </td>
994  </tr>
995</table>
996<a class="anchor" name="Ogre_1_1BspResourceManagera3" doxytag="Ogre::BspResourceManager::load" ></a><p>
997<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
998  <tr>
999    <td class="mdRow">
1000      <table cellpadding="0" cellspacing="0" border="0">
1001        <tr>
1002          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> Ogre::BspResourceManager::load </td>
1003          <td class="md" valign="top">(&nbsp;</td>
1004          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">DataStreamPtr</a> &amp;&nbsp;</td>
1005          <td class="mdname" nowrap> <em>stream</em>, </td>
1006        </tr>
1007        <tr>
1008          <td class="md" nowrap align="right"></td>
1009          <td></td>
1010          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
1011          <td class="mdname" nowrap> <em>group</em></td>
1012        </tr>
1013        <tr>
1014          <td></td>
1015          <td class="md">)&nbsp;</td>
1016          <td class="md" colspan="2"></td>
1017        </tr>
1018
1019      </table>
1020    </td>
1021  </tr>
1022</table>
1023<table cellspacing=5 cellpadding=0 border=0>
1024  <tr>
1025    <td>
1026      &nbsp;
1027    </td>
1028    <td>
1029
1030<p>
1031Loads a BSP-based level from a stream.
1032<p>
1033Currently only supports loading of Quake3 .bsp files.     </td>
1034  </tr>
1035</table>
1036<a class="anchor" name="Ogre_1_1BspResourceManagera2" doxytag="Ogre::BspResourceManager::load" ></a><p>
1037<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1038  <tr>
1039    <td class="mdRow">
1040      <table cellpadding="0" cellspacing="0" border="0">
1041        <tr>
1042          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> Ogre::BspResourceManager::load </td>
1043          <td class="md" valign="top">(&nbsp;</td>
1044          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
1045          <td class="mdname" nowrap> <em>name</em>, </td>
1046        </tr>
1047        <tr>
1048          <td class="md" nowrap align="right"></td>
1049          <td></td>
1050          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
1051          <td class="mdname" nowrap> <em>group</em>, </td>
1052        </tr>
1053        <tr>
1054          <td class="md" nowrap align="right"></td>
1055          <td></td>
1056          <td class="md" nowrap>bool&nbsp;</td>
1057          <td class="mdname" nowrap> <em>isManual</em> = false, </td>
1058        </tr>
1059        <tr>
1060          <td class="md" nowrap align="right"></td>
1061          <td></td>
1062          <td class="md" nowrap><a class="el" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a> *&nbsp;</td>
1063          <td class="mdname" nowrap> <em>loader</em> = 0, </td>
1064        </tr>
1065        <tr>
1066          <td class="md" nowrap align="right"></td>
1067          <td></td>
1068          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a76">NameValuePairList</a> *&nbsp;</td>
1069          <td class="mdname" nowrap> <em>loadParams</em> = 0</td>
1070        </tr>
1071        <tr>
1072          <td></td>
1073          <td class="md">)&nbsp;</td>
1074          <td class="md" colspan="2"><code> [virtual]</code></td>
1075        </tr>
1076
1077      </table>
1078    </td>
1079  </tr>
1080</table>
1081<table cellspacing=5 cellpadding=0 border=0>
1082  <tr>
1083    <td>
1084      &nbsp;
1085    </td>
1086    <td>
1087
1088<p>
1089Loads a BSP-based level from the named file.
1090<p>
1091Currently only supports loading of Quake3 .bsp files.
1092<p>
1093Reimplemented from <a class="el" href="classOgre_1_1ResourceManager.html#Ogre_1_1TextureManagera34">Ogre::ResourceManager</a>.    </td>
1094  </tr>
1095</table>
1096<a class="anchor" name="Ogre_1_1TextureManagera36" doxytag="Ogre::BspResourceManager::parseScript" ></a><p>
1097<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1098  <tr>
1099    <td class="mdRow">
1100      <table cellpadding="0" cellspacing="0" border="0">
1101        <tr>
1102          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::parseScript </td>
1103          <td class="md" valign="top">(&nbsp;</td>
1104          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">DataStreamPtr</a> &amp;&nbsp;</td>
1105          <td class="mdname" nowrap> <em>stream</em>, </td>
1106        </tr>
1107        <tr>
1108          <td class="md" nowrap align="right"></td>
1109          <td></td>
1110          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
1111          <td class="mdname" nowrap> <em>groupName</em></td>
1112        </tr>
1113        <tr>
1114          <td></td>
1115          <td class="md">)&nbsp;</td>
1116          <td class="md" colspan="2"><code> [virtual, inherited]</code></td>
1117        </tr>
1118
1119      </table>
1120    </td>
1121  </tr>
1122</table>
1123<table cellspacing=5 cellpadding=0 border=0>
1124  <tr>
1125    <td>
1126      &nbsp;
1127    </td>
1128    <td>
1129
1130<p>
1131Parse the definition of a set of resources from a script file.
1132<p>
1133<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>
1134<dl compact><dt><b>Parameters:</b></dt><dd>
1135  <table border="0" cellspacing="2" cellpadding="0">
1136    <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>
1137    <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>
1138  </table>
1139</dl>
1140
1141<p>
1142Implements <a class="el" href="classOgre_1_1ScriptLoader.html#Ogre_1_1ScriptLoadera2">Ogre::ScriptLoader</a>.
1143<p>
1144Reimplemented 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>.
1145<p>
1146Definition 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>.
1147<p>
1148References <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>
1149  </tr>
1150</table>
1151<a class="anchor" name="Ogre_1_1TextureManagera20" doxytag="Ogre::BspResourceManager::reloadAll" ></a><p>
1152<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1153  <tr>
1154    <td class="mdRow">
1155      <table cellpadding="0" cellspacing="0" border="0">
1156        <tr>
1157          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::reloadAll </td>
1158          <td class="md" valign="top">(&nbsp;</td>
1159          <td class="md" nowrap valign="top">bool&nbsp;</td>
1160          <td class="mdname1" valign="top" nowrap> <em>reloadableOnly</em> = true          </td>
1161          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1162          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1163        </tr>
1164
1165      </table>
1166    </td>
1167  </tr>
1168</table>
1169<table cellspacing=5 cellpadding=0 border=0>
1170  <tr>
1171    <td>
1172      &nbsp;
1173    </td>
1174    <td>
1175
1176<p>
1177Caused all currently loaded resources to be reloaded.
1178<p>
1179<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>
1180<dl compact><dt><b>Parameters:</b></dt><dd>
1181  <table border="0" cellspacing="2" cellpadding="0">
1182    <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>
1183  </table>
1184</dl>
1185<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>
1186    </td>
1187  </tr>
1188</table>
1189<a class="anchor" name="Ogre_1_1TextureManagera22" doxytag="Ogre::BspResourceManager::reloadUnreferencedResources" ></a><p>
1190<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1191  <tr>
1192    <td class="mdRow">
1193      <table cellpadding="0" cellspacing="0" border="0">
1194        <tr>
1195          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::reloadUnreferencedResources </td>
1196          <td class="md" valign="top">(&nbsp;</td>
1197          <td class="md" nowrap valign="top">bool&nbsp;</td>
1198          <td class="mdname1" valign="top" nowrap> <em>reloadableOnly</em> = true          </td>
1199          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1200          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1201        </tr>
1202
1203      </table>
1204    </td>
1205  </tr>
1206</table>
1207<table cellspacing=5 cellpadding=0 border=0>
1208  <tr>
1209    <td>
1210      &nbsp;
1211    </td>
1212    <td>
1213
1214<p>
1215Caused all currently loaded but not referenced by any other object resources to be reloaded.
1216<p>
1217<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>
1218<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>
1219<dl compact><dt><b>Parameters:</b></dt><dd>
1220  <table border="0" cellspacing="2" cellpadding="0">
1221    <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>
1222  </table>
1223</dl>
1224    </td>
1225  </tr>
1226</table>
1227<a class="anchor" name="Ogre_1_1TextureManagera25" doxytag="Ogre::BspResourceManager::remove" ></a><p>
1228<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1229  <tr>
1230    <td class="mdRow">
1231      <table cellpadding="0" cellspacing="0" border="0">
1232        <tr>
1233          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::remove </td>
1234          <td class="md" valign="top">(&nbsp;</td>
1235          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td>
1236          <td class="mdname1" valign="top" nowrap> <em>handle</em>          </td>
1237          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1238          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1239        </tr>
1240
1241      </table>
1242    </td>
1243  </tr>
1244</table>
1245<table cellspacing=5 cellpadding=0 border=0>
1246  <tr>
1247    <td>
1248      &nbsp;
1249    </td>
1250    <td>
1251
1252<p>
1253Remove a single resource by handle.
1254<p>
1255<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>
1256<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>
1257If 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>
1258    </td>
1259  </tr>
1260</table>
1261<a class="anchor" name="Ogre_1_1TextureManagera24" doxytag="Ogre::BspResourceManager::remove" ></a><p>
1262<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1263  <tr>
1264    <td class="mdRow">
1265      <table cellpadding="0" cellspacing="0" border="0">
1266        <tr>
1267          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::remove </td>
1268          <td class="md" valign="top">(&nbsp;</td>
1269          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
1270          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
1271          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1272          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1273        </tr>
1274
1275      </table>
1276    </td>
1277  </tr>
1278</table>
1279<table cellspacing=5 cellpadding=0 border=0>
1280  <tr>
1281    <td>
1282      &nbsp;
1283    </td>
1284    <td>
1285
1286<p>
1287Remove a single resource by name.
1288<p>
1289<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>
1290<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>
1291If 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>
1292    </td>
1293  </tr>
1294</table>
1295<a class="anchor" name="Ogre_1_1TextureManagera23" doxytag="Ogre::BspResourceManager::remove" ></a><p>
1296<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1297  <tr>
1298    <td class="mdRow">
1299      <table cellpadding="0" cellspacing="0" border="0">
1300        <tr>
1301          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::remove </td>
1302          <td class="md" valign="top">(&nbsp;</td>
1303          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &amp;&nbsp;</td>
1304          <td class="mdname1" valign="top" nowrap> <em>r</em>          </td>
1305          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1306          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1307        </tr>
1308
1309      </table>
1310    </td>
1311  </tr>
1312</table>
1313<table cellspacing=5 cellpadding=0 border=0>
1314  <tr>
1315    <td>
1316      &nbsp;
1317    </td>
1318    <td>
1319
1320<p>
1321Remove a single resource.
1322<p>
1323<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>
1324<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>
1325If 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>
1326    </td>
1327  </tr>
1328</table>
1329<a class="anchor" name="Ogre_1_1TextureManagera26" doxytag="Ogre::BspResourceManager::removeAll" ></a><p>
1330<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1331  <tr>
1332    <td class="mdRow">
1333      <table cellpadding="0" cellspacing="0" border="0">
1334        <tr>
1335          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::removeAll </td>
1336          <td class="md" valign="top">(&nbsp;</td>
1337          <td class="md" nowrap valign="top">void&nbsp;</td>
1338          <td class="mdname1" valign="top" nowrap>          </td>
1339          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1340          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1341        </tr>
1342
1343      </table>
1344    </td>
1345  </tr>
1346</table>
1347<table cellspacing=5 cellpadding=0 border=0>
1348  <tr>
1349    <td>
1350      &nbsp;
1351    </td>
1352    <td>
1353
1354<p>
1355Removes all resources.
1356<p>
1357<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>
1358If 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>
1359
1360<p>
1361Reimplemented in <a class="el" href="classOgre_1_1CompositorManager.html#Ogre_1_1CompositorManagera12">Ogre::CompositorManager</a>.    </td>
1362  </tr>
1363</table>
1364<a class="anchor" name="Ogre_1_1TextureManagerb3" doxytag="Ogre::BspResourceManager::removeImpl" ></a><p>
1365<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1366  <tr>
1367    <td class="mdRow">
1368      <table cellpadding="0" cellspacing="0" border="0">
1369        <tr>
1370          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::removeImpl </td>
1371          <td class="md" valign="top">(&nbsp;</td>
1372          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">ResourcePtr</a> &amp;&nbsp;</td>
1373          <td class="mdname1" valign="top" nowrap> <em>res</em>          </td>
1374          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1375          <td class="md" nowrap><code> [protected, virtual, inherited]</code></td>
1376        </tr>
1377
1378      </table>
1379    </td>
1380  </tr>
1381</table>
1382<table cellspacing=5 cellpadding=0 border=0>
1383  <tr>
1384    <td>
1385      &nbsp;
1386    </td>
1387    <td>
1388
1389<p>
1390Remove a resource from this manager; remove it from the lists.
1391<p>
1392    </td>
1393  </tr>
1394</table>
1395<a class="anchor" name="Ogre_1_1TextureManagera30" doxytag="Ogre::BspResourceManager::resourceExists" ></a><p>
1396<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1397  <tr>
1398    <td class="mdRow">
1399      <table cellpadding="0" cellspacing="0" border="0">
1400        <tr>
1401          <td class="md" nowrap valign="top"> virtual bool Ogre::ResourceManager::resourceExists </td>
1402          <td class="md" valign="top">(&nbsp;</td>
1403          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td>
1404          <td class="mdname1" valign="top" nowrap> <em>handle</em>          </td>
1405          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1406          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1407        </tr>
1408
1409      </table>
1410    </td>
1411  </tr>
1412</table>
1413<table cellspacing=5 cellpadding=0 border=0>
1414  <tr>
1415    <td>
1416      &nbsp;
1417    </td>
1418    <td>
1419
1420<p>
1421Returns whether a resource with the given handle exists in this manager.
1422<p>
1423
1424<p>
1425Definition 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>.
1426<p>
1427References <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>
1428  </tr>
1429</table>
1430<a class="anchor" name="Ogre_1_1TextureManagera29" doxytag="Ogre::BspResourceManager::resourceExists" ></a><p>
1431<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1432  <tr>
1433    <td class="mdRow">
1434      <table cellpadding="0" cellspacing="0" border="0">
1435        <tr>
1436          <td class="md" nowrap valign="top"> virtual bool Ogre::ResourceManager::resourceExists </td>
1437          <td class="md" valign="top">(&nbsp;</td>
1438          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
1439          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
1440          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1441          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1442        </tr>
1443
1444      </table>
1445    </td>
1446  </tr>
1447</table>
1448<table cellspacing=5 cellpadding=0 border=0>
1449  <tr>
1450    <td>
1451      &nbsp;
1452    </td>
1453    <td>
1454
1455<p>
1456Returns whether the named resource exists in this manager.
1457<p>
1458
1459<p>
1460Definition 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>.
1461<p>
1462References <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>
1463  </tr>
1464</table>
1465<a class="anchor" name="Ogre_1_1TextureManagera15" doxytag="Ogre::BspResourceManager::setMemoryBudget" ></a><p>
1466<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1467  <tr>
1468    <td class="mdRow">
1469      <table cellpadding="0" cellspacing="0" border="0">
1470        <tr>
1471          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::setMemoryBudget </td>
1472          <td class="md" valign="top">(&nbsp;</td>
1473          <td class="md" nowrap valign="top">size_t&nbsp;</td>
1474          <td class="mdname1" valign="top" nowrap> <em>bytes</em>          </td>
1475          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1476          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1477        </tr>
1478
1479      </table>
1480    </td>
1481  </tr>
1482</table>
1483<table cellspacing=5 cellpadding=0 border=0>
1484  <tr>
1485    <td>
1486      &nbsp;
1487    </td>
1488    <td>
1489
1490<p>
1491Set a limit on the amount of memory this resource handler may use.
1492<p>
1493<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>
1494    </td>
1495  </tr>
1496</table>
1497<a class="anchor" name="Ogre_1_1TextureManagera18" doxytag="Ogre::BspResourceManager::unload" ></a><p>
1498<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1499  <tr>
1500    <td class="mdRow">
1501      <table cellpadding="0" cellspacing="0" border="0">
1502        <tr>
1503          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::unload </td>
1504          <td class="md" valign="top">(&nbsp;</td>
1505          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a529">ResourceHandle</a>&nbsp;</td>
1506          <td class="mdname1" valign="top" nowrap> <em>handle</em>          </td>
1507          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1508          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1509        </tr>
1510
1511      </table>
1512    </td>
1513  </tr>
1514</table>
1515<table cellspacing=5 cellpadding=0 border=0>
1516  <tr>
1517    <td>
1518      &nbsp;
1519    </td>
1520    <td>
1521
1522<p>
1523Unloads a single resource by handle.
1524<p>
1525<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>
1526<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>
1527    </td>
1528  </tr>
1529</table>
1530<a class="anchor" name="Ogre_1_1TextureManagera17" doxytag="Ogre::BspResourceManager::unload" ></a><p>
1531<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1532  <tr>
1533    <td class="mdRow">
1534      <table cellpadding="0" cellspacing="0" border="0">
1535        <tr>
1536          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::unload </td>
1537          <td class="md" valign="top">(&nbsp;</td>
1538          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a471">String</a> &amp;&nbsp;</td>
1539          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
1540          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1541          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1542        </tr>
1543
1544      </table>
1545    </td>
1546  </tr>
1547</table>
1548<table cellspacing=5 cellpadding=0 border=0>
1549  <tr>
1550    <td>
1551      &nbsp;
1552    </td>
1553    <td>
1554
1555<p>
1556Unloads a single resource by name.
1557<p>
1558<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>
1559<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>
1560    </td>
1561  </tr>
1562</table>
1563<a class="anchor" name="Ogre_1_1TextureManagera19" doxytag="Ogre::BspResourceManager::unloadAll" ></a><p>
1564<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1565  <tr>
1566    <td class="mdRow">
1567      <table cellpadding="0" cellspacing="0" border="0">
1568        <tr>
1569          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::unloadAll </td>
1570          <td class="md" valign="top">(&nbsp;</td>
1571          <td class="md" nowrap valign="top">bool&nbsp;</td>
1572          <td class="mdname1" valign="top" nowrap> <em>reloadableOnly</em> = true          </td>
1573          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1574          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1575        </tr>
1576
1577      </table>
1578    </td>
1579  </tr>
1580</table>
1581<table cellspacing=5 cellpadding=0 border=0>
1582  <tr>
1583    <td>
1584      &nbsp;
1585    </td>
1586    <td>
1587
1588<p>
1589Unloads all resources.
1590<p>
1591<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>
1592<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>
1593<dl compact><dt><b>Parameters:</b></dt><dd>
1594  <table border="0" cellspacing="2" cellpadding="0">
1595    <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>
1596  </table>
1597</dl>
1598<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>
1599    </td>
1600  </tr>
1601</table>
1602<a class="anchor" name="Ogre_1_1TextureManagera21" doxytag="Ogre::BspResourceManager::unloadUnreferencedResources" ></a><p>
1603<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1604  <tr>
1605    <td class="mdRow">
1606      <table cellpadding="0" cellspacing="0" border="0">
1607        <tr>
1608          <td class="md" nowrap valign="top"> virtual void Ogre::ResourceManager::unloadUnreferencedResources </td>
1609          <td class="md" valign="top">(&nbsp;</td>
1610          <td class="md" nowrap valign="top">bool&nbsp;</td>
1611          <td class="mdname1" valign="top" nowrap> <em>reloadableOnly</em> = true          </td>
1612          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1613          <td class="md" nowrap><code> [virtual, inherited]</code></td>
1614        </tr>
1615
1616      </table>
1617    </td>
1618  </tr>
1619</table>
1620<table cellspacing=5 cellpadding=0 border=0>
1621  <tr>
1622    <td>
1623      &nbsp;
1624    </td>
1625    <td>
1626
1627<p>
1628Unload all resources which are not referenced by any other object.
1629<p>
1630<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>
1631<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>
1632<dl compact><dt><b>Parameters:</b></dt><dd>
1633  <table border="0" cellspacing="2" cellpadding="0">
1634    <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>
1635  </table>
1636</dl>
1637    </td>
1638  </tr>
1639</table>
1640<hr><h2>Member Data Documentation</h2>
1641<a class="anchor" name="Ogre_1_1TextureManagerp8" doxytag="Ogre::BspResourceManager::mLoadOrder" ></a><p>
1642<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1643  <tr>
1644    <td class="mdRow">
1645      <table cellpadding="0" cellspacing="0" border="0">
1646        <tr>
1647          <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, inherited]</code>
1648      </table>
1649    </td>
1650  </tr>
1651</table>
1652<table cellspacing=5 cellpadding=0 border=0>
1653  <tr>
1654    <td>
1655      &nbsp;
1656    </td>
1657    <td>
1658
1659<p>
1660Loading order relative to other managers, higher is later.
1661<p>
1662
1663<p>
1664Definition 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>
1665  </tr>
1666</table>
1667<a class="anchor" name="Ogre_1_1TextureManagerp5" doxytag="Ogre::BspResourceManager::mMemoryBudget" ></a><p>
1668<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1669  <tr>
1670    <td class="mdRow">
1671      <table cellpadding="0" cellspacing="0" border="0">
1672        <tr>
1673          <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, inherited]</code>
1674      </table>
1675    </td>
1676  </tr>
1677</table>
1678<table cellspacing=5 cellpadding=0 border=0>
1679  <tr>
1680    <td>
1681      &nbsp;
1682    </td>
1683    <td>
1684
1685<p>
1686
1687<p>
1688Definition 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>
1689  </tr>
1690</table>
1691<a class="anchor" name="Ogre_1_1TextureManagerp6" doxytag="Ogre::BspResourceManager::mMemoryUsage" ></a><p>
1692<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1693  <tr>
1694    <td class="mdRow">
1695      <table cellpadding="0" cellspacing="0" border="0">
1696        <tr>
1697          <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, inherited]</code>
1698      </table>
1699    </td>
1700  </tr>
1701</table>
1702<table cellspacing=5 cellpadding=0 border=0>
1703  <tr>
1704    <td>
1705      &nbsp;
1706    </td>
1707    <td>
1708
1709<p>
1710
1711<p>
1712Definition 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>
1713  </tr>
1714</table>
1715<a class="anchor" name="Ogre_1_1TextureManagerp4" doxytag="Ogre::BspResourceManager::mNextHandle" ></a><p>
1716<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1717  <tr>
1718    <td class="mdRow">
1719      <table cellpadding="0" cellspacing="0" border="0">
1720        <tr>
1721          <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, inherited]</code>
1722      </table>
1723    </td>
1724  </tr>
1725</table>
1726<table cellspacing=5 cellpadding=0 border=0>
1727  <tr>
1728    <td>
1729      &nbsp;
1730    </td>
1731    <td>
1732
1733<p>
1734
1735<p>
1736Definition 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>
1737  </tr>
1738</table>
1739<a class="anchor" name="Ogre_1_1TextureManagerp3" doxytag="Ogre::BspResourceManager::mResources" ></a><p>
1740<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1741  <tr>
1742    <td class="mdRow">
1743      <table cellpadding="0" cellspacing="0" border="0">
1744        <tr>
1745          <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, inherited]</code>
1746      </table>
1747    </td>
1748  </tr>
1749</table>
1750<table cellspacing=5 cellpadding=0 border=0>
1751  <tr>
1752    <td>
1753      &nbsp;
1754    </td>
1755    <td>
1756
1757<p>
1758
1759<p>
1760Definition 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>
1761  </tr>
1762</table>
1763<a class="anchor" name="Ogre_1_1TextureManagerp2" doxytag="Ogre::BspResourceManager::mResourcesByHandle" ></a><p>
1764<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1765  <tr>
1766    <td class="mdRow">
1767      <table cellpadding="0" cellspacing="0" border="0">
1768        <tr>
1769          <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, inherited]</code>
1770      </table>
1771    </td>
1772  </tr>
1773</table>
1774<table cellspacing=5 cellpadding=0 border=0>
1775  <tr>
1776    <td>
1777      &nbsp;
1778    </td>
1779    <td>
1780
1781<p>
1782
1783<p>
1784Definition 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>
1785  </tr>
1786</table>
1787<a class="anchor" name="Ogre_1_1TextureManagerp9" doxytag="Ogre::BspResourceManager::mResourceType" ></a><p>
1788<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1789  <tr>
1790    <td class="mdRow">
1791      <table cellpadding="0" cellspacing="0" border="0">
1792        <tr>
1793          <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, inherited]</code>
1794      </table>
1795    </td>
1796  </tr>
1797</table>
1798<table cellspacing=5 cellpadding=0 border=0>
1799  <tr>
1800    <td>
1801      &nbsp;
1802    </td>
1803    <td>
1804
1805<p>
1806String identifying the resource type this manager handles.
1807<p>
1808
1809<p>
1810Definition 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>
1811  </tr>
1812</table>
1813<a class="anchor" name="Ogre_1_1Singletont0" doxytag="Ogre::BspResourceManager::ms_Singleton" ></a><p>
1814<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1815  <tr>
1816    <td class="mdRow">
1817      <table cellpadding="0" cellspacing="0" border="0">
1818        <tr>
1819          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1BspResourceManager.html">BspResourceManager</a> * <a class="el" href="classOgre_1_1Singleton.html">Ogre::Singleton</a>&lt; <a class="el" href="classOgre_1_1BspResourceManager.html">BspResourceManager</a>  &gt;::<a class="el" href="classOgre_1_1Singleton.html#Ogre_1_1Singletont0">ms_Singleton</a><code> [static, protected, inherited]</code>
1820      </table>
1821    </td>
1822  </tr>
1823</table>
1824<table cellspacing=5 cellpadding=0 border=0>
1825  <tr>
1826    <td>
1827      &nbsp;
1828    </td>
1829    <td>
1830
1831<p>
1832
1833<p>
1834Definition at line <a class="el" href="OgreSingleton_8h-source.html#l00054">54</a> of file <a class="el" href="OgreSingleton_8h-source.html">OgreSingleton.h</a>.    </td>
1835  </tr>
1836</table>
1837<a class="anchor" name="Ogre_1_1TextureManagerp7" doxytag="Ogre::BspResourceManager::mScriptPatterns" ></a><p>
1838<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1839  <tr>
1840    <td class="mdRow">
1841      <table cellpadding="0" cellspacing="0" border="0">
1842        <tr>
1843          <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, inherited]</code>
1844      </table>
1845    </td>
1846  </tr>
1847</table>
1848<table cellspacing=5 cellpadding=0 border=0>
1849  <tr>
1850    <td>
1851      &nbsp;
1852    </td>
1853    <td>
1854
1855<p>
1856Patterns to use to look for scripts if supported (e.g. *.overlay).
1857<p>
1858
1859<p>
1860Definition 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>
1861  </tr>
1862</table>
1863<a class="anchor" name="Ogre_1_1BspResourceManagerp0" doxytag="Ogre::BspResourceManager::mShaderMgr" ></a><p>
1864<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1865  <tr>
1866    <td class="mdRow">
1867      <table cellpadding="0" cellspacing="0" border="0">
1868        <tr>
1869          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Quake3ShaderManager.html">Quake3ShaderManager</a>* <a class="el" href="classOgre_1_1BspResourceManager.html#Ogre_1_1BspResourceManagerp0">Ogre::BspResourceManager::mShaderMgr</a><code> [protected]</code>
1870      </table>
1871    </td>
1872  </tr>
1873</table>
1874<table cellspacing=5 cellpadding=0 border=0>
1875  <tr>
1876    <td>
1877      &nbsp;
1878    </td>
1879    <td>
1880
1881<p>
1882
1883<p>
1884Definition at line <a class="el" href="OgreBspResourceManager_8h-source.html#l00101">101</a> of file <a class="el" href="OgreBspResourceManager_8h-source.html">OgreBspResourceManager.h</a>.    </td>
1885  </tr>
1886</table>
1887<hr>The documentation for this class was generated from the following file:<ul>
1888<li><a class="el" href="OgreBspResourceManager_8h-source.html">OgreBspResourceManager.h</a></ul>
1889<hr>
1890<p>
1891Copyright &copy; 2000-2005 by The OGRE Team<br />
1892<!--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/>
1893This 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/>
1894                <!--/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#">
1895                <Work rdf:about="">
1896                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
1897        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
1898                </Work>
1899                <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> -->
1900
1901Last modified Sun Mar 12 14:46:36 2006
1902</p>
1903</body>
1904</html>
Note: See TracBrowser for help on using the repository browser.