Class ImGuiUI
java.lang.Object
org.indiumstudios.keylib.rendering.UI.ImGuiUI
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddExtraFont(com.badlogic.gdx.files.FileHandle fileHandle, int fontSize) static voiddispose()Disposes ImGui.static imgui.ImFontgetExtraFont(int index) Gets an extra font.static voidstatic voidloop()Loop through ImGui.static voidrender()Render ImGui.static voidsetCustomFont(com.badlogic.gdx.files.FileHandle fileHandle, int fontSize)
-
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.
-