Ignore:
Timestamp:
03/29/05 08:21:37 (20 years ago)
Author:
gametools
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/OcclusionCullingSceneManager/src/OgreOcclusionCullingSceneManagerDll.cpp

    r18 r32  
    2424*/ 
    2525 
    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" 
    2832//#include <windows.h> 
    2933 
    3034namespace Ogre { 
    3135 
    32     OcclusionCullingSceneManager* occlusionPlugin; 
     36    //OcclusionCullingSceneManager *occlusionPlugin; 
     37        //TerrainOcclusionCullingSceneManager *terrainOcclusionPlugin; 
     38        OctreeSceneManager *ocPlugin; 
     39 
    3340    //----------------------------------------------------------------------- 
    3441    extern "C" void dllStartPlugin(void) 
    3542    { 
    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 
    4252                //MessageBox( NULL, "myplugin registered", "this is my plugin", MB_OK | MB_ICONERROR | MB_TASKMODAL); 
    4353    } 
    4454    extern "C" void dllStopPlugin(void) 
    4555    { 
    46         delete occlusionPlugin; 
     56      //  delete occlusionPlugin; 
     57                delete ocPlugin; 
     58                //delete terrainOcclusionPlugin; 
    4759    } 
    4860} 
Note: See TracChangeset for help on using the changeset viewer.