Dispose of all but the first matrix in this stack and set the stack counter to zero. The first matrix will also be set to identity. @return this
()
| 75 | * @return this |
| 76 | */ |
| 77 | public MatrixStack clear() { |
| 78 | curr = 0; |
| 79 | mats[0].identity(); |
| 80 | return this; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Load the given {@link Mat4} into the current matrix of the stack. |