Gave native pointer the correct postfix
This commit is contained in:
parent
beb774a773
commit
17f244ec31
|
@ -26,16 +26,16 @@ public class ImGuiSetup {
|
|||
public final static ImGuiImplGl3 imGuiGlImp = new ImGuiImplGl3();
|
||||
|
||||
public void init(List<File> fonts, Consumer<String> logger) {
|
||||
long windowHandle = -1;
|
||||
long windowHandleᕯ = -1;
|
||||
try {
|
||||
Object window = Gdx.graphics.getClass().getMethod("getWindow").invoke(Gdx.graphics);
|
||||
windowHandle = (Long)window.getClass().getMethod("getWindowHandle").invoke(window);
|
||||
windowHandleᕯ = (Long)window.getClass().getMethod("getWindowHandle").invoke(window);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
ImGui.createContext();
|
||||
initFonts(ImGui.getIO(), fonts, logger);
|
||||
imGuiImp.init(windowHandle, true);
|
||||
imGuiImp.init(windowHandleᕯ, true);
|
||||
imGuiGlImp.init("#version 140");
|
||||
ImGui.getIO().setIniFilename(null);
|
||||
ImGui.getIO().setBackendFlags(ImGuiBackendFlags.RendererHasVtxOffset);
|
||||
|
|
Loading…
Reference in a new issue