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

Method drawCharacterVerbose

samples/FontSample/src/FontSampleApp.cpp:129–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127};
128
129void fontSampleApp::drawCharacterVerbose( cairo::Context &ctx, vec2 where )
130{
131 cairo::Matrix prevMat;
132 ctx.getMatrix( &prevMat );
133
134 // draw it filled
135 ctx.setSourceRgb( 1.0f, 1.0, 0.5f );
136 ctx.translate( where );
137 // Uncomment below to render the character filled
138 // ctx.appendPath( mShape );
139 // ctx.fill();
140
141 VerboseCharDraw verb( ctx );
142 mShape.iterate<VerboseCharDraw>( verb );
143
144 ctx.setMatrix( prevMat );
145}
146
147void fontSampleApp::draw()
148{

Callers

nothing calls this directly

Calls 4

getMatrixMethod · 0.80
setSourceRgbMethod · 0.80
setMatrixMethod · 0.80
translateMethod · 0.45

Tested by

no test coverage detected