pushMatrix method

void pushMatrix()

Pushes a copy of the current transformation matrix onto the matrix stack.

Implementation

void pushMatrix() {
  final newCurrentMatrix = _matrixPool.get();
  newCurrentMatrix.setFrom(_currentMatrix);
  _matrixStack.add(_currentMatrix);
  _currentMatrix = newCurrentMatrix;
}