mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-26 14:58:51 -06:00
Added new method to get the right viewport size in stereo (side-by-side) and fix font rendering.
This commit is contained in:
@@ -56,6 +56,7 @@ public:
|
||||
glm::ivec2 currentSubwindowSize() const override;
|
||||
glm::ivec2 currentWindowResolution() const override;
|
||||
glm::ivec2 currentDrawBufferResolution() const override;
|
||||
glm::ivec2 getCurrentViewportSize() const override;
|
||||
glm::vec2 dpiScaling() const override;
|
||||
int currentNumberOfAaSamples() const override;
|
||||
|
||||
|
||||
@@ -160,6 +160,13 @@ public:
|
||||
*/
|
||||
virtual glm::ivec2 currentDrawBufferResolution() const;
|
||||
|
||||
/**
|
||||
* Returns the resolution of the currently viewport resolution in pixel
|
||||
* coordinates.
|
||||
* \return The resolution of the currently viewport in pixel coordinates
|
||||
*/
|
||||
virtual glm::ivec2 getCurrentViewportSize() const;
|
||||
|
||||
/**
|
||||
* Returns the DPI scaling factor for the current window. This is normally 1 on all
|
||||
* regular monitors and 2 on Retina screens.
|
||||
|
||||
Reference in New Issue
Block a user