jjdh API

jjdh.opengl.exercises.playground.activerendering
Class EarthRenderer

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

public class EarthRenderer
extends StandardFullRenderer


Field Summary
protected  com.sun.opengl.util.texture.Texture earth
           
protected  Mesh mesh
           
 
Fields inherited from class jjdh.opengl.program.renderer.common.StandardFullRenderer
gl, glu, glut
 
Constructor Summary
EarthRenderer()
           
 
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.
 void updateModel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

earth

protected com.sun.opengl.util.texture.Texture earth

mesh

protected Mesh mesh
Constructor Detail

EarthRenderer

public EarthRenderer()
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

updateModel

public void updateModel()

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.