com.hermetica.magician
Interface GLEventListener

All Known Implementing Classes:
GLEventMulticaster

public abstract interface GLEventListener

This interface defines methods that good programs using GLComponent objects or extensions of GLComponent classes should implement to provide effective rendering. This interface is similar to the functions provided by GLUT.

Version:
$Id: GLEventListener.java,v 1.2 1999/06/03 23:11:48 descarte Exp $
Author:
Alligator Descartes for Arcane Technologies Ltd.

Method Summary
 void display(GLDrawable component)
          This method will handle redrawing the geometry
 GL getGL()
          This method should return a valid GL pipeline object that can be used internally by the GLComponent
 void initialize(GLDrawable component)
          This method should be implemented to handle initialization of any OpenGL stuff, usually geometry, materials and lights setup
 void reshape(GLDrawable component, int x, int y, int width, int height)
          This method will handle resizing the GLComponent and setting up the view volume.
 

Method Detail

display

public void display(GLDrawable component)
This method will handle redrawing the geometry

initialize

public void initialize(GLDrawable component)
This method should be implemented to handle initialization of any OpenGL stuff, usually geometry, materials and lights setup

reshape

public void reshape(GLDrawable component,
                    int x,
                    int y,
                    int width,
                    int height)
This method will handle resizing the GLComponent and setting up the view volume.

getGL

public GL getGL()
This method should return a valid GL pipeline object that can be used internally by the GLComponent