popMatrix method
Pops the top transformation matrix from the stack and makes it current.
Implementation
void popMatrix() {
if (_matrixStack.isEmpty) {
die('Matrix stack is empty, cannot pop. Resetting matrix to identity.');
return;
}
_currentMatrix = _matrixStack.removeLast();
}