net.letskit.redbook
Class glskeleton

java.lang.Object
  extended by net.letskit.redbook.glskeleton
Direct Known Subclasses:
aargb, accanti, accnot, accpersp, accum, aim, alpha, alpha3D, anti, antipoint, antipoly, bezcurve, bezmesh, bezsurf, blendeqn, checker, checker2, chess, clip, colormat, colormatrix, colortable, combiner, cone, convolution, cube, cubemap, depthcue, disk, dof, dofnot, doublebuf, drawf, feedback, fog, fogcoord, font, hello, histogram, image, jfont, light, linelist, lines, list, list2, maplight, material, minmax, mipmap, model, movelight, multisamp, multitex, mvarray, pickdepth, pickline, picksquare, plane, planet, planetup, pointp, polyoff, polys, quadric, robot, sccolorlight, scene, scenebamb, sceneflat, select, shadowmap, smooth, sphere, stencil, stroke, tea, teaambient, teapots, tess, tesswind, texbind, texgen, texgen, texprox, texsub, texture3d, texturesurf, torus, unproject, varray, wrap

public abstract class glskeleton
extends java.lang.Object

Abstract skeleton class for the red book examples.

Author:
Kiet Le

Constructor Summary
glskeleton()
          Construct a default instance without specifying a type of canvas reference.
 
Method Summary
 void animate()
           
static void main(java.lang.String[] args)
           
 void pause()
           
 void refresh()
          Call the reference canvas's display methods.
 void runExit()
           
 void setCanvas(javax.media.opengl.GLCanvas canvas)
           
 void setCanvas(javax.media.opengl.GLJPanel jcanvas)
           
 com.sun.opengl.util.FPSAnimator setDefaultAnimator(int fps)
          Set or reset the canvas's animator.
 void setDefaultListeners(java.lang.Object demo)
          to be called from decendant to add listeners (key, mouse*, action) with one call
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

glskeleton

public glskeleton()
Construct a default instance without specifying a type of canvas reference.

NOTE:
When constructing an object this way, make sure to use setCanvas() later to reference the canvas. Otherwise, a GLException is thrown.

Method Detail

setCanvas

public final void setCanvas(javax.media.opengl.GLJPanel jcanvas)

setCanvas

public final void setCanvas(javax.media.opengl.GLCanvas canvas)

setDefaultListeners

public void setDefaultListeners(java.lang.Object demo)
to be called from decendant to add listeners (key, mouse*, action) with one call


refresh

public final void refresh()
Call the reference canvas's display methods. Should be called after handling of input events.


setDefaultAnimator

public final com.sun.opengl.util.FPSAnimator setDefaultAnimator(int fps)
Set or reset the canvas's animator.

Parameters:
fps -

animate

public void animate()

pause

public void pause()

runExit

public final void runExit()

main

public static void main(java.lang.String[] args)