jjdh.opengl.program
Class StandardOpenGLProgram
java.lang.Object
jjdh.opengl.program.AbstractOpenGLProgram
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
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
StandardOpenGLProgram
public StandardOpenGLProgram()
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
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.