if imgui.Button('ImGui Example', btn_size) then
show_imgui_example.v = not show_imgui_example.v
end
if show_imgui_example.v then
imgui.Begin('ImGui example', show_imgui_example)
imgui.Text('Hello, world!')
imgui.SliderFloat('float', slider_float, 0.0, 1.0)
imgui.ColorEdit3('clear color', clear_color)
if imgui.Button('Test Window') then
show_test_window.v = not show_test_window.v
end
if imgui.Button('Another Window') then
show_another_window.v = not show_another_window.v
end
local framerate = imgui.GetIO().Framerate
imgui.Text(string.format('Application average %.3f ms/frame (%.1f FPS)', 1000.0 / framerate, framerate))
imgui.End()
end