public override void Create()
        {
            MyCamera             = new ObjectValue("Camera3D", typeof(Camera3DObject));
            MyCamera.ChangeEvent = SetCamera;

            AddWindowForm(cameraControls = new CameraControls3D(this));
            AddWindowForm(objectControls = new ObjectControls3D(this));

            base.Create();
        }
Example #2
0
        private static void Load()
        {
            if (!Loaded)
            {
                Loaded = true;
                ObjectControls3D.LoadIcons();

                ScaleControl  = Game1.content.Load <Texture2D>("Editor/ScaleControl");
                RotateControl = Game1.content.Load <Texture2D>("Editor/RotateControl");
                MoveControl   = Game1.content.Load <Texture2D>("Editor/MoveControl");
            }
        }