diff --git a/gdxapp4d-app-glyphdemo/src/main/java/love/distributedrebirth/gdxapp4d/app/glyphdemo/apps/DemoUnicodePlaneDeskApp.java b/gdxapp4d-app-glyphdemo/src/main/java/love/distributedrebirth/gdxapp4d/app/glyphdemo/apps/DemoUnicodePlaneDeskApp.java index 21ec1cf4..eef1a1c6 100644 --- a/gdxapp4d-app-glyphdemo/src/main/java/love/distributedrebirth/gdxapp4d/app/glyphdemo/apps/DemoUnicodePlaneDeskApp.java +++ b/gdxapp4d-app-glyphdemo/src/main/java/love/distributedrebirth/gdxapp4d/app/glyphdemo/apps/DemoUnicodePlaneDeskApp.java @@ -45,7 +45,7 @@ public class DemoUnicodePlaneDeskApp extends AbstractDeskApp implements DeskAppR ImGui.tableNextColumn(); ImGui.text(plane.name()); ImGui.tableNextColumn(); - if (plane.isPlane0()) { + if (1==0 && plane.isPlane0()) { StringBuilder buf = new StringBuilder(); int offset = 33; for (int i=plane.getStart()+offset;i_VtxCurrentIdx < (1 << 16) && "Too many vertices in ImDrawList using 16-bit indices. Read comment above" // Assertion Located At: /tmp/imgui/jni/imgui.cpp:4526 + + DrawCharacter drawChar2 = unicode4DService.getCharacterForUnicode('?'); + if (drawChar2 != null) { + new ImCharacter(drawChar2).render(); + ImGui.sameLine(); // print before beginChild to fix height of table row + } + int offset = 33; - for (int i=plane.getStart()+offset;i logger.info(imguiSetup, v)); + imguiSetup.init(fonts, v -> { + logger.info(imguiSetup, v); + bootScreen.bootLine(v); + }); imLoaded.set(true); } }); diff --git a/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/GDXAppVrGem4BootScreen.java b/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/GDXAppVrGem4BootScreen.java index 2dbea26a..ae766aa2 100644 --- a/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/GDXAppVrGem4BootScreen.java +++ b/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/GDXAppVrGem4BootScreen.java @@ -22,7 +22,7 @@ public class GDXAppVrGem4BootScreen extends ScreenAdapter implements GDXAppVrGem public void create() { batch = new SpriteBatch(); - backgroundImage = new Texture(Gdx.files.internal("background/temple-os.png")); + backgroundImage = new Texture(Gdx.files.internal("background/gdxapp-loading.png")); } @Override @@ -31,11 +31,16 @@ public class GDXAppVrGem4BootScreen extends ScreenAdapter implements GDXAppVrGem int textY = Gdx.graphics.getHeight(); int textYStep = 20; batch.begin(); + batch.draw(backgroundImage, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); synchronized (messages) { - for (String message:messages) { + int start = 0; + if (messages.size() > 33) { + start = messages.size() - 33; + } + List part = messages.subList(start, messages.size()); + for (String message:part) { font.draw(batch, message, textX, textY-=textYStep); } - batch.draw(backgroundImage, 200, textY, Gdx.graphics.getWidth() - 200, Gdx.graphics.getHeight() - textY); } batch.end(); } diff --git a/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/ImGuiSetup.java b/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/ImGuiSetup.java index c2d5d815..1b444e02 100644 --- a/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/ImGuiSetup.java +++ b/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/ImGuiSetup.java @@ -11,6 +11,7 @@ import imgui.ImFontGlyphRangesBuilder; import imgui.ImGui; import imgui.ImGuiIO; import imgui.ImGuiStyle; +import imgui.flag.ImGuiBackendFlags; import imgui.gl3.ImGuiImplGl3; import imgui.glfw.ImGuiImplGlfw; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; @@ -36,6 +37,7 @@ public class ImGuiSetup { imGuiImp.init(windowHandle, true); imGuiGlImp.init("#version 140"); ImGui.getIO().setIniFilename(null); + ImGui.getIO().setBackendFlags(ImGuiBackendFlags.RendererHasVtxOffset); ImGui.init(); initStyle(); }