Skip to content

Commit

Permalink
Remove manual create context code.
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Sep 18, 2024
1 parent dd0c57b commit c02ff79
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions imgui/imgui-base/src/main/java/imgui/ImGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,6 @@ public static void UpdateDisplayAndInputAndFrame(float deltaTime, int width, int
*/
private static native void UpdateDisplayAndInputAndFrameNative(float deltaTime, int width, int height, int display_w, int display_h);

public static void CreateContext() {
// ImGui data need to be saved manually.
CreateContextInternal();
}

public static void DestroyContext() {
DestroyContextInternal();
}

/*[-TEAVM;-NATIVE]
[MODULE].ImGui.prototype.CreateContext();
*/
/*[-JNI;-NATIVE]
ImGui::CreateContext();
ImGui::GetIO().BackendFlags |= ImGuiBackendFlags_HasMouseCursors;
*/
private static native void CreateContextInternal();

/*[-TEAVM;-NATIVE]
[MODULE].ImGui.prototype.DestroyContext();
*/
/*[-JNI;-NATIVE]
ImGui::DestroyContext();
*/
private static native void DestroyContextInternal();

/**
* Dispose temp objects.
*/
Expand Down

0 comments on commit c02ff79

Please sign in to comment.