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

Method removeChar

samples/_timeline/TextInputTween/src/TextInputTweenApp.cpp:122–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void TextInputTweenApp::removeChar()
123{
124 if( ! mCharacters.empty() ) {
125 mDyingCharacters.push_back( mCharacters.back() );
126 mCharacters.pop_back();
127
128 if( ! mCharacters.empty() )
129 mSceneDestMatrix = mCharacters.back().getDestMatrix();
130 else
131 mSceneDestMatrix = mat4();
132
133 mat4 randStartMatrix = mSceneDestMatrix;
134 randStartMatrix *= translate( randVec3() * randFloat( 100.0f, 600.0f ) );
135 randStartMatrix *= rotate( randFloat( 2.0f, 6.0f ), randVec3() );
136
137 mDyingCharacters.back().animOut( timeline(), randStartMatrix );
138
139 timeline().apply( &mSceneMatrix, mSceneDestMatrix, 1.0f, EaseOutAtan( 10 ) );
140 }
141}
142
143void TextInputTweenApp::update()
144{

Callers

nothing calls this directly

Calls 12

randVec3Function · 0.85
randFloatFunction · 0.85
EaseOutAtanClass · 0.85
backMethod · 0.80
pop_backMethod · 0.80
getDestMatrixMethod · 0.80
animOutMethod · 0.80
translateFunction · 0.50
rotateFunction · 0.50
emptyMethod · 0.45
push_backMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected