Changeset 16
- Timestamp:
- 03/15/05 15:21:22 (20 years ago)
- Location:
- trunk/VUT/OcclusionCullingSceneManager
- Files:
-
- 13 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/TestCulling/TestCulling.vcproj
r13 r16 13 13 <Configuration 14 14 Name="Debug|Win32" 15 OutputDirectory=" Debug"16 IntermediateDirectory=" Debug"15 OutputDirectory="..\bin\$(ConfigurationName)" 16 IntermediateDirectory="..\obj\$(ConfigurationName)" 17 17 ConfigurationType="1" 18 18 CharacterSet="2" … … 35 35 Name="VCLinkerTool" 36 36 AdditionalDependencies="OGREMain_d.LIB" 37 OutputFile="$(OGRE_PATH)\ Common\Bin\Debug\TestCulling.exe"37 OutputFile="$(OGRE_PATH)\Samples\Common\Bin\Debug\TestCulling.exe" 38 38 LinkIncremental="2" 39 39 AdditionalLibraryDirectories="$(OGRE_PATH)\OgreMain\Lib\Debug" … … 120 120 Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" 121 121 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> 122 <File123 RelativePath=".\TestCullingApplication.cpp">124 </File>125 122 </Filter> 126 123 <Filter -
trunk/VUT/OcclusionCullingSceneManager/TestCulling/TestCullingApplication.cpp
r12 r16 30 30 TestCullingApplication app; 31 31 32 32 try { 33 33 app.go(); 34 34 } catch( Ogre::Exception& e ) { 35 35 MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL); 36 } 36 } 37 37 38 38 return 0; -
trunk/VUT/OcclusionCullingSceneManager/TestCulling/TestCullingApplication.h
r12 r16 86 86 void chooseSceneManager(void) 87 87 { 88 mSceneMgr = mRoot->getSceneManager(ST_INTERIOR); 88 // mSceneMgr = mRoot->getSceneManager(ST_GENERIC); 89 mSceneMgr = mRoot->getSceneManager(ST_INTERIOR); 89 90 } 90 91 /* -
trunk/VUT/OcclusionCullingSceneManager/scripts/Plugin_OcclusionCullingSceneManager.sln
r12 r16 6 6 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestCulling", "..\TestCulling\TestCulling.vcproj", "{248F19A6-2FE0-4F5D-8928-E0EA10609887}" 7 7 ProjectSection(ProjectDependencies) = postProject 8 {80DECC17-BDDD-4412-8CF8-F7C1C17A7436} = {80DECC17-BDDD-4412-8CF8-F7C1C17A7436} 8 9 EndProjectSection 9 10 EndProject -
trunk/VUT/OcclusionCullingSceneManager/scripts/Plugin_OcclusionCullingSceneManager.vcproj
r13 r16 20 20 Name="VCCLCompilerTool" 21 21 Optimization="0" 22 AdditionalIncludeDirectories="..\include; $(OGRE_PATH)\OgreMain\include"22 AdditionalIncludeDirectories="..\include; $(OGRE_PATH)\OgreMain\include" 23 23 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PLUGIN_OCCLUSIONCULLINGSCENEMANAGER_EXPORTS" 24 24 MinimalRebuild="TRUE" … … 51 51 <Tool 52 52 Name="VCPostBuildEventTool" 53 CommandLine="copy $(OutDir)\$(TargetFileName) ..\..\..\Samples\Common\bin\$(ConfigurationName)"/>53 CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 54 54 <Tool 55 55 Name="VCPreBuildEventTool"/> … … 87 87 EnableFiberSafeOptimizations="TRUE" 88 88 OptimizeForProcessor="2" 89 AdditionalIncludeDirectories="..\include; ..\..\..\OgreMain\include"89 AdditionalIncludeDirectories="..\include;$(OGRE_PATH)\OgreMain\include" 90 90 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PLUGIN_OCCLUSIONCULLINGSCENEMANAGER_EXPORTS" 91 91 StringPooling="TRUE" … … 107 107 LinkIncremental="1" 108 108 SuppressStartupBanner="TRUE" 109 AdditionalLibraryDirectories="" ..\..\..\OgreMain\lib\$(ConfigurationName)";"..\..\..\Dependencies\lib\$(ConfigurationName)""109 AdditionalLibraryDirectories=""$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)";"..\..\..\Dependencies\lib\$(ConfigurationName)"" 110 110 ModuleDefinitionFile="..\misc\OgreOcclusionCullingSceneManager.def" 111 111 GenerateDebugInformation="TRUE" … … 119 119 <Tool 120 120 Name="VCPostBuildEventTool" 121 CommandLine="copy $(OutDir)\$(TargetFileName) ..\..\..\Samples\Common\bin\$(ConfigurationName)"/>121 CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 122 122 <Tool 123 123 Name="VCPreBuildEventTool"/> … … 153 153 RelativePath="..\src\OgreOcclusionCullingSceneManagerDll.cpp"> 154 154 </File> 155 <File 156 RelativePath="..\TestCulling\TestCullingApplication.cpp"> 157 </File> 155 158 </Filter> 156 159 <Filter -
trunk/VUT/OcclusionCullingSceneManager/src/Makefile.am
r12 r16 1 INCLUDES = $(STLPORT_CFLAGS) -I$(top_srcdir)/PlugIns/ BSPSceneManager/include -I$(top_srcdir)/OgreMain/include1 INCLUDES = $(STLPORT_CFLAGS) -I$(top_srcdir)/PlugIns/OcclusionCullingSceneManager/include -I$(top_srcdir)/OgreMain/include 2 2 3 3 pkglib_PROGRAMS = Plugin_BSPSceneManager.so 4 4 5 Plugin_BSPSceneManager_so_SOURCES = OgreBspLevel.cpp \ 6 OgreBspNode.cpp \ 7 OgreBspResourceManager.cpp \ 8 OgreBspSceneManager.cpp \ 9 OgreBspSceneManagerDll.cpp \ 10 OgreBspSceneNode.cpp \ 11 OgreQuake3ShaderManager.cpp \ 12 OgreQuake3Shader.cpp \ 13 OgreQuake3Level.cpp 14 15 16 Plugin_BSPSceneManager_so_LDFLAGS = $(SHARED_FLAGS) -L$(top_srcdir)/OgreMain/src 17 Plugin_BSPSceneManager_so_LDADD = -lOgreMain 5 Plugin_OcclusionCullingSceneManager_so_SOURCES = OgreBspLevel.cpp \ 6 OcclusionCullingResourceManager.cpp \ 7 OcclusionCullingSceneManager.cpp \ 8 OcclusionCullingSceneManagerDll.cpp 9 10 Plugin_OcclusionCullingSceneManager_so_LDFLAGS = $(SHARED_FLAGS) -L$(top_srcdir)/OgreMain/src 11 Plugin_OcclusionCullingSceneManager_so_LDADD = -lOgreMain -
trunk/VUT/OcclusionCullingSceneManager/src/OgreOcclusionCullingSceneManager.cpp
r12 r16 2 2 #include "OgreMath.h" 3 3 #include "OgreIteratorWrappers.h" 4 #include <windows.h> 4 5 5 6 namespace Ogre { … … 8 9 OcclusionCullingSceneManager::OcclusionCullingSceneManager(): 9 10 mFrameID(1) 10 { 11 { 11 12 } 12 13 … … 17 18 //mDistanceQueue.push(mSceneRoot); 18 19 //Preprocess(); 19 20 //printf("registered my plugin!!\n"); 21 //MessageBox( NULL, "myplugin", "this is my plugin", MB_OK | MB_ICONERROR | MB_TASKMODAL); 20 22 renderCullFrustum(); 21 23 -
trunk/VUT/OcclusionCullingSceneManager/src/OgreOcclusionCullingSceneManagerDll.cpp
r12 r16 26 26 #include "OgreOcclusionCullingSceneManager.h" 27 27 #include "OgreRoot.h" 28 //#include "windows.h" 28 #include <windows.h> 29 29 30 30 namespace Ogre { … … 36 36 // Create new scene manager 37 37 occlusionPlugin = new OcclusionCullingSceneManager(); 38 39 // Register 40 Root::getSingleton().setSceneManager(ST_INTERIOR, occlusionPlugin); 41 //Root::getSingleton().setSceneManager(ST_GENERIC, occlusionPlugin); 38 42 39 // Register 40 Root::getSingleton().setSceneManager(ST_INTERIOR, occlusionPlugin); 41 //Root::getSingleton().setSceneManager(ST_GENERIC, bspPlugin); 42 //printf("registered my plugin!!\n"); 43 //MessageBox( NULL, "myplugin", "this is my plugin", MB_OK | MB_ICONERROR | MB_TASKMODAL); 43 MessageBox( NULL, "myplugin registered", "this is my plugin", MB_OK | MB_ICONERROR | MB_TASKMODAL); 44 44 } 45 45 extern "C" void dllStopPlugin(void)
Note: See TracChangeset
for help on using the changeset viewer.