Viewport scaling and display density independence

The view is scaled to be as large as possible, without changing the aspect, within the bounds of the window.
On "retina" displays, or other displays where window units != pixels, the view should no longer draw incorrectly.
This commit is contained in:
Kevin Hartman 2014-08-29 22:23:12 -07:00 committed by Tony Wasserka
parent c8d933a142
commit 221a9b023d
7 changed files with 89 additions and 4 deletions

View file

@ -21,7 +21,7 @@ public:
/// Makes the graphics context current for the caller thread
void MakeCurrent() override;
/// Releases (dunno if this is the "right" word) the GLFW context from the caller thread
void DoneCurrent() override;
@ -32,6 +32,9 @@ public:
void ReloadSetKeymaps() override;
/// Gets the size of the window in pixels
void GetFramebufferSize(int* fbWidth, int* fbHeight);
private:
GLFWwindow* m_render_window; ///< Internal GLFW render window