Exemplo n.º 1
0
//----------------------------------------------------------------------------//
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);
    }
}
Exemplo n.º 2
0
//----------------------------------------------------------------------------//
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;
    }
}