Exemple #1
0
        public Camera()
        {
            inputManager = InputManager.GetInstance();

            frustum = new BoundingFrustum(view * projection);

            UpdateProjection();
        }
Exemple #2
0
        /// <summary>
        /// Creates a new screen manager.
        /// </summary>
        public ScreenManager(GraphicsDeviceManager graphicsDeviceManager)
        {
            this.graphicsDeviceManager = graphicsDeviceManager;

            inputManager = InputManager.GetInstance();
        }
Exemple #3
0
 /// <summary>
 /// Creates a generic widget.
 /// </summary>
 public Widget(SpriteBatch spriteBatch)
 {
     this.spriteBatch = spriteBatch;
     this.inputManager = InputManager.GetInstance();
 }
Exemple #4
0
 /// <summary>
 /// Returns the unique instance of the input manager.
 /// </summary>
 public static InputManager GetInstance()
 {
     return instance == null ? instance = new InputManager() : instance;
 }