FSO.Vitaboy.Mesh.DrawGeometry C# (CSharp) Method

DrawGeometry() public method

public DrawGeometry ( GraphicsDevice gd ) : void
gd GraphicsDevice
return void
        public void DrawGeometry(GraphicsDevice gd)
        {
            if (GPUMode){
                gd.Indices = GPUIndexBuffer;
                gd.SetVertexBuffer(GPUVertexBuffer);
                gd.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, VertexBuffer.Length, 0, NumPrimitives);
            }else{
                gd.DrawUserIndexedPrimitives(PrimitiveType.TriangleList, VertexBuffer, 0, VertexBuffer.Length, IndexBuffer, 0, NumPrimitives);
            }
        }