org.jrabbit.standard.game.world.camera.components
Class CameraTransforms.ViewCenterer

java.lang.Object
  extended by org.jrabbit.base.graphics.transforms.GLMatrixStackControl
      extended by org.jrabbit.base.graphics.transforms.GLReset
          extended by org.jrabbit.standard.game.world.camera.components.CameraTransforms.ViewCenterer
All Implemented Interfaces:
GLTransform
Enclosing class:
CameraTransforms

public static class CameraTransforms.ViewCenterer
extends GLReset

A ViewCenterer resets the Modelview Matrix and places the origin at the center of the scene.

Author:
Chris Molini

Constructor Summary
CameraTransforms.ViewCenterer()
           
 
Method Summary
 void bind()
          Pushes the stack, resets the Modelview Matrix, and makes the origin at the center of the scene.
 
Methods inherited from class org.jrabbit.base.graphics.transforms.GLMatrixStackControl
release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CameraTransforms.ViewCenterer

public CameraTransforms.ViewCenterer()
Method Detail

bind

public void bind()
Pushes the stack, resets the Modelview Matrix, and makes the origin at the center of the scene.

Specified by:
bind in interface GLTransform
Overrides:
bind in class GLReset