Class ImGuiUI

java.lang.Object
org.indiumstudios.keylib.rendering.UI.ImGuiUI

public final class ImGuiUI extends Object
  • Method Details

    • setCustomFont

      public static void setCustomFont(com.badlogic.gdx.files.FileHandle fileHandle, int fontSize)
    • addExtraFont

      public static void addExtraFont(com.badlogic.gdx.files.FileHandle fileHandle, int fontSize)
    • initImGui

      public static void initImGui()
    • loop

      public static void loop()
      Loop through ImGui. This should be called before rendering anything. Credits to spaiR on GitHub.
    • render

      public static void render()
      Render ImGui. This should be called after ImGui stuff. Credits to SpaiR on GitHub.
    • dispose

      public static void dispose()
      Disposes ImGui.
    • getExtraFont

      public static imgui.ImFont getExtraFont(int index)
      Gets an extra font.
      Parameters:
      index - The index of the extra font. The first extra font will be index 0.
      Returns:
      The extra font.