@@ -477,24 +477,12 @@ public static boolean begin(String title, ImBoolean pOpen, int imGuiWindowFlags)
477
477
478
478
/**
479
479
* Get draw list associated to the current window, to append your own drawing primitives
480
- * <p>
481
- * BINDING NOTICE: to minimize overhead, method ALWAYS returns the same object, but changes its underlying pointer.
482
- * If you need to get an object with constant pointer (which will point to the same window all the time) use {@link #getWindowDrawListNew()}.
483
480
*/
484
481
public static ImDrawList getWindowDrawList () {
485
482
WINDOW_DRAW_LIST .ptr = nGetWindowDrawList ();
486
483
return WINDOW_DRAW_LIST ;
487
484
}
488
485
489
- /**
490
- * Get draw list associated to the current window, to append your own drawing primitives
491
- * <p>
492
- * BINDING NOTICE: returns {@link ImDrawList} for current window with constant pointer to it. Prefer to use {@link #getWindowDrawList()}.
493
- */
494
- public static ImDrawList getWindowDrawListNew () {
495
- return new ImDrawList (nGetWindowDrawList ());
496
- }
497
-
498
486
private static native long nGetWindowDrawList (); /*
499
487
return (intptr_t)ImGui::GetWindowDrawList();
500
488
*/
@@ -4907,51 +4895,25 @@ public static Object getDragDropPayloadObject() {
4907
4895
/**
4908
4896
* Get background draw list for the viewport associated to the current window.
4909
4897
* This draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents.
4910
- * <p>
4911
- * BINDING NOTICE: to minimize overhead, method ALWAYS returns the same object, but changes its underlying pointer.
4912
- * If you need to get an object with constant pointer (which will point to the same background all the time) use {@link #getBackgroundDrawListNew()}.
4913
4898
*/
4914
4899
public static ImDrawList getBackgroundDrawList () {
4915
4900
BACKGROUND_DRAW_LIST .ptr = nGetBackgroundDrawList ();
4916
4901
return BACKGROUND_DRAW_LIST ;
4917
4902
}
4918
4903
4919
- /**
4920
- * Get background draw list for the viewport associated to the current window.
4921
- * This draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents.
4922
- * <p>
4923
- * BINDING NOTICE: returns {@link ImDrawList} for current background with constant pointer to it. Prefer to use {@link #getBackgroundDrawList()}.
4924
- */
4925
- public static ImDrawList getBackgroundDrawListNew () {
4926
- return new ImDrawList (nGetBackgroundDrawList ());
4927
- }
4928
-
4929
4904
private static native long nGetBackgroundDrawList (); /*
4930
4905
return (intptr_t)ImGui::GetBackgroundDrawList();
4931
4906
*/
4932
4907
4933
4908
/**
4934
4909
* Get foreground draw list for the viewport associated to the current window.
4935
4910
* This draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents.
4936
- * <p>
4937
- * BINDING NOTICE: to minimize overhead, method ALWAYS returns the same object, but changes its underlying pointer.
4938
- * If you need to get an object with constant pointer (which will point to the same foreground all the time) use {@link #getForegroundDrawListNew()}.
4939
4911
*/
4940
4912
public static ImDrawList getForegroundDrawList () {
4941
4913
FOREGROUND_DRAW_LIST .ptr = nGetForegroundDrawList ();
4942
4914
return FOREGROUND_DRAW_LIST ;
4943
4915
}
4944
4916
4945
- /**
4946
- * Get foreground draw list for the viewport associated to the current window.
4947
- * This draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents.
4948
- * <p>
4949
- * BINDING NOTICE: returns {@link ImDrawList} for current foreground with constant pointer to it. Prefer to use {@link #getForegroundDrawList()}.
4950
- */
4951
- public static ImDrawList getForegroundDrawListNew () {
4952
- return new ImDrawList (nGetForegroundDrawList ());
4953
- }
4954
-
4955
4917
private static native long nGetForegroundDrawList (); /*
4956
4918
return (intptr_t)ImGui::GetForegroundDrawList();
4957
4919
*/
@@ -4976,22 +4938,11 @@ public static void setStateStorage(final ImGuiStorage storage) {
4976
4938
ImGui::SetStateStorage((ImGuiStorage*)imGuiStoragePtr);
4977
4939
*/
4978
4940
4979
- /**
4980
- * BINDING NOTICE: to minimize overhead, method ALWAYS returns the same object, but changes its underlying pointer.
4981
- * If you need to get an object with constant pointer (which will point to the same window all the time) use {@link #getStateStorageNew()}.
4982
- */
4983
4941
public static ImGuiStorage getStateStorage () {
4984
4942
IMGUI_STORAGE .ptr = nGetStateStorage ();
4985
4943
return IMGUI_STORAGE ;
4986
4944
}
4987
4945
4988
- /**
4989
- * BINDING NOTICE: returns {@link ImGuiStorage} for current window with constant pointer to it. Prefer to use {@link #getStateStorage()}.
4990
- */
4991
- public static ImGuiStorage getStateStorageNew () {
4992
- return new ImGuiStorage (nGetStateStorage ());
4993
- }
4994
-
4995
4946
private static native long nGetStateStorage (); /*
4996
4947
return (intptr_t)ImGui::GetStateStorage();
4997
4948
*/
0 commit comments