Beispiel #1
0
 private void LoadDolphin(object sender, EventArgs e)
 {
     DisplayObject =NewCustomMatrix();
     DisplayObject.LoadMatrix(@"objects\Dolphin.txt");
     scalingMatrix = Dmatrix.ScalingMatrix(1, 1, 1);
     transformAndDrawAll();
 }
Beispiel #2
0
 private void LoadTeapot(object sender, EventArgs e)
 {
     DisplayObject = NewCustomMatrix();
     DisplayObject.LoadMatrix(@"objects\teapot.txt");
     scalingMatrix = Dmatrix.ScalingMatrix(10, 10, 10);
     transformAndDrawAll();
 }
Beispiel #3
0
        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();
        }
Beispiel #4
0
 private void LoadTRex(object sender, EventArgs e)
 {
     DisplayObject = NewCustomMatrix();
     DisplayObject.LoadMatrix(@"objects\T-Rex.txt");
     scalingMatrix = Dmatrix.ScalingMatrix(10, 10, 10);
 }