GLPlot.jl icon indicating copy to clipboard operation
GLPlot.jl copied to clipboard

Using an external GL context.

Open Keno opened this issue 10 years ago • 4 comments

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.

Keno avatar Jul 22 '14 20:07 Keno

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.

SimonDanisch avatar Jul 22 '14 22:07 SimonDanisch

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.

Keno avatar Jul 22 '14 22:07 Keno

Okay I see, that definitely makes sense!

SimonDanisch avatar Jul 22 '14 22:07 SimonDanisch

I am not sure if this thread is still relevant, but OpenGL and Qt can be used smoothly in the context of OpenCV.jl.

maxruby avatar Dec 11 '14 03:12 maxruby