Switching from Java2D to JOGL

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Switching from Java2D to JOGL

Chinnaswamy
Hi All,
         I have developed a large  java2D application which composes all complex graphics objects on a BufferedImage and then add to  JPanel. But for performance and animation issues, I started to shift to JOGL. As I want to re-use all my Java2D development, can you give provide your expert advice the most suitable among GLCanvas, GLJPanel and GLPBuffer.
Reply | Threaded
Open this post in threaded view
|

Re: Switching from Java2D to JOGL

gouessej
Administrator
Hi

If you don't need to use internal frames, try to avoid using GLJPanel. You can use NewtCanvasAWT or AWT GLCanvas inside a JPanel for the onscreen rendering and an offscreen drawable for the composition. This suggestion might fit into your needs. You can render into a texture too.
Julien Gouesse | Personal blog | Website