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; } }
public void AddScene(AGT_Scene scene) { lock (this) { if (gf != null) { gf.AddScene(scene); } } }