/// <summary> /// Initializes a new instance of the <see cref="Render3D"/> class. /// </summary> /// <param name="_args">The point data.</param> /// <param name="_colheight">The point data column height.</param> /// <param name="_options">The options.</param> public Render3D(List<List<float>> _args, int _colheight, Plot3DOptions[] _options) { //Creates graphics device and loads parameters. pGraphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; pColHeight = _colheight; pDataPoints = _args; pOptions = _options; this.IsMouseVisible = true; this.Window.AllowUserResizing = true; }
public static void Plot3D(List<List<float>> _args, int _colheight, Plot3DOptions[] _options = null) { using (var game = new Render3D(_args, _colheight, _options)) game.Run(); }