#include <ScreenScale.h>
|
static void | ScaleMousePos (float &x, float &y) |
| Scale mouse position from Mouse::GetPos() to adjust for screen scaling.
|
|
static float | GetOrigH () |
| Gets original pixel height of the window.
|
|
static float | GetOrigW () |
| Gets original pixel width of the window.
|
|
◆ ScreenScale() [1/2]
ScreenScale::ScreenScale |
( |
| ) |
|
|
private |
◆ ScreenScale() [2/2]
◆ ~ScreenScale()
ScreenScale::~ScreenScale |
( |
| ) |
|
|
private |
◆ Free()
void ScreenScale::Free |
( |
| ) |
|
|
staticprivate |
◆ GetOrigH()
float ScreenScale::GetOrigH |
( |
| ) |
|
|
static |
Gets original pixel height of the window.
Haru, 3/19/2023.
- Returns
- The original height.
◆ GetOrigW()
float ScreenScale::GetOrigW |
( |
| ) |
|
|
static |
Gets original pixel width of the window.
Haru, 3/19/2023.
- Returns
- The original width.
◆ Init()
void ScreenScale::Init |
( |
| ) |
|
|
staticprivate |
◆ Instance()
◆ operator=()
◆ ScaleMousePos()
void ScreenScale::ScaleMousePos |
( |
float & |
x, |
|
|
float & |
y |
|
) |
| |
|
static |
Scale mouse position from Mouse::GetPos() to adjust for screen scaling.
Haru, 3/19/2023.
- Parameters
-
x | [in,out] The x coordinate. |
y | [in,out] The y coordinate. |
◆ ScreenScaleAttorney
◆ m_origScreenH
float ScreenScale::m_origScreenH |
|
private |
◆ m_origScreenW
float ScreenScale::m_origScreenW |
|
private |
◆ p_instance
The documentation for this class was generated from the following files: