コード例 #1
0
        public override void DestroyProxies(AabbTree <MudBrushBase> tree)
        {
            tree.DestroyProxy(m_iProxyBegin);
            tree.DestroyProxy(m_iProxyEnd);

            m_iProxyBegin = AabbTree <MudBrushBase> .Null;
            m_iProxyEnd   = AabbTree <MudBrushBase> .Null;
        }
コード例 #2
0
        public virtual void UpdateProxies(AabbTree <MudBrushBase> tree, Aabb opBounds)
        {
            if (m_iProxy == AabbTree <MudBrushBase> .Null)
            {
                m_iProxy = tree.CreateProxy(opBounds, this);
            }

            tree.UpdateProxy(m_iProxy, opBounds, m_iSdfBrush);
        }
コード例 #3
0
        public override void UpdateProxies(AabbTree <MudBrushBase> tree, Aabb opBounds)
        {
            if (m_iProxyBegin == AabbTree <MudBrushBase> .Null)
            {
                m_iProxyBegin = tree.CreateProxy(opBounds, this);
            }

            if (m_iProxyEnd == AabbTree <MudBrushBase> .Null)
            {
                m_iProxyEnd = tree.CreateProxy(opBounds, this);
            }

            tree.UpdateProxy(m_iProxyBegin, opBounds, m_iBegin);
            tree.UpdateProxy(m_iProxyEnd, opBounds, m_iEnd);
        }
コード例 #4
0
 public virtual void DestroyProxies(AabbTree <MudBrushBase> tree)
 {
     tree.DestroyProxy(m_iProxy);
     m_iProxy = AabbTree <MudBrushBase> .Null;
 }