Skip to content

Commit

Permalink
Adapt the demo to the new CImGui version (4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
jheinen committed Dec 22, 2024
1 parent 5ff09c2 commit 19f0827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/imgui_ex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ function gr_demo(; engine=nothing)
if 0 <= x <= 1 && 0 <= y <= 1
@c CImGui.Text("($(round(x, digits=4)), $(round(y, digits=4)))")
end
CImGui.SetCursorPos(0, 0)
CImGui.SetCursorPos((0, 0))

beginprint(conid)
draw(phi * π/180)
endprint()

CImGui.update_image_texture(image_id, image, img_width, img_height)
CImGui.Image(Ptr{Cvoid}(image_id), CImGui.ImVec2(img_width, img_height))
CImGui.Image(image_id, CImGui.ImVec2(img_width, img_height))
CImGui.End()
end
end
Expand Down

0 comments on commit 19f0827

Please sign in to comment.