- Timestamp:
- 03/29/05 08:21:37 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/src/OgreOcclusionCullingSceneManagerDll.cpp
r18 r32 24 24 */ 25 25 26 #include "OgreOcclusionCullingSceneManager.h" 27 #include "OgreRoot.h" 26 //#include "OgreOcclusionCullingSceneManager.h" 27 //#include "OgreTerrainOcclusionCullingSceneManager.h" 28 #include <OgreOctreeSceneManager.h> 29 #include <OgreTerrainSceneManager.h> 30 #include <OgreRoot.h> 31 #include "OgreHeightmapTerrainPageSource.h" 28 32 //#include <windows.h> 29 33 30 34 namespace Ogre { 31 35 32 OcclusionCullingSceneManager* occlusionPlugin; 36 //OcclusionCullingSceneManager *occlusionPlugin; 37 //TerrainOcclusionCullingSceneManager *terrainOcclusionPlugin; 38 OctreeSceneManager *ocPlugin; 39 33 40 //----------------------------------------------------------------------- 34 41 extern "C" void dllStartPlugin(void) 35 42 { 36 // Create new scene manager 37 occlusionPlugin = new OcclusionCullingSceneManager(); 38 39 // Register 40 Root::getSingleton().setSceneManager(ST_GENERIC, occlusionPlugin); 41 43 // Create new scene manager 44 // occlusionPlugin = new OcclusionCullingSceneManager(); 45 ocPlugin = new OctreeSceneManager(); 46 47 // Register 48 //Root::getSingleton().setSceneManager( ST_GENERIC, occlusionPlugin ); 49 // Root::getSingleton().setSceneManager( ST_EXTERIOR_CLOSE, terrainOcclusionPlugin ); 50 Root::getSingleton().setSceneManager( ST_EXTERIOR_CLOSE, ocPlugin ); 51 42 52 //MessageBox( NULL, "myplugin registered", "this is my plugin", MB_OK | MB_ICONERROR | MB_TASKMODAL); 43 53 } 44 54 extern "C" void dllStopPlugin(void) 45 55 { 46 delete occlusionPlugin; 56 // delete occlusionPlugin; 57 delete ocPlugin; 58 //delete terrainOcclusionPlugin; 47 59 } 48 60 }
Note: See TracChangeset
for help on using the changeset viewer.