Skip to content

Commit 407d1b9

Browse files
committed
Remove public constructor for ImDrawData
1 parent 19bd512 commit 407d1b9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

imgui-binding/src/main/java/imgui/ImDrawData.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@ public final class ImDrawData implements ImDestroyable {
2222
private ByteBuffer idxBuffer = ByteBuffer.allocateDirect(SIZEOF_IM_DRAW_IDX * FACTOR).order(ByteOrder.nativeOrder());
2323
private ByteBuffer vtxBuffer = ByteBuffer.allocateDirect(SIZEOF_IM_DRAW_VERT * FACTOR).order(ByteOrder.nativeOrder());
2424

25-
/**
26-
* This class will create a native structure.
27-
* Call {@link #destroy()} method to manually free used memory.
28-
*/
29-
public ImDrawData() {
30-
ImGui.touch();
31-
ptr = nCreate();
32-
}
33-
3425
ImDrawData(final long ptr) {
3526
this.ptr = ptr;
3627
}
@@ -55,11 +46,6 @@ public void destroy() {
5546
imDrawDataPtrID = env->GetFieldID(jImDrawDataClass, "ptr", "J");
5647
*/
5748

58-
private native long nCreate(); /*
59-
ImDrawData* imDrawData = new ImDrawData();
60-
return (intptr_t)imDrawData;
61-
*/
62-
6349
private native void nDestroy(long ptr); /*
6450
delete (ImDrawData*)ptr;
6551
*/

0 commit comments

Comments
 (0)