Пример #1
0
 public OgreOSWindow(RenderWindow window)
 {
     this.window        = window;
     handle             = new IntPtr(long.Parse(window.getWindowHandleStr()));
     ogreWindowListener = new OgreWindowListener(this);
     WindowEventUtilities.addWindowEventListener(window, ogreWindowListener);
     Focused = true;
 }
Пример #2
0
 public void Dispose()
 {
     WindowEventUtilities.removeWindowEventListener(window, ogreWindowListener);
     ogreWindowListener.Dispose();
     window.destroy();
 }