I am trying to integrate a component which is extending a GLCanvas in my existing application. My problem is, that I am already using a Java framework in which I can not add a GLCanvas by using the “add(comp)” method. I can not use this “add(comp)” method because all UI Elements of the other framework which I am using are then behind the added GLCanvas.
In order to render visible objects in this framework, there is a method which is called on every frame and this method gets a “PGraphics” object as an argument.
Would it be possible to integrate the GLCanvas-component in the existing application by directly rendering the GLCanvas with the help of this PGraphics (or PGraphicsOpenGL) object?