-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImPlot example with state-management and Renderer #10
Comments
@Gnimuc thanks for the links!
using CImGui.CSyntax.CStatic
function foo()
@cstatic a, b, c = 1, zeros(3), [x^2 for x in 1:5] begin
a += 100
b .+= 10
c .+= 1
println("$a,$b,$c")
end
end
function loop()
for i=1:10
foo()
end
end
loop() I don't quite understand strong parts of Redux from the link above. Can you point me to some complex ImGui projects and how do they actually handle state-sharing between a whole lot of GUI components in the scene, if they interact with each other? |
Closing this. These are CStatic / ImGui questions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/sairus7/19778c05ffba7c677a3414f752a0f9cb
Just rewrote the example from demo/example_plots.jl, using Renderer to hide ImGUI boilerplate code, as explained here.
However, there are some things I don't like in this example:
static
macro in Julia, orisdefined
for local variables?state.
in front of all data variables.The text was updated successfully, but these errors were encountered: