-
Notifications
You must be signed in to change notification settings - Fork 4
GameWindow class reference
bool AllowUserResizing { get; set; }
- Gets or sets whether the user can resize the window
Rect ClientBounds { get; }
- Gets the window's content rectangle
Int2 Position { get; }
- Get the window's screen position
DisplayOrientation Orientation { get; }
- Get the screen orientation
StringView Title { get; set; }
- Get or set the window's title
bool IsBorderless { get; set; }
- Gets or sets whether to hide the window border
bool IsFullscreen { get; set; }
- Gets or sets whether the window is fullscreen (uses borderless fullscreen mode by default)
bool LockMouse { get; set; }
- Gets or sets whether the mouse is hidden & locked to the game window
Event<WindowClosedHandler> OnClosed
- Event triggered when the window is closed
Event<WindowResizedHandler> OnWindowResized
- Event triggered when the window is resized
Event<WindowOrientationChangedHandler> OnWindowOrientationChanged
- Event triggered when the display orientation changes
Getting Started
Drawing Sprites
Loading & Applying Effects
Loading Textures
Creating vertex & index buffers and drawing geometry
Using render buffers
Playing sound effects & music
Routing sound through buses & applying filters
Game
GameWindow
GraphicsDevice
SpriteBatch
Audio
Keyboard
Mouse
GamepadDevice