Viewport,Platform: Added GetWindowDpiScale() platform interface, changes of scale are reflected by positioning and resizing windows in their given viewport. (#1542)

This commit is contained in:
omar
2018-02-26 16:35:18 +01:00
parent 1eb89d7e3b
commit 43f375b2f2
3 changed files with 44 additions and 4 deletions

View File

@ -964,6 +964,7 @@ struct ImGuiPlatformInterface
void (*SwapBuffers)(ImGuiViewport* viewport);
// FIXME-DPI
float (*GetWindowDpiScale)(ImGuiViewport* viewport); // (Optional)
void (*BeginViewport)(ImGuiViewport* viewport); // (Optional) Called during Begin() every time the viewport we are outputting into changes (viewport = next viewport)
void (*EndViewport)(ImGuiViewport* viewport); // (Optional) Called during Begin() every time the viewport we are outputting into changes (viewport = previous viewport)
};