1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreBspLevel.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>OgreBspLevel.h</h1><a href="OgreBspLevel_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 _BspLevel_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define _BspLevel_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span> |
---|
37 | 00028 <span class="preprocessor">#include "<a class="code" href="OgreBspPrerequisites_8h.html">OgreBspPrerequisites.h</a>"</span> |
---|
38 | 00029 <span class="preprocessor">#include "<a class="code" href="OgreResource_8h.html">OgreResource.h</a>"</span> |
---|
39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgreStaticFaceGroup_8h.html">OgreStaticFaceGroup.h</a>"</span> |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreSceneManager_8h.html">OgreSceneManager.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreBspNode_8h.html">OgreBspNode.h</a>"</span> |
---|
42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreHardwareBufferManager_8h.html">OgreHardwareBufferManager.h</a>"</span> |
---|
43 | 00034 <span class="preprocessor">#include "<a class="code" href="OgreDefaultHardwareBufferManager_8h.html">OgreDefaultHardwareBufferManager.h</a>"</span> |
---|
44 | 00035 <span class="preprocessor">#include "<a class="code" href="OgreQuake3Level_8h.html">OgreQuake3Level.h</a>"</span> |
---|
45 | 00036 |
---|
46 | 00037 |
---|
47 | 00038 <span class="keyword">namespace </span>Ogre { |
---|
48 | 00039 |
---|
49 | <a name="l00053"></a><a class="code" href="classOgre_1_1BspLevel.html">00053</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1BspLevel.html">BspLevel</a> : <span class="keyword">public</span> <a class="code" href="classOgre_1_1Resource.html">Resource</a> |
---|
50 | 00054 { |
---|
51 | <a name="l00055"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLeveln0">00055</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOgre_1_1BspSceneManager.html">BspSceneManager</a>; |
---|
52 | 00056 <span class="keyword">public</span>: |
---|
53 | 00058 <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela0">BspLevel</a>(<a class="code" href="classOgre_1_1ResourceManager.html">ResourceManager</a>* creator, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <a class="code" href="namespaceOgre.html#a529">ResourceHandle</a> handle, |
---|
54 | 00059 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& group, <span class="keywordtype">bool</span> isManual = <span class="keyword">false</span>, <a class="code" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a>* loader = 0); |
---|
55 | 00060 <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela1">~BspLevel</a>(); |
---|
56 | 00061 |
---|
57 | 00063 <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela2">isLeafVisible</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1BspNode.html">BspNode</a>* from, <span class="keyword">const</span> <a class="code" href="classOgre_1_1BspNode.html">BspNode</a>* to) <span class="keyword">const</span>; |
---|
58 | 00064 |
---|
59 | 00066 <span class="keyword">const</span> <a class="code" href="classOgre_1_1BspNode.html">BspNode</a>* <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela3">getRootNode</a>(<span class="keywordtype">void</span>); |
---|
60 | 00067 |
---|
61 | 00071 <a class="code" href="classOgre_1_1BspNode.html">BspNode</a>* <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela4">findLeaf</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& point) <span class="keyword">const</span>; |
---|
62 | 00072 |
---|
63 | 00076 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela5">_notifyObjectMoved</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a>* mov, |
---|
64 | 00077 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& pos); |
---|
65 | 00079 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela6">_notifyObjectDetached</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a>* mov); |
---|
66 | <a name="l00081"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela7">00081</a> <a class="code" href="classOgre_1_1BspNode.html">BspNode</a>* <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela7">getLeafStart</a>(<span class="keywordtype">void</span>) {<span class="keywordflow">return</span> &mRootNode[<a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp3">mLeafStart</a>]; } |
---|
67 | <a name="l00083"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela8">00083</a> <span class="keywordtype">int</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela8">getNumLeaves</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp2">mNumLeaves</a>; } |
---|
68 | 00084 |
---|
69 | 00086 <span class="keyword">static</span> size_t <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevele0">calculateLoadingStages</a>(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& levelName); |
---|
70 | 00088 <span class="keyword">static</span> size_t <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevele0">calculateLoadingStages</a>(<a class="code" href="classOgre_1_1SharedPtr.html">DataStreamPtr</a>& stream); |
---|
71 | 00089 |
---|
72 | 00091 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1Resource.html#Ogre_1_1Texturea30">load</a>(<a class="code" href="classOgre_1_1SharedPtr.html">DataStreamPtr</a>& stream); |
---|
73 | 00092 |
---|
74 | 00094 <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela10">isSkyEnabled</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
75 | 00096 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela11">getSkyMaterialName</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
76 | 00098 <a class="code" href="namespaceOgre.html#a465">Real</a> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevela12">getSkyCurvature</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
77 | 00099 |
---|
78 | 00101 <span class="keyword">protected</span>: |
---|
79 | 00103 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelb0">loadImpl</a>(<span class="keywordtype">void</span>); |
---|
80 | 00105 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelb1">unloadImpl</a>(<span class="keywordtype">void</span>); |
---|
81 | 00107 size_t <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelb2">calculateSize</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
82 | <a name="l00114"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp0">00114</a> <a class="code" href="classOgre_1_1BspNode.html">BspNode</a>* mRootNode; |
---|
83 | <a name="l00115"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp1">00115</a> <span class="keywordtype">int</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp1">mNumNodes</a>; |
---|
84 | <a name="l00116"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp2">00116</a> <span class="keywordtype">int</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp2">mNumLeaves</a>; |
---|
85 | <a name="l00117"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp3">00117</a> <span class="keywordtype">int</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp3">mLeafStart</a>; <span class="comment">// the index at which leaf nodes begin</span> |
---|
86 | 00118 |
---|
87 | <a name="l00126"></a><a class="code" href="structOgre_1_1BspLevel_1_1BspVertex.html">00126</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1BspLevel_1_1BspVertex.html">BspVertex</a> |
---|
88 | 00127 { |
---|
89 | <a name="l00128"></a><a class="code" href="structOgre_1_1BspLevel_1_1BspVertex.html#Ogre_1_1BspLevel_1_1BspVertexo0">00128</a> <span class="keywordtype">float</span> position[3]; |
---|
90 | <a name="l00129"></a><a class="code" href="structOgre_1_1BspLevel_1_1BspVertex.html#Ogre_1_1BspLevel_1_1BspVertexo1">00129</a> <span class="keywordtype">float</span> normal[3]; |
---|
91 | <a name="l00130"></a><a class="code" href="structOgre_1_1BspLevel_1_1BspVertex.html#Ogre_1_1BspLevel_1_1BspVertexo2">00130</a> <span class="keywordtype">int</span> colour; |
---|
92 | <a name="l00131"></a><a class="code" href="structOgre_1_1BspLevel_1_1BspVertex.html#Ogre_1_1BspLevel_1_1BspVertexo3">00131</a> <span class="keywordtype">float</span> <a class="code" href="structOgre_1_1BspLevel_1_1BspVertex.html#Ogre_1_1BspLevel_1_1BspVertexo3">texcoords</a>[2]; |
---|
93 | <a name="l00132"></a><a class="code" href="structOgre_1_1BspLevel_1_1BspVertex.html#Ogre_1_1BspLevel_1_1BspVertexo4">00132</a> <span class="keywordtype">float</span> <a class="code" href="structOgre_1_1BspLevel_1_1BspVertex.html#Ogre_1_1BspLevel_1_1BspVertexo4">lightmap</a>[2]; |
---|
94 | 00133 }; |
---|
95 | 00134 <span class="comment">/*</span> |
---|
96 | 00136 <span class="comment"> BspVertex* mVertices;</span> |
---|
97 | 00137 <span class="comment"> int mNumVertices;</span> |
---|
98 | 00138 <span class="comment"> */</span> |
---|
99 | <a name="l00140"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp4">00140</a> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* mVertexData; |
---|
100 | 00141 |
---|
101 | <a name="l00145"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp5">00145</a> <span class="keywordtype">int</span>* <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp5">mLeafFaceGroups</a>; |
---|
102 | <a name="l00146"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp6">00146</a> <span class="keywordtype">int</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp6">mNumLeafFaceGroups</a>; |
---|
103 | 00147 |
---|
104 | <a name="l00149"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp7">00149</a> <a class="code" href="structOgre_1_1StaticFaceGroup.html">StaticFaceGroup</a>* <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp7">mFaceGroups</a>; |
---|
105 | <a name="l00150"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp8">00150</a> <span class="keywordtype">int</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp8">mNumFaceGroups</a>; |
---|
106 | 00151 |
---|
107 | 00152 |
---|
108 | 00153 <span class="comment">/*</span> |
---|
109 | 00155 <span class="comment"> int* mElements;</span> |
---|
110 | 00156 <span class="comment"> int mNumElements;</span> |
---|
111 | 00157 <span class="comment"> */</span> |
---|
112 | 00158 |
---|
113 | <a name="l00160"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp9">00160</a> size_t mNumIndexes; |
---|
114 | 00161 <span class="comment">// system-memory buffer</span> |
---|
115 | <a name="l00162"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp10">00162</a> <a class="code" href="classOgre_1_1HardwareIndexBufferSharedPtr.html">HardwareIndexBufferSharedPtr</a> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp10">mIndexes</a>; |
---|
116 | 00163 |
---|
117 | <a name="l00165"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp11">00165</a> <a class="code" href="structOgre_1_1BspNode_1_1Brush.html">BspNode::Brush</a> *<a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp11">mBrushes</a>; |
---|
118 | 00166 |
---|
119 | <a name="l00168"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp12">00168</a> std::vector<ViewPoint> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp12">mPlayerStarts</a>; |
---|
120 | 00169 |
---|
121 | 00171 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelb3">loadQuake3Level</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Quake3Level.html">Quake3Level</a>& q3lvl); |
---|
122 | <a name="l00187"></a><a class="code" href="structOgre_1_1BspLevel_1_1VisData.html">00187</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1BspLevel_1_1VisData.html">VisData</a> |
---|
123 | 00188 { |
---|
124 | <a name="l00189"></a><a class="code" href="structOgre_1_1BspLevel_1_1VisData.html#Ogre_1_1BspLevel_1_1VisDatao0">00189</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *<a class="code" href="structOgre_1_1BspLevel_1_1VisData.html#Ogre_1_1BspLevel_1_1VisDatao0">tableData</a>; |
---|
125 | <a name="l00190"></a><a class="code" href="structOgre_1_1BspLevel_1_1VisData.html#Ogre_1_1BspLevel_1_1VisDatao1">00190</a> <span class="keywordtype">int</span> <a class="code" href="structOgre_1_1BspLevel_1_1VisData.html#Ogre_1_1BspLevel_1_1VisDatao1">numClusters</a>; <span class="comment">// Number of clusters, therefore number of rows</span> |
---|
126 | <a name="l00191"></a><a class="code" href="structOgre_1_1BspLevel_1_1VisData.html#Ogre_1_1BspLevel_1_1VisDatao2">00191</a> <span class="keywordtype">int</span> <a class="code" href="structOgre_1_1BspLevel_1_1VisData.html#Ogre_1_1BspLevel_1_1VisDatao2">rowLength</a>; <span class="comment">// Length in bytes of each row (num clusters / 8 rounded up)</span> |
---|
127 | 00192 }; |
---|
128 | 00193 |
---|
129 | <a name="l00194"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp13">00194</a> <a class="code" href="structOgre_1_1BspLevel_1_1VisData.html">VisData</a> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp13">mVisData</a>; |
---|
130 | 00195 |
---|
131 | 00196 |
---|
132 | 00198 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelb4">loadEntities</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Quake3Level.html">Quake3Level</a>& q3lvl); |
---|
133 | 00199 |
---|
134 | <a name="l00200"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelx0">00200</a> <span class="keyword">typedef</span> std::map<const MovableObject*, std::list<BspNode*> > <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelx0">MovableToNodeMap</a>; |
---|
135 | <a name="l00202"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp14">00202</a> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelx0">MovableToNodeMap</a> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp14">mMovableToNodeMap</a>; |
---|
136 | 00203 |
---|
137 | 00204 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelb5">tagNodesWithMovable</a>(<a class="code" href="classOgre_1_1BspNode.html">BspNode</a>* node, <span class="keyword">const</span> <a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a>* mov, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& pos); |
---|
138 | 00205 |
---|
139 | 00206 <span class="comment">// Storage of patches </span> |
---|
140 | <a name="l00207"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelx1">00207</a> <span class="keyword">typedef</span> std::map<int, PatchSurface*> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelx1">PatchMap</a>; |
---|
141 | <a name="l00208"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp15">00208</a> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelx1">PatchMap</a> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp15">mPatches</a>; |
---|
142 | 00209 <span class="comment">// Total number of vertices required for all patches</span> |
---|
143 | <a name="l00210"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp16">00210</a> size_t <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp16">mPatchVertexCount</a>; |
---|
144 | 00211 <span class="comment">// Total number of indexes required for all patches</span> |
---|
145 | <a name="l00212"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp17">00212</a> size_t <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp17">mPatchIndexCount</a>; |
---|
146 | 00213 <span class="comment">// Sky enabled?</span> |
---|
147 | <a name="l00214"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp18">00214</a> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp18">mSkyEnabled</a>; |
---|
148 | 00215 <span class="comment">// Sky material</span> |
---|
149 | <a name="l00216"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp19">00216</a> <a class="code" href="namespaceOgre.html#a471">String</a> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp19">mSkyMaterial</a>; |
---|
150 | 00217 <span class="comment">// Sky details</span> |
---|
151 | <a name="l00218"></a><a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp20">00218</a> <a class="code" href="namespaceOgre.html#a465">Real</a> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelp20">mSkyCurvature</a>; |
---|
152 | 00219 |
---|
153 | 00220 |
---|
154 | 00221 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelb6">initQuake3Patches</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Quake3Level.html">Quake3Level</a> & q3lvl, <a class="code" href="classOgre_1_1VertexDeclaration.html">VertexDeclaration</a>* decl); |
---|
155 | 00222 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelb7">buildQuake3Patches</a>(size_t vertOffset, size_t indexOffset); |
---|
156 | 00223 |
---|
157 | 00224 <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1BspLevel.html#Ogre_1_1BspLevelb8">quakeVertexToBspVertex</a>(<span class="keyword">const</span> <a class="code" href="structbsp__vertex__t.html">bsp_vertex_t</a>* src, <a class="code" href="structOgre_1_1BspLevel_1_1BspVertex.html">BspVertex</a>* dest); |
---|
158 | 00225 |
---|
159 | 00226 |
---|
160 | 00227 }; |
---|
161 | <a name="l00234"></a><a class="code" href="classOgre_1_1BspLevelPtr.html">00234</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1BspLevelPtr.html">BspLevelPtr</a> : <span class="keyword">public</span> <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><BspLevel> |
---|
162 | 00235 { |
---|
163 | 00236 <span class="keyword">public</span>: |
---|
164 | <a name="l00237"></a><a class="code" href="classOgre_1_1BspLevelPtr.html#Ogre_1_1BspLevelPtra0">00237</a> <a class="code" href="classOgre_1_1BspLevelPtr.html#Ogre_1_1BspLevelPtra0">BspLevelPtr</a>() : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><<a class="code" href="classOgre_1_1BspLevel.html">BspLevel</a>>() {} |
---|
165 | <a name="l00238"></a><a class="code" href="classOgre_1_1BspLevelPtr.html#Ogre_1_1BspLevelPtra1">00238</a> <span class="keyword">explicit</span> <a class="code" href="classOgre_1_1BspLevelPtr.html#Ogre_1_1BspLevelPtra0">BspLevelPtr</a>(<a class="code" href="classOgre_1_1BspLevel.html">BspLevel</a>* rep) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><<a class="code" href="classOgre_1_1BspLevel.html">BspLevel</a>>(rep) {} |
---|
166 | <a name="l00239"></a><a class="code" href="classOgre_1_1BspLevelPtr.html#Ogre_1_1BspLevelPtra2">00239</a> <a class="code" href="classOgre_1_1BspLevelPtr.html#Ogre_1_1BspLevelPtra0">BspLevelPtr</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1BspLevelPtr.html">BspLevelPtr</a>& r) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><<a class="code" href="classOgre_1_1BspLevel.html">BspLevel</a>>(r) {} |
---|
167 | <a name="l00240"></a><a class="code" href="classOgre_1_1BspLevelPtr.html#Ogre_1_1BspLevelPtra3">00240</a> <a class="code" href="classOgre_1_1BspLevelPtr.html#Ogre_1_1BspLevelPtra0">BspLevelPtr</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& r) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><<a class="code" href="classOgre_1_1BspLevel.html">BspLevel</a>>() |
---|
168 | 00241 { |
---|
169 | 00242 <span class="comment">// lock & copy other mutex pointer</span> |
---|
170 | 00243 <a class="code" href="OgrePrerequisites_8h.html#a15">OGRE_LOCK_MUTEX</a>(*r.OGRE_AUTO_MUTEX_NAME) |
---|
171 | 00244 <a class="code" href="OgrePrerequisites_8h.html#a20">OGRE_COPY_AUTO_SHARED_MUTEX</a>(r.OGRE_AUTO_MUTEX_NAME) |
---|
172 | 00245 pRep = static_cast<BspLevel*>(r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra12">getPointer</a>()); |
---|
173 | 00246 pUseCount = r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra11">useCountPointer</a>(); |
---|
174 | 00247 <span class="keywordflow">if</span> (pUseCount) |
---|
175 | 00248 { |
---|
176 | 00249 ++(*pUseCount); |
---|
177 | 00250 } |
---|
178 | 00251 } |
---|
179 | 00252 |
---|
180 | <a name="l00254"></a><a class="code" href="classOgre_1_1BspLevelPtr.html#Ogre_1_1BspLevelPtra4">00254</a> <a class="code" href="classOgre_1_1BspLevelPtr.html">BspLevelPtr</a>& <a class="code" href="classOgre_1_1BspLevelPtr.html#Ogre_1_1BspLevelPtra4">operator=</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& r) |
---|
181 | 00255 { |
---|
182 | 00256 <span class="keywordflow">if</span> (pRep == static_cast<BspLevel*>(r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra12">getPointer</a>())) |
---|
183 | 00257 <span class="keywordflow">return</span> *<span class="keyword">this</span>; |
---|
184 | 00258 <a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtrb0">release</a>(); |
---|
185 | 00259 <span class="comment">// lock & copy other mutex pointer</span> |
---|
186 | 00260 <a class="code" href="OgrePrerequisites_8h.html#a15">OGRE_LOCK_MUTEX</a>(*r.OGRE_AUTO_MUTEX_NAME) |
---|
187 | 00261 <a class="code" href="OgrePrerequisites_8h.html#a20">OGRE_COPY_AUTO_SHARED_MUTEX</a>(r.OGRE_AUTO_MUTEX_NAME) |
---|
188 | 00262 pRep = static_cast<BspLevel*>(r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra12">getPointer</a>()); |
---|
189 | 00263 pUseCount = r.<a class="code" href="classOgre_1_1SharedPtr.html#Ogre_1_1SharedPtra11">useCountPointer</a>(); |
---|
190 | 00264 <span class="keywordflow">if</span> (pUseCount) |
---|
191 | 00265 { |
---|
192 | 00266 ++(*pUseCount); |
---|
193 | 00267 } |
---|
194 | 00268 <span class="keywordflow">return</span> *<span class="keyword">this</span>; |
---|
195 | 00269 } |
---|
196 | 00270 }; |
---|
197 | 00271 |
---|
198 | 00272 } |
---|
199 | 00273 |
---|
200 | 00274 <span class="preprocessor">#endif</span> |
---|
201 | </pre></div><hr> |
---|
202 | <p> |
---|
203 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
204 | <!--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/> |
---|
205 | 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/> |
---|
206 | <!--/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#"> |
---|
207 | <Work rdf:about=""> |
---|
208 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
209 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
210 | </Work> |
---|
211 | <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> --> |
---|
212 | |
---|
213 | Last modified Sun Mar 12 14:37:37 2006 |
---|
214 | </p> |
---|
215 | </body> |
---|
216 | </html> |
---|