Esempio n. 1
0
 public MainForm()
 {
     this.Width = 1000;
     this.Height = 800;
     InitializeComponent();
     CenterToScreen();
     this.Click += new EventHandler(this.MainForm_Click);
     this.KeyPress += new KeyPressEventHandler(this.MainForm_KeyPress);
     curCtxt = BufferedGraphicsManager.Current;
     buffer = curCtxt.Allocate(this.CreateGraphics(), this.DisplayRectangle);
     s = new State();
     r = new Renderer(this, s);
     camera = new CAMERA();
 }
Esempio n. 2
0
        public projection(CAMERA camera)
        {
            EPSILON = 0.001;
            DTOR = 0.01745329252;
            this.camera = camera;
            screen = new SCREEN();
            origin = new Point3D();
            basisa = new Point3D();
            viewVec = new Point3D();
            basisc = new Point3D();
            p1 = new Point2D();
            p2 = new Point2D();

            e1 = new Point3D();
            e2 = new Point3D();
            n1 = new Point3D();
            n2 = new Point3D();
            if (Trans_Initialise() != true)
            {
                //MessageBox.Show("Error in initializing variable");
            }
        }