示例#1
0
        public override void Visit()
        {
            if (m_pStencil == null || !m_pStencil.Visible)
            {
                if (m_bInverted)
                {
                    // draw everything
                    base.Visit();
                }
                return;
            }

            if (CCDrawManager.BeginDrawMask(m_bInverted, m_fAlphaThreshold))
            {
                CCDrawManager.PushMatrix();
                Transform();

                m_pStencil.Visit();

                CCDrawManager.PopMatrix();

                CCDrawManager.EndDrawMask();

                base.Visit();

                CCDrawManager.EndMask();
            }
            else
            {
                base.Visit();
            }
        }