Komodo Engine
C PROJECT_LOGO=
|
Represents a screen resolution. More...
Public Member Functions | |
Resolution (int width, int height) | |
override bool | Equals (object obj) |
Compares the equality of Resolution and an arbitrary type. More... | |
bool | Equals (Resolution other) |
Compares the equality of Resolution and another Resolution. More... | |
override int | GetHashCode () |
Generates a hashcode from the Resolution. More... | |
Static Public Member Functions | |
static bool | operator== (Resolution left, Resolution right) |
| |
static bool | operator!= (Resolution left, Resolution right) |
| |
Public Attributes | |
float | AspectRatio => Height == 0 ? 0 : Width / (float)Height |
Aspect ratio of the resolution. More... | |
Properties | |
int | Height [get] |
Height of the screen resolution. More... | |
int | Width [get] |
Width of the screen resolution. More... | |
Represents a screen resolution.
Komodo.Core.Engine.Graphics.Resolution.Resolution | ( | int | width, |
int | height | ||
) |
width | Width of screen. |
height | Width of screen. |
override bool Komodo.Core.Engine.Graphics.Resolution.Equals | ( | object | obj | ) |
Compares the equality of Resolution and an arbitrary type.
obj | Object to compare against. |
bool Komodo.Core.Engine.Graphics.Resolution.Equals | ( | Resolution | other | ) |
Compares the equality of Resolution and another Resolution.
other | Resolution to compare against. |
override int Komodo.Core.Engine.Graphics.Resolution.GetHashCode | ( | ) |
Generates a hashcode from the Resolution.
Aspect ratio of the resolution.
|
get |
Height of the screen resolution.
|
get |
Width of the screen resolution.