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

Method popMatrix

blocks/Cairo/src/Cairo.cpp:2097–2111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2095 }
2096 }
2097 void popMatrix() {
2098 mMatrixStack.pop_back();
2099 mMatrixStackContainsIllegal = false;
2100 for( size_t s = 0; s < mMatrixStack.size(); ++s ) {
2101 const mat3 &m = mMatrixStack[s];
2102 if( isSingular( m ) ) {
2103 mMatrixStackContainsIllegal = true;
2104 break;
2105 }
2106 }
2107
2108 if( ! mMatrixStackContainsIllegal ) {
2109 mCtx.setMatrix( mMatrixStack.back() );
2110 }
2111 }
2112
2113 void pushStyle( const svg::Style &style ) {}
2114 void popStyle() {}

Callers 1

finishRenderMethod · 0.80

Calls 5

isSingularFunction · 0.85
pop_backMethod · 0.80
setMatrixMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected