[WIP] Viewports backend
This commit is contained in:
1 parent
8494bd8361
commit
e328d738ce
16 files changed
+676
-177
No files matched your search
@@ -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);
|
||||
*/
|
||||
}
|
||||
Reference in new issue
Block a user