marten
06-02-2011 21:45:08
Hello everyone!
I've been trying to get some RTT going with MyGUI, but I'm having troubles getting the Unittest_RTTLayer sample to work.
I've copied the MyGUI_RTTLayer files to my project and I've added this to my core_layer.xml:
And this is the way I implement it:
But I get this error in the log from the _gui->initialise row:
Any tips?
I've been trying to get some RTT going with MyGUI, but I'm having troubles getting the Unittest_RTTLayer sample to work.
I've copied the MyGUI_RTTLayer files to my project and I've added this to my core_layer.xml:
<Layer type="RTTLayer" name="RenderToTexture">
<Property key="Pick" value="false"/>
<Property key="TextureSize" value="256 256"/>
<Property key="TextureName" value="RTTTexture1"/>
</Layer>
And this is the way I implement it:
_platform = new MyGUI::OgrePlatform();
_platform->initialise(window, sceneManager);
_gui = new MyGUI::Gui();
_gui->initialise("core.xml");
MyGUI::FactoryManager::getInstance().registerFactory<MyGUI::RTTLayer>("Layer");
But I get this error in the log from the _gui->initialise row:
18:37:37 | Core | Critical | factory is 'RTTLayer' not found | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 117
Any tips?