Ejemplo n.º 1
0
    //---------------------------------------------------------------------
    void Overlay::setZOrder(ushort zorder)
    {
        // Limit to 650 since this is multiplied by 100 to pad out for containers
        assert (zorder <= 650 && "Overlay ZOrder cannot be greater than 650!");

        mZOrder = zorder;

		assignZOrders();
    }
Ejemplo n.º 2
0
	//---------------------------------------------------------------------
    void Overlay::add2D(OverlayContainer* cont)
    {
        m2DElements.push_back(cont);
        // Notify parent
        cont->_notifyParent(0, this);

		assignZOrders();

        Matrix4 xform;
        _getWorldTransforms(&xform);
        cont->_notifyWorldTransforms(xform);
        cont->_notifyViewport();
    }
Ejemplo n.º 3
0
    //---------------------------------------------------------------------
    void Overlay::remove2D(OverlayContainer* cont)
    {
        m2DElements.remove(cont);
		assignZOrders();
    }
Ejemplo n.º 4
0
	//---------------------------------------------------------------------
	void Overlay::remove2D(OverlayContainer* cont)
	{
		m2DElements.remove(cont);
		cont->_notifyParent(0, 0);
		assignZOrders();
	}