Hello Guest

How to run openGL on a canvas?

  • 1 Replies
How to run openGL on a canvas?
« on: October 24, 2018, 21:17:12 »
I would like to write an editor using Swing that will be broken into several panels.  In some of these panels I would like to run OpenGL threads with 3D animations.  I'm finding the GLFW framework confusing and am unable to locate any docs that describe how I would do this.

Is there some sort of GL canvas that would let me run an openGL animation in a single panel?  I'd like to be able to have multiple GL panels open at the same time and be able to mix them with other Swing components.

Re: How to run openGL on a canvas?
« Reply #1 on: October 25, 2018, 05:19:18 »
I can't answer your question, but isn't swing dying already? I thought JavaFX took the place when we build UI with Java.