[WIP] Viewports backend

This commit is contained in:
SpaiR committed 2020-08-30 15:47:27 +03:00
1 parent 8494bd8361
commit e328d738ce
16 files changed
+676 -177

No files matched your search

+13 -1
View File
@@ -5439,7 +5439,7 @@ public final class ImGui {
}
private static native long nGetPlatformIO(); /*
return (intptr_t)ImGui::GetMainViewport();
return (intptr_t)&ImGui::GetPlatformIO();
*/
/**
@@ -5491,4 +5491,16 @@ public final class ImGui {
private static native long nFindViewportByID(int imGuiID); /*
return (intptr_t)ImGui::FindViewportByID(imGuiID);
*/
/**
* This is a helper for back-ends. The type platform_handle is decided by the back-end (e.g. HWND, MyWindow*, GLFWwindow* etc.)
*/
public static ImGuiViewport findViewportByPlatformHandle(long platformHandle) {
FIND_VIEWPORT.ptr = nFindViewportByPlatformHandle(platformHandle);
return FIND_VIEWPORT;
}
private static native long nFindViewportByPlatformHandle(long platformHandle); /*
return (intptr_t)ImGui::FindViewportByPlatformHandle((void*)platformHandle);
*/
}