Potential fix for High-DPI and manual framebuffer sizes by using SGCT window scaling

This commit is contained in:
Alexander Bock
2016-10-23 22:55:26 +02:00
parent b444bfd77a
commit 317ecad9ac
7 changed files with 23 additions and 12 deletions

View File

@@ -138,6 +138,13 @@ public:
* \return The resolution of the currently active window in pixel coordinates
*/
virtual glm::ivec2 currentDrawBufferResolution() const;
/**
* Returns the DPI scaling factor for the current window. This is normally 1 on all
* regular monitors and 2 on Retina screens.
* \return The DPI scaling factor for the current window
*/
virtual glm::vec2 dpiScaling() const;
/**
* Returns the number of anti-aliasing samples used in the current window.