Example #1
0
        public void Draw(IBaseEffect effect)
        {
            effect.Texture = _texture;

            _graphicsDevice.SetVertexBuffer(_buffer);
            effect.Apply();
            _graphicsDevice.DrawPrimitives(PrimitiveType.TriangleList, 0, _buffer.VertexCount/3);
        }