Ejemplo n.º 1
0
 public void push(State state) {
   ModelMatrixElement prev = (ModelMatrixElement) getNextInStack();
   if (prev != null) {
     matrix.set(prev.matrix);
   }
 }
Ejemplo n.º 2
0
 /** Multiplies this element by the given matrix. */
 public void multElt(Mat4f matrix) {
   temp.set(this.matrix);
   this.matrix.mul(temp, matrix);
 }
Ejemplo n.º 3
0
 public ModelMatrixElement() {
   matrix = new Mat4f();
   matrix.makeIdent();
 }
Ejemplo n.º 4
0
 /** Sets this element to the identity matrix. */
 public void makeEltIdent() {
   matrix.makeIdent();
 }