To create a JOGL program, it is required to understand the following interfaces: -
JOGL GLEventListener Interface
GLEventListener interface is present in javax.media.opengl package. It provides an event based mechanism that performs OpenGL rendering. To inherit the functionality of graphics in a program, it is required to implement this interface.
These are the four important methods of GLEventListner interface. It is mandatory to override all these methods.
JOGL GLAutoDrawable Interface
GLEventListener interface is present in javax.media.opengl package. The purpose of this interface is to provide an event based mechanism (GLEventListener) to generate an image.
Following are the frequently used GLAutoDrawable methods: -