Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 06719cf03808e17ae6f0852ca1052dc2 > files > 933

libogre1-devel-0.13.0-1mdk.i586.rpm

<html>
<head>
<title>OgreOctreeSceneManagerDll.cpp Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<link type="text/css" rel="stylesheet" href="style.css">
</head>

<body>
<!-- Generated by Doxygen 1.2.16 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>OgreOctreeSceneManagerDll.cpp</h1><a href="OgreOctreeSceneManagerDll_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 
00002 <font class="preprocessor">#include &lt;<a class="code" href="OgreOctreeSceneManager_8h.html">OgreOctreeSceneManager.h</a>&gt;</font>
00003 <font class="preprocessor">#include &lt;<a class="code" href="OgreTerrainSceneManager_8h.html">OgreTerrainSceneManager.h</a>&gt;</font>
00004 <font class="preprocessor">#include &lt;<a class="code" href="OgreRoot_8h.html">OgreRoot.h</a>&gt;</font>
00005 
00006 <font class="keyword">namespace </font>Ogre
00007 {
<a name="l00008"></a><a class="code" href="namespaceOgre.html#a482">00008</a> <a class="code" href="classOgre_1_1OctreeSceneManager.html">OctreeSceneManager</a>* <a class="code" href="namespaceOgre.html#a482">octreePlugin</a>;
<a name="l00009"></a><a class="code" href="namespaceOgre.html#a483">00009</a> <a class="code" href="classOgre_1_1TerrainSceneManager.html">TerrainSceneManager</a>* <a class="code" href="namespaceOgre.html#a483">terrainPlugin</a>;
00010 
00011 <font class="keyword">extern</font> <font class="stringliteral">"C"</font> <font class="keywordtype">void</font> <a class="code" href="namespaceOgre.html#a577">dllStartPlugin</a>( <font class="keywordtype">void</font> )
00012 {
00013     <font class="comment">// Create new scene manager</font>
00014     octreePlugin = <font class="keyword">new</font> <a class="code" href="classOgre_1_1OctreeSceneManager.html">OctreeSceneManager</a>();
00015     terrainPlugin = <font class="keyword">new</font> <a class="code" href="classOgre_1_1TerrainSceneManager.html">TerrainSceneManager</a>();
00016 
00017     <font class="comment">// Register</font>
00018     Root::getSingleton().setSceneManager( <a class="code" href="namespaceOgre.html#a642a394">ST_GENERIC</a>, octreePlugin );
00019     Root::getSingleton().setSceneManager( <a class="code" href="namespaceOgre.html#a642a395">ST_EXTERIOR_CLOSE</a>, terrainPlugin );
00020     <font class="comment">//Root::getSingleton().setSceneManager( ST_EXTERIOR_FAR, terrainPlugin );</font>
00021 }
00022 
00023 <font class="keyword">extern</font> <font class="stringliteral">"C"</font> <font class="keywordtype">void</font> <a class="code" href="namespaceOgre.html#a578">dllStopPlugin</a>( <font class="keywordtype">void</font> )
00024 {
00025     <font class="keyword">delete</font> octreePlugin;
00026     <font class="keyword">delete</font> terrainPlugin;
00027 }
00028 }
</pre></div><p>
Copyright &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:10:20 2004
</p>
</body>
</html>