public override void Draw()
        {
            CCDrawManager.BlendFunc(m_tBlendFunc);
            CCDrawManager.BindTexture(m_pTexture);

            CCDrawManager.DrawPrimitives(PrimitiveType.TriangleStrip, m_pVertices, 0, m_uNuPoints * 2 - 2);
        }
        public override void Draw()
        {
            if (m_bDirty)
            {
                //TODO: Set vertices to buffer
                m_bDirty = false;
            }

            CCDrawManager.TextureEnabled = false;
            CCDrawManager.BlendFunc(m_sBlendFunc);
            CCDrawManager.DrawPrimitives(PrimitiveType.TriangleList, m_pVertices.Elements, 0, m_pVertices.Count / 3);
        }
Example #3
0
        public override void Draw()
        {
            if (m_bDirty)
            {
                m_bDirty = false;
                if (FilterPrimitivesByAlpha)
                {
                    _toDraw = m_pVertices.Elements.Where(x => x.Color.A > 0).ToArray();
                }
                else
                {
                    _toDraw = m_pVertices.Elements;
                }
            }

            if (_toDraw != null)
            {
                CCDrawManager.TextureEnabled = false;
                CCDrawManager.BlendFunc(m_sBlendFunc);
                CCDrawManager.DrawPrimitives(PrimitiveType.TriangleList, _toDraw, 0, _toDraw.Length / 3);
            }
        }
Example #4
0
 public override void Draw()
 {
     CCDrawManager.TextureEnabled = false;
     CCDrawManager.BlendFunc(m_tBlendFunc);
     CCDrawManager.DrawPrimitives(PrimitiveType.TriangleStrip, m_pSquareVertices, 0, 2);
 }