1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreResourceGroupManager.h Source File - 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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
10 | <h1>OgreResourceGroupManager.h</h1><a href="OgreResourceGroupManager_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> |
---|
11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
13 | 00004 <span class="comment">(Object-oriented Graphics Rendering Engine)</span> |
---|
14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
15 | 00006 <span class="comment"></span> |
---|
16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
18 | 00009 <span class="comment"></span> |
---|
19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
22 | 00013 <span class="comment">version.</span> |
---|
23 | 00014 <span class="comment"></span> |
---|
24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
27 | 00018 <span class="comment"></span> |
---|
28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
33 | 00024 <span class="comment">*/</span> |
---|
34 | 00025 <span class="preprocessor">#ifndef _ResourceGroupManager_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define _ResourceGroupManager_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span> |
---|
37 | 00028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
38 | 00029 <span class="preprocessor">#include "<a class="code" href="OgreSingleton_8h.html">OgreSingleton.h</a>"</span> |
---|
39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgreCommon_8h.html">OgreCommon.h</a>"</span> |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreDataStream_8h.html">OgreDataStream.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreResource_8h.html">OgreResource.h</a>"</span> |
---|
42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreArchive_8h.html">OgreArchive.h</a>"</span> |
---|
43 | 00034 |
---|
44 | 00035 <span class="keyword">namespace </span>Ogre { |
---|
45 | 00036 |
---|
46 | <a name="l00063"></a><a class="code" href="classOgre_1_1ResourceGroupListener.html">00063</a> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> ResourceGroupListener |
---|
47 | 00064 { |
---|
48 | 00065 <span class="keyword">public</span>: |
---|
49 | <a name="l00066"></a><a class="code" href="classOgre_1_1ResourceGroupListener.html#Ogre_1_1ResourceGroupListenera0">00066</a> <span class="keyword">virtual</span> ~ResourceGroupListener() {} |
---|
50 | 00067 |
---|
51 | 00072 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceGroupScriptingStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName, size_t scriptCount) = 0; |
---|
52 | 00076 <span class="keyword">virtual</span> <span class="keywordtype">void</span> scriptParseStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& scriptName) = 0; |
---|
53 | 00079 <span class="keyword">virtual</span> <span class="keywordtype">void</span> scriptParseEnded(<span class="keywordtype">void</span>) = 0; |
---|
54 | 00081 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceGroupScriptingEnded(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName) = 0; |
---|
55 | 00082 |
---|
56 | 00088 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceGroupLoadStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName, size_t resourceCount) = 0; |
---|
57 | 00092 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceLoadStarted(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& resource) = 0; |
---|
58 | 00095 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceLoadEnded(<span class="keywordtype">void</span>) = 0; |
---|
59 | 00101 <span class="keyword">virtual</span> <span class="keywordtype">void</span> worldGeometryStageStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& description) = 0; |
---|
60 | 00107 <span class="keyword">virtual</span> <span class="keywordtype">void</span> worldGeometryStageEnded(<span class="keywordtype">void</span>) = 0; |
---|
61 | 00108 |
---|
62 | 00110 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resourceGroupLoadEnded(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName) = 0; |
---|
63 | 00111 |
---|
64 | 00112 }; |
---|
65 | <a name="l00161"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html">00161</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> ResourceGroupManager : <span class="keyword">public</span> <a class="code" href="classOgre_1_1Singleton.html">Singleton</a><ResourceGroupManager> |
---|
66 | 00162 { |
---|
67 | 00163 <span class="keyword">public</span>: |
---|
68 | 00164 <a class="code" href="OgrePrerequisites_8h.html#a11">OGRE_AUTO_MUTEX</a> <span class="comment">// public to allow external locking</span> |
---|
69 | <a name="l00166"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagers0">00166</a> <span class="comment"></span> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a426">String</a> DEFAULT_RESOURCE_GROUP_NAME; |
---|
70 | <a name="l00168"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagers1">00168</a> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a426">String</a> BOOTSTRAP_RESOURCE_GROUP_NAME; |
---|
71 | <a name="l00170"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html">00170</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html">ResourceDeclaration</a> |
---|
72 | 00171 { |
---|
73 | <a name="l00172"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html#Ogre_1_1ResourceGroupManager_1_1ResourceDeclarationo0">00172</a> <a class="code" href="namespaceOgre.html#a426">String</a> resourceName; |
---|
74 | <a name="l00173"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html#Ogre_1_1ResourceGroupManager_1_1ResourceDeclarationo1">00173</a> <a class="code" href="namespaceOgre.html#a426">String</a> resourceType; |
---|
75 | <a name="l00174"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceDeclaration.html#Ogre_1_1ResourceGroupManager_1_1ResourceDeclarationo2">00174</a> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a> parameters; |
---|
76 | 00175 }; |
---|
77 | <a name="l00177"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerw0">00177</a> <span class="keyword">typedef</span> std::list<ResourceDeclaration> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerw0">ResourceDeclarationList</a>; |
---|
78 | 00178 <span class="keyword">protected</span>: |
---|
79 | <a name="l00180"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx0">00180</a> <span class="keyword">typedef</span> std::map<String, ResourceManager*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx0">ResourceManagerMap</a>; |
---|
80 | <a name="l00181"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp0">00181</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx0">ResourceManagerMap</a> mResourceManagerMap; |
---|
81 | 00182 |
---|
82 | <a name="l00184"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx1">00184</a> <span class="keyword">typedef</span> std::multimap<Real, ScriptLoader*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx1">ScriptLoaderOrderMap</a>; |
---|
83 | <a name="l00185"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp1">00185</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx1">ScriptLoaderOrderMap</a> mScriptLoaderOrderMap; |
---|
84 | 00186 |
---|
85 | <a name="l00187"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx2">00187</a> <span class="keyword">typedef</span> std::vector<ResourceGroupListener*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx2">ResourceGroupListenerList</a>; |
---|
86 | <a name="l00188"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp2">00188</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx2">ResourceGroupListenerList</a> mResourceGroupListenerList; |
---|
87 | 00189 |
---|
88 | <a name="l00191"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx3">00191</a> <span class="keyword">typedef</span> std::map<String, Archive*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx3">ResourceLocationIndex</a>; |
---|
89 | 00192 |
---|
90 | <a name="l00194"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceLocation.html">00194</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceLocation.html">ResourceLocation</a> |
---|
91 | 00195 { |
---|
92 | <a name="l00197"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceLocation.html#Ogre_1_1ResourceGroupManager_1_1ResourceLocationo0">00197</a> <a class="code" href="classOgre_1_1Archive.html">Archive</a>* archive; |
---|
93 | <a name="l00199"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceLocation.html#Ogre_1_1ResourceGroupManager_1_1ResourceLocationo1">00199</a> <span class="keywordtype">bool</span> recursive; |
---|
94 | 00200 }; |
---|
95 | <a name="l00202"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx4">00202</a> <span class="keyword">typedef</span> std::list<ResourceLocation*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx4">LocationList</a>; |
---|
96 | <a name="l00204"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx5">00204</a> <span class="keyword">typedef</span> std::list<ResourcePtr> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx5">LoadUnloadResourceList</a>; |
---|
97 | <a name="l00206"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">00206</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a> |
---|
98 | 00207 { |
---|
99 | 00208 <a class="code" href="OgrePrerequisites_8h.html#a11">OGRE_AUTO_MUTEX</a> |
---|
100 | <a name="l00210"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo0">00210</a> <a class="code" href="namespaceOgre.html#a426">String</a> name; |
---|
101 | <a name="l00212"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo1">00212</a> <span class="keywordtype">bool</span> initialised; |
---|
102 | <a name="l00214"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo2">00214</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx4">LocationList</a> locationList; |
---|
103 | <a name="l00216"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo3">00216</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx3">ResourceLocationIndex</a> resourceIndexCaseSensitive; |
---|
104 | <a name="l00218"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo4">00218</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx3">ResourceLocationIndex</a> resourceIndexCaseInsensitive; |
---|
105 | <a name="l00220"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo5">00220</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerw0">ResourceDeclarationList</a> resourceDeclarations; |
---|
106 | 00222 <span class="comment">// Group by loading order of the type (defined by ResourceManager)</span> |
---|
107 | 00223 <span class="comment">// (e.g. skeletons and materials before meshes)</span> |
---|
108 | <a name="l00224"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupw0">00224</a> <span class="keyword">typedef</span> std::map<Real, LoadUnloadResourceList*> <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupw0">LoadResourceOrderMap</a>; |
---|
109 | <a name="l00225"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo6">00225</a> <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupw0">LoadResourceOrderMap</a> loadResourceOrderMap; |
---|
110 | <a name="l00227"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo7">00227</a> <a class="code" href="namespaceOgre.html#a426">String</a> worldGeometry; |
---|
111 | <a name="l00229"></a><a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html#Ogre_1_1ResourceGroupManager_1_1ResourceGroupo8">00229</a> <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* worldGeometrySceneManager; |
---|
112 | 00230 }; |
---|
113 | <a name="l00232"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx6">00232</a> <span class="keyword">typedef</span> std::map<String, ResourceGroup*> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx6">ResourceGroupMap</a>; |
---|
114 | <a name="l00233"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp3">00233</a> <a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerx6">ResourceGroupMap</a> mResourceGroupMap; |
---|
115 | 00234 |
---|
116 | <a name="l00236"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp4">00236</a> <a class="code" href="namespaceOgre.html#a426">String</a> mWorldGroupName; |
---|
117 | 00237 |
---|
118 | 00243 <span class="keywordtype">void</span> parseResourceGroupScripts(<a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* grp); |
---|
119 | 00248 <span class="keywordtype">void</span> createDeclaredResources(<a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* grp); |
---|
120 | 00250 <span class="keywordtype">void</span> addCreatedResource(<a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& res, <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>& group); |
---|
121 | 00252 <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* getResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name); |
---|
122 | 00254 <span class="keywordtype">void</span> dropGroupContents(<a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* grp); |
---|
123 | 00256 <span class="keywordtype">void</span> deleteGroup(<a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* grp); |
---|
124 | 00258 <span class="keywordtype">void</span> fireResourceGroupScriptingStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName, size_t scriptCount); |
---|
125 | 00260 <span class="keywordtype">void</span> fireScriptStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& scriptName); |
---|
126 | 00262 <span class="keywordtype">void</span> fireScriptEnded(<span class="keywordtype">void</span>); |
---|
127 | 00264 <span class="keywordtype">void</span> fireResourceGroupScriptingEnded(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName); |
---|
128 | 00266 <span class="keywordtype">void</span> fireResourceGroupLoadStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName, size_t resourceCount); |
---|
129 | 00268 <span class="keywordtype">void</span> fireResourceStarted(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& resource); |
---|
130 | 00270 <span class="keywordtype">void</span> fireResourceEnded(<span class="keywordtype">void</span>); |
---|
131 | 00272 <span class="keywordtype">void</span> fireResourceGroupLoadEnded(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName); |
---|
132 | 00273 |
---|
133 | 00274 |
---|
134 | 00275 |
---|
135 | <a name="l00277"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagerp5">00277</a> <a class="code" href="structOgre_1_1ResourceGroupManager_1_1ResourceGroup.html">ResourceGroup</a>* mCurrentGroup; |
---|
136 | 00278 <span class="keyword">public</span>: |
---|
137 | 00279 ResourceGroupManager(); |
---|
138 | 00280 <span class="keyword">virtual</span> ~ResourceGroupManager(); |
---|
139 | 00281 |
---|
140 | 00309 <span class="keywordtype">void</span> createResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name); |
---|
141 | 00310 |
---|
142 | 00311 |
---|
143 | 00351 <span class="keywordtype">void</span> initialiseResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name); |
---|
144 | 00352 |
---|
145 | 00356 <span class="keywordtype">void</span> initialiseAllResourceGroups(<span class="keywordtype">void</span>); |
---|
146 | 00357 |
---|
147 | 00375 <span class="keywordtype">void</span> loadResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name, <span class="keywordtype">bool</span> loadMainResources = <span class="keyword">true</span>, |
---|
148 | 00376 <span class="keywordtype">bool</span> loadWorldGeom = <span class="keyword">true</span>); |
---|
149 | 00377 |
---|
150 | 00387 <span class="keywordtype">void</span> unloadResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name); |
---|
151 | 00388 |
---|
152 | 00398 <span class="keywordtype">void</span> clearResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name); |
---|
153 | 00399 |
---|
154 | 00405 <span class="keywordtype">void</span> destroyResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name); |
---|
155 | 00406 |
---|
156 | 00407 |
---|
157 | 00429 <span class="keywordtype">void</span> addResourceLocation(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& locType, |
---|
158 | 00430 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& resGroup = DEFAULT_RESOURCE_GROUP_NAME, <span class="keywordtype">bool</span> recursive = <span class="keyword">false</span>); |
---|
159 | 00432 <span class="keywordtype">void</span> removeResourceLocation(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name, |
---|
160 | 00433 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& resGroup = DEFAULT_RESOURCE_GROUP_NAME); |
---|
161 | 00434 |
---|
162 | 00469 <span class="keywordtype">void</span> declareResource(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& resourceType, |
---|
163 | 00470 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName = DEFAULT_RESOURCE_GROUP_NAME, |
---|
164 | 00471 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a>& loadParameters = <a class="code" href="namespaceOgre.html#a62">NameValuePairList</a>()); |
---|
165 | 00482 <span class="keywordtype">void</span> undeclareResource(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName); |
---|
166 | 00483 |
---|
167 | 00496 <a class="code" href="classOgre_1_1SharedPtr.html">DataStreamPtr</a> openResource(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& resourceName, |
---|
168 | 00497 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName = DEFAULT_RESOURCE_GROUP_NAME); |
---|
169 | 00498 |
---|
170 | 00510 <a class="code" href="classOgre_1_1SharedPtr.html">DataStreamListPtr</a> openResources(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& pattern, |
---|
171 | 00511 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName = DEFAULT_RESOURCE_GROUP_NAME); |
---|
172 | 00512 |
---|
173 | 00520 <a class="code" href="classOgre_1_1SharedPtr.html">StringVectorPtr</a> listResourceNames(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName); |
---|
174 | 00521 |
---|
175 | 00527 <a class="code" href="classOgre_1_1SharedPtr.html">FileInfoListPtr</a> listResourceFileInfo(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName); |
---|
176 | 00528 |
---|
177 | 00537 <a class="code" href="classOgre_1_1SharedPtr.html">StringVectorPtr</a> findResourceNames(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& pattern); |
---|
178 | 00538 |
---|
179 | 00543 <span class="keywordtype">bool</span> resourceExists(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& group, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& filename); |
---|
180 | 00544 |
---|
181 | 00552 <a class="code" href="classOgre_1_1SharedPtr.html">FileInfoListPtr</a> findResourceFileInfo(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& group, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& pattern); |
---|
182 | 00553 |
---|
183 | 00554 |
---|
184 | 00558 <span class="keywordtype">void</span> addResourceGroupListener(ResourceGroupListener* l); |
---|
185 | 00560 <span class="keywordtype">void</span> removeResourceGroupListener(ResourceGroupListener* l); |
---|
186 | 00561 |
---|
187 | <a name="l00568"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagera22">00568</a> <span class="keywordtype">void</span> setWorldResourceGroupName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName) {mWorldGroupName = groupName;} |
---|
188 | 00569 |
---|
189 | <a name="l00571"></a><a class="code" href="classOgre_1_1ResourceGroupManager.html#Ogre_1_1ResourceGroupManagera23">00571</a> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& getWorldResourceGroupName(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mWorldGroupName; } |
---|
190 | 00572 |
---|
191 | 00586 <span class="keywordtype">void</span> linkWorldGeometryToResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& group, |
---|
192 | 00587 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& worldGeometry, <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* sceneManager); |
---|
193 | 00588 |
---|
194 | 00593 <span class="keywordtype">void</span> unlinkWorldGeometryFromResourceGroup(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& group); |
---|
195 | 00594 |
---|
196 | 00596 <span class="keywordtype">void</span> shutdownAll(<span class="keywordtype">void</span>); |
---|
197 | 00597 |
---|
198 | 00598 |
---|
199 | 00608 <span class="keywordtype">void</span> _registerResourceManager(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& resourceType, <a class="code" href="classOgre_1_1ResourceManager.html">ResourceManager</a>* rm); |
---|
200 | 00609 |
---|
201 | 00616 <span class="keywordtype">void</span> _unregisterResourceManager(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& resourceType); |
---|
202 | 00617 |
---|
203 | 00618 |
---|
204 | 00623 <span class="keywordtype">void</span> _registerScriptLoader(<a class="code" href="classOgre_1_1ScriptLoader.html">ScriptLoader</a>* su); |
---|
205 | 00624 |
---|
206 | 00628 <span class="keywordtype">void</span> _unregisterScriptLoader(<a class="code" href="classOgre_1_1ScriptLoader.html">ScriptLoader</a>* su); |
---|
207 | 00629 |
---|
208 | 00633 <a class="code" href="classOgre_1_1ResourceManager.html">ResourceManager</a>* _getResourceManager(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& resourceType); |
---|
209 | 00634 |
---|
210 | 00638 <span class="keywordtype">void</span> _notifyResourceCreated(<a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& res); |
---|
211 | 00639 |
---|
212 | 00643 <span class="keywordtype">void</span> _notifyResourceRemoved(<a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& res); |
---|
213 | 00644 |
---|
214 | 00649 <span class="keywordtype">void</span> _notifyAllResourcesRemoved(<a class="code" href="classOgre_1_1ResourceManager.html">ResourceManager</a>* manager); |
---|
215 | 00650 |
---|
216 | 00658 <span class="keywordtype">void</span> _notifyWorldGeometryStageStarted(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& description); |
---|
217 | 00666 <span class="keywordtype">void</span> _notifyWorldGeometryStageEnded(<span class="keywordtype">void</span>); |
---|
218 | 00667 |
---|
219 | 00673 <a class="code" href="namespaceOgre.html#a535">StringVector</a> getResourceGroups(<span class="keywordtype">void</span>); |
---|
220 | 00680 ResourceDeclarationList getResourceDeclarationList(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& groupName); |
---|
221 | 00681 |
---|
222 | 00697 <span class="keyword">static</span> ResourceGroupManager& getSingleton(<span class="keywordtype">void</span>); |
---|
223 | 00713 <span class="keyword">static</span> ResourceGroupManager* getSingletonPtr(<span class="keywordtype">void</span>); |
---|
224 | 00714 |
---|
225 | 00715 }; |
---|
226 | 00716 } |
---|
227 | 00717 |
---|
228 | 00718 <span class="preprocessor">#endif</span> |
---|
229 | </pre></div><hr> |
---|
230 | <p> |
---|
231 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
232 | <!--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/> |
---|
233 | This 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/> |
---|
234 | <!--/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#"> |
---|
235 | <Work rdf:about=""> |
---|
236 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
237 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
238 | </Work> |
---|
239 | <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> --> |
---|
240 | |
---|
241 | Last modified Sun Feb 12 12:59:51 2006 |
---|
242 | </p> |
---|
243 | </body> |
---|
244 | </html> |
---|