Struct GameWindow¶
Namespace: Apogee.Content.Packages
Assembly: Apogee.Content.dll
The window a game opens with.
public readonly record struct GameWindow : IEquatable<GameWindow>
Implements¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors¶
GameWindow(int, int, bool, bool)¶
The window a game opens with.
public GameWindow(int Width, int Height, bool Fullscreen, bool Resizable)
Parameters¶
Width int
The width in pixels of the client area.
Height int
The height in pixels of the client area.
Fullscreen bool
Whether the window starts fullscreen.
Resizable bool
Whether the player can resize the window.
Properties¶
Default¶
1280 x 720, windowed, resizable.
public static GameWindow Default { get; }
Property Value¶
Fullscreen¶
Whether the window starts fullscreen.
public bool Fullscreen { get; init; }
Property Value¶
Height¶
The height in pixels of the client area.
public int Height { get; init; }
Property Value¶
Resizable¶
Whether the player can resize the window.
public bool Resizable { get; init; }
Property Value¶
Width¶
The width in pixels of the client area.
public int Width { get; init; }