aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/gui/DebugWindow.kt
blob: f336ef68827a3a806f8a1b055a68b2abff6ad6c5 (plain)
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(15, 10), Cond.FirstUseEver)
    begin("Debug info")
    text("%.1f FPS (%.2f ms/frame)", io.framerate, 1_000f / io.framerate)
    end()
  }
}