Added UI Scaling support

This commit is contained in:
2023-07-24 11:01:29 -07:00
parent 34ff460343
commit 404d1c6227
10 changed files with 83 additions and 21 deletions

View File

@ -30,6 +30,14 @@ namespace Dawn {
*/
virtual float_t getHeight() = 0;
/**
* Returns the scale (as in pixel density) of the render target. This is
* typically 1.0f, but on high DPI displays this may be 2.0f or higher.
*
* @return The scale of the render target.
*/
virtual float_t getScale() = 0;
/**
* Sets the clear color of the render target when the clear method for
* the color buffer is requested.