Add ImPlatformIO, ImGuiViewport
This commit is contained in:
1 parent
dce574ef76
commit
8494bd8361
14 files changed
+773
-5
No files matched your search
@@ -21,6 +21,8 @@ public final class ImDrawData extends ImGuiStruct {
|
||||
|
||||
private static ByteBuffer dataBuffer = ByteBuffer.allocateDirect(25_000).order(ByteOrder.nativeOrder());
|
||||
|
||||
private static final ImGuiViewport OWNER_VIEWPORT = new ImGuiViewport(0);
|
||||
|
||||
public ImDrawData(final long ptr) {
|
||||
super(ptr);
|
||||
}
|
||||
@@ -229,6 +231,18 @@ public final class ImDrawData extends ImGuiStruct {
|
||||
return IM_DRAW_DATA->FramebufferScale.y;
|
||||
*/
|
||||
|
||||
/**
|
||||
* Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not).
|
||||
*/
|
||||
public ImGuiViewport getOwnerViewport() {
|
||||
OWNER_VIEWPORT.ptr = nGetOwnerViewport();
|
||||
return OWNER_VIEWPORT;
|
||||
}
|
||||
|
||||
private native long nGetOwnerViewport(); /*
|
||||
return (intptr_t)IM_DRAW_DATA->OwnerViewport;
|
||||
*/
|
||||
|
||||
// Functions
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user