private void LoadDolphin(object sender, EventArgs e) { DisplayObject =NewCustomMatrix(); DisplayObject.LoadMatrix(@"objects\Dolphin.txt"); scalingMatrix = Dmatrix.ScalingMatrix(1, 1, 1); transformAndDrawAll(); }
private void LoadTeapot(object sender, EventArgs e) { DisplayObject = NewCustomMatrix(); DisplayObject.LoadMatrix(@"objects\teapot.txt"); scalingMatrix = Dmatrix.ScalingMatrix(10, 10, 10); transformAndDrawAll(); }
public double[,] scalingMatrix; // since the animals are all diff sizes this is set on load; #endregion Fields #region Constructors public Form1() { DisplayObject = new CustomMatrix() { lineColor = Color.Black ,fillColor = Color.FromArgb(100,100,100) ,penThickness = 1 }; DisplayObject.LoadMatrix(filename); InitializeComponent(); scalingMatrix = Dmatrix.ScalingMatrix(1, 1, 1); transformAndDrawAll(); }
private void LoadTRex(object sender, EventArgs e) { DisplayObject = NewCustomMatrix(); DisplayObject.LoadMatrix(@"objects\T-Rex.txt"); scalingMatrix = Dmatrix.ScalingMatrix(10, 10, 10); }