示例#1
0
 public override void OnMouseMove(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && TargetControlRect.Contains(e.X, e.Y))
     {
         float scale = AGT_Scene.ToRadians(.5f);
         teapot_matrix1 *= (Matrix.RotationY(scale * (camera_x - e.X)) * Matrix.RotationX(scale * (camera_y - e.Y)));
         camera_y        = e.Y;
         camera_x        = e.X;
     }
 }
示例#2
0
 public void AddScene(AGT_Scene scene)
 {
     lock (this)
     {
         if (gf != null)
         {
             gf.AddScene(scene);
         }
     }
 }