-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Imgui with win32 and OpenGl #372
Comments
You may want to look at those example too |
Thanks a lot for that, thats really helpful !! |
Good to hear. Anything you stumbled on? Looking for idea on how we can improve the documentation for future users. |
So I was able to do everything but the input. |
So this is code of main in my editor, which lets me render the imgui. But still couldnt figure out how to handle inputs in imgui and my engine with this approach. One thing I did was pass the wndproc from the imgui to my window system which lets the imgui handle the inputs, but my engine also needs the input !! Because object picking and movement will be handled by the engine not imgui !!
|
Just call both, maybe call the ImGui wndproc help at the beginning of yours. Also you probably want ImGui::NewFrame to be called early in your frame (aka inside or before GameLoop) and ImGui::Render() to be called at the very end. |
👍 So in each case inside the callback for imgui, I am in turn calling the callback of my engine. |
ImGui::GetIO().Framerate doesnt work, its always -1 |
You aren't setting DeltaTime every frame.
|
Cool !! I didn't see that thing in newframe !! |
So I am using win32 api to create my window and opengl for rendering.
I am little bit confused on how to implement imgui withing my interface. I couldnt find any example which does that.
Can you please help me out with the same ?
Thanks.
The text was updated successfully, but these errors were encountered: