Revision | 9b5c586fef4f8e2ddc5eb3a9db95104593a4fd1b (tree) |
---|---|
Time | 2024-07-05 19:45:51 |
Author | sebastian_bugiu |
Commiter | sebastian_bugiu |
Added PCZSceneManager to OgreRoot init.
@@ -114,6 +114,7 @@ | ||
114 | 114 | #elif (OGRE_PLATFORM == OGRE_PLATFORM_WIN32) |
115 | 115 | //#include "RenderSystems/GL3Plus/include/OgreGL3PlusRenderSystem.h" |
116 | 116 | #include "RenderSystems/Direct3D11/include/OgreD3D11RenderSystem.h" |
117 | +#include "PlugIns/PCZSceneManager/include/OgrePCZPlugin.h" | |
117 | 118 | #elif OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS |
118 | 119 | //#include "../../../RenderSystems/Metal/include/OgreMetalRenderSystem.h" |
119 | 120 | #include "../../../RenderSystems/Metal/include/OgreMetalPlugin.h" |
@@ -314,8 +315,13 @@ | ||
314 | 315 | #if (OGRE_PLATFORM == OGRE_PLATFORM_ANDROID) |
315 | 316 | GLES3RenderSystem *renderSystem = OGRE_NEW GLES3RenderSystem(); |
316 | 317 | #elif (OGRE_PLATFORM == OGRE_PLATFORM_WIN32) |
318 | + PCZPlugin *pcz = OGRE_NEW PCZPlugin(); | |
319 | + installPlugin(pcz); | |
320 | + | |
317 | 321 | // GL3PlusRenderSystem *renderSystem = OGRE_NEW GL3PlusRenderSystem(); |
318 | 322 | D3D11RenderSystem *renderSystem = OGRE_NEW D3D11RenderSystem(); |
323 | + Root::getSingleton().addRenderSystem(renderSystem); | |
324 | + Root::getSingleton().setRenderSystem( renderSystem ); | |
319 | 325 | #elif OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS |
320 | 326 | { |
321 | 327 | // Ogre::RenderSystem *renderSystem = OGRE_NEW MetalRenderSystem(); |