org.jrabbit.base.graphics.transforms
Class GLMatrixStackControl

java.lang.Object
  extended by org.jrabbit.base.graphics.transforms.GLMatrixStackControl
All Implemented Interfaces:
GLTransform
Direct Known Subclasses:
GLReset

public class GLMatrixStackControl
extends java.lang.Object
implements GLTransform

A GLMatrixStackControl pushes the active OpenGL matrix so that it can be restored to its original state at a later point in time. Basically, it "saves" the current matrix.

Author:
Chris Molini

Constructor Summary
GLMatrixStackControl()
           
 
Method Summary
 void bind()
          Pushes the matrix.
 void release()
          Pops the matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLMatrixStackControl

public GLMatrixStackControl()
Method Detail

bind

public void bind()
Pushes the matrix.

Specified by:
bind in interface GLTransform

release

public void release()
Pops the matrix.

Specified by:
release in interface GLTransform