void Ogre_Disposed(OgreInterface obj)
 {
     //Have to do this after ogre is disposed
     if (commonResourcesArchiveFactory != null)
     {
         commonResourcesArchiveFactory.Dispose();
         commonResourcesArchiveFactory = null;
     }
 }
        public RenderInterfaceOgre3D(int width, int height)
        {
            commonResourcesArchiveFactory = new CommonResourcesArchiveFactory();
            Root.getSingleton().addArchiveFactory(commonResourcesArchiveFactory);
            OgreInterface.Instance.Disposed += Ogre_Disposed;

            callbackHandler = new CallbackHandler(this);
            renderInterface = callbackHandler.create(width, height, this);
        }