Initial Multi-Viewport implementation

This commit is contained in:
SpaiR committed 2020-08-23 14:13:03 +03:00
1 parent a392a4227f
commit 1209caa518
5 files changed
+396 -12

No files matched your search

@@ -11,7 +11,7 @@ import java.nio.ByteOrder;
* BINDING NOTICE: Since it's impossible to do a 1:1 mapping with JNI, current class provides "getCmdList*()" methods.
* Those are used to get the data needed to do a rendering.
*/
public final class ImDrawData implements ImGuiDestroyableStruct {
public final class ImDrawData {
public static final int SIZEOF_IM_DRAW_IDX = 2;
public static final int SIZEOF_IM_DRAW_VERT = (4 + 1) * 4;
@@ -26,11 +26,6 @@ public final class ImDrawData implements ImGuiDestroyableStruct {
this.ptr = ptr;
}
@Override
public void destroy() {
nDestroy(ptr);
}
/*JNI
#include <stdint.h>
#include <imgui.h>
@@ -46,10 +41,6 @@ public final class ImDrawData implements ImGuiDestroyableStruct {
imDrawDataPtrID = env->GetFieldID(jImDrawDataClass, "ptr", "J");
*/
private native void nDestroy(long ptr); /*
delete (ImDrawData*)ptr;
*/
///////// Start of Render Methods | Binding
/**