com.croftsoft.core.media.jogl.render
Class JoglSpinCube

java.lang.Object
  extended by com.croftsoft.core.media.jogl.render.JoglSpinCube
All Implemented Interfaces:
JoglRenderer

public final class JoglSpinCube
extends Object
implements JoglRenderer

Displays a spinning colored cube. The angular velocity is subjected to uniform random accelerations. The maximum magnitude of the random accelerations is set by the perturbation factor.

Since:
2005-08-15
Version:
$Date: 2008/05/17 01:32:43 $
Author:
David Wallace Croft

Nested Class Summary
static interface JoglSpinCube.Model
           
static class JoglSpinCube.ModelImp
           
 
Constructor Summary
JoglSpinCube(JoglSpinCube.Model model)
          Main constructor.
 
Method Summary
 void destroy(GL gl)
           
 void init(GL gl)
           
 void render(GL gl)
           
 void setBounds(GL gl, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoglSpinCube

public JoglSpinCube(JoglSpinCube.Model model)
Main constructor.

Method Detail

init

public void init(GL gl)
Specified by:
init in interface JoglRenderer

destroy

public void destroy(GL gl)
Specified by:
destroy in interface JoglRenderer

setBounds

public void setBounds(GL gl,
                      int x,
                      int y,
                      int width,
                      int height)
Specified by:
setBounds in interface JoglRenderer

render

public void render(GL gl)
Specified by:
render in interface JoglRenderer

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)