| 2083 | } |
| 2084 | |
| 2085 | void pushMatrix( const mat3 &top ) { |
| 2086 | mat3 m = mMatrixStack.back() * top; |
| 2087 | mMatrixStack.push_back( m ); |
| 2088 | // verify the matrix is non-singular |
| 2089 | if( ! isSingular( m ) ) { |
| 2090 | mCtx.setMatrix( m ); |
| 2091 | //mCtx.transform( mMatrixStack.back() ); |
| 2092 | } |
| 2093 | else { |
| 2094 | mMatrixStackContainsIllegal = true; |
| 2095 | } |
| 2096 | } |
| 2097 | void popMatrix() { |
| 2098 | mMatrixStack.pop_back(); |
| 2099 | mMatrixStackContainsIllegal = false; |
no test coverage detected