Login  Register

Re: Managing dynamic textures

Posted by Demoscene Passivist on Jun 04, 2011; 4:44pm
URL: https://forum.jogamp.org/Managing-dynamic-textures-tp3020910p3023626.html

Try using com.jogamp.opengl.util.awt.TextureRenderer. Its the easiest way to intermix Java2D and OpenGL and/or draw dynamically into an OpenGL texture.

"Provides the ability to render into an OpenGL Texture using the Java 2D APIs. This renderer class uses an internal Java 2D image (of unspecified type) for its backing store and flushes portions of that image to an OpenGL texture on demand. The resulting OpenGL texture can then be mapped on to a polygon for display."