14 static ScreenProperties Make(
float screenWidth,
float screenHeight,
float pixelScale,
float screenDpi);
16 static ScreenProperties Make(
float screenWidth,
float screenHeight,
float pixelScale,
float screenDpi,
float screenOversampleScale);
21 , m_screenPixelScale(0.f)
23 , m_screenOversampleScale(0.f)
27 ScreenProperties(
float screenWidth,
float screenHeight,
float pixelScale,
float screenDpi,
float screenOversampleScale = 1.f)
28 : m_screenWidth(screenWidth)
29 , m_screenHeight(screenHeight)
30 , m_screenPixelScale(pixelScale)
31 , m_screenDpi(screenDpi)
32 , m_screenOversampleScale(screenOversampleScale)
36 float GetScreenWidth()
const {
return m_screenWidth; }
37 float GetScreenHeight()
const {
return m_screenHeight; }
38 float GetPixelScale()
const {
return m_screenPixelScale; }
39 float GetScreenDpi()
const {
return m_screenDpi; }
40 float GetOversampleScale()
const {
return m_screenOversampleScale; }
44 float m_screenPixelScale;
46 float m_screenOversampleScale;