Isosurface.ISurfaceAlgorithm.DrawWireframe C# (CSharp) Method

DrawWireframe() public method

public DrawWireframe ( Camera c, Effect e, Matrix world ) : void
c Camera
e Microsoft.Xna.Framework.Graphics.Effect
world Matrix
return void
        public virtual void DrawWireframe(Camera c, Effect e, Matrix world)
        {
            if (WireframeCount == 0)
                return;
            e.Parameters["World"].SetValue(world);
            e.Parameters["View"].SetValue(c.View);
            e.Parameters["Projection"].SetValue(c.Projection);
            e.CurrentTechnique.Passes[0].Apply();

            Device.Indices = WireframeIndexBuffer;
            Device.SetVertexBuffer(WireframeBuffer);

            Device.DrawIndexedPrimitives(PrimitiveType.LineList, 0, 0, WireframeVertexCount, 0, WireframeCount / 2);

            Device.SetVertexBuffer(null);
            Device.Indices = null;
        }