Remove public constructor for ImDrawData
This commit is contained in:
1 parent
19bd512a22
commit
407d1b9cc4
1 file changed
-14
@@ -22,15 +22,6 @@ public final class ImDrawData implements ImDestroyable {
|
||||
private ByteBuffer idxBuffer = ByteBuffer.allocateDirect(SIZEOF_IM_DRAW_IDX * FACTOR).order(ByteOrder.nativeOrder());
|
||||
private ByteBuffer vtxBuffer = ByteBuffer.allocateDirect(SIZEOF_IM_DRAW_VERT * FACTOR).order(ByteOrder.nativeOrder());
|
||||
|
||||
/**
|
||||
* This class will create a native structure.
|
||||
* Call {@link #destroy()} method to manually free used memory.
|
||||
*/
|
||||
public ImDrawData() {
|
||||
ImGui.touch();
|
||||
ptr = nCreate();
|
||||
}
|
||||
|
||||
ImDrawData(final long ptr) {
|
||||
this.ptr = ptr;
|
||||
}
|
||||
@@ -55,11 +46,6 @@ public final class ImDrawData implements ImDestroyable {
|
||||
imDrawDataPtrID = env->GetFieldID(jImDrawDataClass, "ptr", "J");
|
||||
*/
|
||||
|
||||
private native long nCreate(); /*
|
||||
ImDrawData* imDrawData = new ImDrawData();
|
||||
return (intptr_t)imDrawData;
|
||||
*/
|
||||
|
||||
private native void nDestroy(long ptr); /*
|
||||
delete (ImDrawData*)ptr;
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user