jjdh API

jjdh.opengl.exercises.playground.activerendering
Class CubeRenderer

java.lang.Object
  extended by jjdh.opengl.program.renderer.common.StandardFullRenderer
      extended by jjdh.opengl.exercises.playground.activerendering.CubeRenderer
All Implemented Interfaces:
Initable, Reshapeable, FullRenderer, GlassPaneRenderer, Renderer, ReshapeableRenderer

public class CubeRenderer
extends StandardFullRenderer


Field Summary
protected  Mesh staticMesh
           
 
Fields inherited from class jjdh.opengl.program.renderer.common.StandardFullRenderer
gl, glu, glut
 
Constructor Summary
CubeRenderer()
           
 
Method Summary
 void display()
          Called to execute OpenGL rendering.
 void displayGlassPane()
          Called to execute OpenGL GlassPane rendering.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

staticMesh

protected Mesh staticMesh
Constructor Detail

CubeRenderer

public CubeRenderer()
Method Detail

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
Overrides:
init in class StandardFullRenderer
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
Overrides:
display in class StandardFullRenderer

displayGlassPane

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

Specified by:
displayGlassPane in interface GlassPaneRenderer
Overrides:
displayGlassPane in class StandardFullRenderer

reshape

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

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

jjdh API

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