jjdh API

jjdh.opengl.program
Class StandardOpenGLProgram

java.lang.Object
  extended by jjdh.opengl.program.AbstractOpenGLProgram
      extended by jjdh.opengl.program.StandardOpenGLProgram
All Implemented Interfaces:
Initable, Reshapeable, OpenGLProgram, FullRenderer, GlassPaneRenderer, Renderer, ReshapeableRenderer
Direct Known Subclasses:
FinalPresentation, Fire, FlagTestWithCG, Fountain, HTMLContent, SimpleDemo, StandardOpenGLProgramAdapter, SwingDemo, Task16, Task17, Task18, Task21, Task22, Task23, Task24, Task25

public abstract class StandardOpenGLProgram
extends AbstractOpenGLProgram
implements FullRenderer


Nested Class Summary
 
Nested classes/interfaces inherited from interface jjdh.opengl.program.OpenGLProgram
OpenGLProgram.State
 
Field Summary
protected  javax.media.opengl.GL gl
           
protected  javax.media.opengl.glu.GLU glu
           
protected  com.sun.opengl.util.GLUT glut
           
protected  StandardJoglInputListener inputListener
           
protected  LightMap lightMap
           
 
Fields inherited from class jjdh.opengl.program.AbstractOpenGLProgram
camera, context, glScheduler, model, mouseRobot, name, state
 
Constructor Summary
StandardOpenGLProgram()
           
 
Method Summary
 void display()
          Called to execute OpenGL rendering.
 void displayGlassPane()
          Called to execute OpenGL GlassPane rendering.
protected  void drawCounter(javax.media.opengl.GL gl)
           
 void init(SystemContext context)
          Called to give this renderer the chance to initiate himself for OpenGL rendering.
 void reshape(Rectangle rectangle)
          Called after the component has been resized.
 void setContext(SystemContext context)
           
protected  void sleep(long nanoSeconds)
           
protected  void sleep(long time, TimeUnit timeUnit)
           
 
Methods inherited from class jjdh.opengl.program.AbstractOpenGLProgram
getCamera, getContext, getMouseRobot, getName, getState, setCamera, setMouseRobot, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lightMap

protected LightMap lightMap

gl

protected javax.media.opengl.GL gl

glu

protected javax.media.opengl.glu.GLU glu

glut

protected com.sun.opengl.util.GLUT glut

inputListener

protected StandardJoglInputListener inputListener
Constructor Detail

StandardOpenGLProgram

public StandardOpenGLProgram()
Method Detail

setContext

public void setContext(SystemContext context)
Specified by:
setContext in interface OpenGLProgram
Overrides:
setContext in class AbstractOpenGLProgram

drawCounter

protected void drawCounter(javax.media.opengl.GL gl)

sleep

protected void sleep(long time,
                     TimeUnit timeUnit)

sleep

protected void sleep(long nanoSeconds)

init

public void init(SystemContext context)
Description copied from interface: Initable
Called to give this renderer the chance to initiate himself for OpenGL rendering.

Specified by:
init in interface Initable
Parameters:
context - the suitable system context

display

public void display()
Description copied from interface: Renderer
Called to execute OpenGL rendering.

Specified by:
display in interface Renderer

reshape

public void reshape(Rectangle rectangle)
Description copied from interface: Reshapeable
Called after the component has been resized.

Specified by:
reshape in interface Reshapeable
Parameters:
rectangle - the new size of the component

displayGlassPane

public void displayGlassPane()
Description copied from interface: GlassPaneRenderer
Called to execute OpenGL GlassPane rendering.

Specified by:
displayGlassPane in interface GlassPaneRenderer

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.