All Packages  This Package  Class Hierarchy  Class Search  Index

Interface com.hermetica.magician.GLEventListener

  Summary

public interface  GLEventListener
{
          // Methods 4
     public abstract void display(GLDrawable);
     public abstract GL getGL();
     public abstract void initialize(GLDrawable);
     public abstract void reshape(GLDrawable, int, int, int, int);
}

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.4 1998/03/19 17:02:59 descarte Exp descarte $
Author:
Alligator Descartes for Arcane Technologies Ltd.


  Cross Reference

Returned By:
GLComponent.getListener(), GLDrawable.getListener(), GLEventMulticaster.add(), GLEventMulticaster.remove(), GLEventMulticaster.remove()

Implemented By:
GLEventMulticaster





  Methods

· display

Summary  |  Top
   public abstract void display(GLDrawable component) 

This method will handle redrawing the geometry



· initialize

Summary  |  Top
   public abstract void initialize(GLDrawable component) 

This method should be implemented to handle initialization of any OpenGL stuff, usually geometry, materials and lights setup



· reshape

Summary  |  Top
   public abstract 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

Summary  |  Top
   public abstract GL getGL() 

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



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7