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

Method draw

samples/_timeline/TextInputTween/src/Character.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void Character::draw() const
70{
71 gl::color( mColorCur );
72
73 gl::ScopedModelMatrix matScope;
74
75 mat4 m = mMatrix() * scale( vec3( 1, -1, 1 ) );
76 gl::multModelMatrix( m );
77
78 mTextureFont->drawString( mChar, mKernBounds.getCenter() - vec2( mKernBounds.getWidth(), 0.0f ) );
79}

Callers

nothing calls this directly

Calls 5

multModelMatrixFunction · 0.85
drawStringMethod · 0.80
colorFunction · 0.50
scaleFunction · 0.50
getWidthMethod · 0.45

Tested by

no test coverage detected