-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add OpenGL example #20
Comments
If anyone else comes accross this issue, I believe the problem is related to #18: bimpy does not allow the user to customize its initialization, for example, it sets the OpenGL and GLSL version by itself. |
There was no intention to expose OpenGL API to the user but hide all the window/OpenGL stuff from the user, that would make usage of ImGUI more straightforward from python. Issue #18 addresses a useful feature indeed, which I plan to implement.
That's because actual rendering happens only at a time of One way would be to allow passing function to Another way, would be to render to a texture and then present it as an Image with ImGUI. All depends on particular use cases. What are you trying to do? Could you please give an example? My point is it might be more practical to extend draw commands of |
I was trying to use bimpy + OpenGL to study a little bit of computer graphics. But as you say bimpy hides "all the window/OpenGL stuff from the user", so I can't set the GLSL version, for example. |
Hi,
first, thanks for mantaining Python bindings for ImGui!
I noticed this line on bimpy readme file:
bimpy already has all necessary functionality for window/OpenGL context creation and hides those details from the user.
But I can't find examples anywhere. It would be awesome to have a simple "OpenGL Bimpy hello world", maybe just a triangle that you can switch its color with a color picker.
I'm already trying to implement this, but my triangles are not being rendered. I suppose I should just put the rendering code inside bimpy context loop like this:
I got no errors, just an empty window, although changing the color in
glClearColor
properly changes the window background color.Any pointers are welcome.
Thanks!
The text was updated successfully, but these errors were encountered: