1 2 3 4 5 6 7 8 9 10 11 12 13 14
package gui import glm_.vec2.Vec2 import imgui.Cond import imgui.ImGui fun paintDebugWindow() { with(ImGui) { setNextWindowPos(Vec2(20, 50), Cond.FirstUseEver) begin("Debug info") text("%.1f FPS (%.2f ms/frame)", io.framerate, 1_000f / io.framerate) end() } }