예제 #1
0
 private void Init(SharpGL.OpenGLControl openGLControl, int interval, double eyex, double eyey, double eyez,
                   double centerx, double centery, double centerz,
                   double upx, double upy, double upz, double fovy, double aspect, double zNear, double zFar)
 {
     this.openGLControl      = openGLControl;
     this.interval           = interval;
     this.eye                = new TriTuple(eyex, eyey, eyez);
     this.center             = new TriTuple(centerx, centery, centerz);
     this.up                 = new TriTuple(upx, upy, upz);
     this.perspective        = new PerspectiveParam(fovy, aspect, zNear, zFar);
     this.updateViewDelegate = new Action(UpdateView);
 }
예제 #2
0
 public CameraEventArgs(TriTuple eye, TriTuple center, TriTuple up, PerspectiveParam perspective)
 {
     this.eye         = eye; this.center = center; this.up = up;
     this.perspective = perspective;
 }