//----------------------------------------------------------------------------// void RenderingSurface::transferRenderingWindow(RenderingWindow& window) { if (&window.getOwner() != this) { // detach window from it's current owner window.getOwner().detatchWindow(window); // add window to this surface. attachWindow(window); window.setOwner(*this); } }
//----------------------------------------------------------------------------// void RenderingSurface::destroyRenderingWindow(RenderingWindow& window) { if (&window.getOwner() == this) { detatchWindow(window); delete &window; } }
//----------------------------------------------------------------------------// void RenderingSurface::destroyRenderingWindow(RenderingWindow& window) { if (&window.getOwner() == this) { detatchWindow(window); CEGUI_DELETE_AO &window; } }