GLPlot.jl
GLPlot.jl copied to clipboard
Using an external GL context.
I was playing around with embedding some of this stuff into a window I got from Qt, just for fun. It eventually didn't crash (doesn't quite work yet, because I can't yet do Qt signal handling), but it required me to go out of my way to avoid having it launch the GLFW window. It would be nice if that were factored nicely, so the GL context can be easily changed.
Sounds interesting! What exactly do you mean by external OpenGL context? I don't know anything about WebGL, and the rest should be achieved by replacing GLWindow, which does the context creation and event management. You basically just have to implement the createwindow function, which returns the signals for the camera, and creates a valid OpenGL window + context.
Right, I basically did that. I'm just asking that APIs are designed in a way that makes it easy to replace createwindow and have everything work. Right now, it seems like GLFW is baked in in a number of places.
Okay I see, that definitely makes sense!
I am not sure if this thread is still relevant, but OpenGL and Qt can be used smoothly in the context of OpenCV.jl
.