Operating System: Windows Version 10.0.19041.985
Render System: D3D9 : Created D3D9 Rendering Window
Hello,
I'm new to Ogre3d and fiddle arround with the basics. I deciced to use the .Net bindings to write my code in C#. My code initialized a window, created scene manager, camera, view port and it worked well. Now I tried to implement a custom OverlayElementFactory by extending class org.ogre.PanelOverlayElementFactory and register it at OverlayManger. Any time the following code is executed:
Code: Select all
OverlayManager.getSingleton().addOverlayElementFactory(new CompassOverlayFactory());
Code: Select all
at org.ogre.OgreOverlayPINVOKE.OverlayManager_addOverlayElementFactory(HandleRef jarg1, HandleRef jarg2)
at org.ogre.OverlayManager.addOverlayElementFactory(OverlayElementFactory elemFactory)
at SharpIris.LuaInterface.Ogre.Factories.CompassOverlay.RegisterFactory() in ...\\Ogre\\Factories\\CompassOverlay.cs:line 44
at SharpIris.LuaInterface.Ogre.Wrapper.RegisterFactories() in ...\\Ogre\\Wrapper.cs:line 336
at SharpIris.LuaInterface.Ogre.Wrapper.CreateWindow(String windowTitle) in ...\\Ogre\\Wrapper.cs:line 330
at SharpIris.LuaInterface.Ogre.OgreMain.InitOgre(String windowTitle, String pluginPath, String baseDir, Boolean autoCreateWindow) in ...\\Ogre\\OgreMain.cs:line 51
Code: Select all
OverlayManager.getSingleton().addOverlayElementFactory(new PanelOverlayElementFactory ());
Best regards