Exemplo n.º 1
0
        public ModelViewerScene()
        {
            UpdateState = UpdateStateInit;
            DrawState = DrawStateInit;

            Name = "ModelViewer";

            cameraUpdater = new ViewerCameraUpdater(Camera, InputAccessor.GetController(ControllerLabel.Main))
            {
                InitRotX = -MathUtil.PiOver4,
                InitRotY = MathUtil.PiOver4,
                InitEyeZ = 30.0f,
                //InitPan = Vector3.Up * 6.0f,
                MaxEyeZ = 200.0f,
                MinEyeZ = 1.0f,
                EyeZInterval = 0.05f,
                PanInterval = 0.2f,
                EnableCameraKey = false,
                EnablePan = true,
            };

            debugMenu = new DebugMenu("ModelViewerMenu");
            debugMenuUpdater = new DebugMenuUpdater(debugMenu, BooleanDeviceLabel.SceneDebugMenu);
            debugMenuDrawer = new DefaultDebugMenuDrawer();
        }
Exemplo n.º 2
0
        public BootScene()
        {
            UpdateState = UpdateStateInit;
            DrawState = DrawStateInit;

            Name = "BootScene";

            debugMenu = new DebugMenu("起動メニュー");
            debugMenuUpdater = new DebugMenuUpdater(debugMenu, BooleanDeviceLabel.SceneDebugMenu);
            debugMenuDrawer = new DefaultDebugMenuDrawer();
        }