MCPcopy Create free account
hub / github.com/cinder/Cinder / pushMatrix

Method pushMatrix

blocks/Cairo/src/Cairo.cpp:2085–2096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 2

renderMethod · 0.80
startRenderMethod · 0.80

Calls 4

isSingularFunction · 0.85
backMethod · 0.80
setMatrixMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected