Debug UI tunes
This commit is contained in:
parent
b36a782823
commit
d3bc3a7a99
7 changed files with 30970 additions and 6 deletions
|
|
@ -101,6 +101,16 @@ Window::Window(int width, int height, const char* title) {
|
|||
return;
|
||||
}
|
||||
|
||||
// get some common information. maybe call it in loop to pick up monitor changes
|
||||
int width_mm, height_mm;
|
||||
auto monitor = glfwGetPrimaryMonitor();
|
||||
glfwGetMonitorPhysicalSize(monitor, &width_mm, &height_mm);
|
||||
mMonitor.mmSize = { width_mm, height_mm };
|
||||
|
||||
const GLFWvidmode * mode = glfwGetVideoMode(glfwGetPrimaryMonitor());
|
||||
mMonitor.pixelSize = { mode->width, mode->height };
|
||||
mMonitor.refreshRate = mode->refreshRate;
|
||||
|
||||
mGraphics.init(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue