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

Method draw

samples/EaseGallery/src/EaseGalleryApp.cpp:156–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void EaseGalleryApp::draw()
157{
158 gl::clear( Color( 0.9f, 0.9f, 0.9f ) );
159 gl::lineWidth( 4.0f );
160
161 // time cycles every 1 / TWEEN_SPEED seconds, with a 50% pause at the end
162 float time = math<float>::clamp( fmod( getElapsedSeconds() * TWEEN_SPEED, 1 ) * 1.5f, 0, 1 );
163 for( vector<EaseBox>::iterator easeIt = mEaseBoxes.begin(); easeIt != mEaseBoxes.end(); ++easeIt )
164 easeIt->draw( time );
165}
166
167CINDER_APP( EaseGalleryApp, RendererGl( RendererGl::Options().msaa( 16 ) ) )

Callers

nothing calls this directly

Calls 8

clampFunction · 0.85
fmodFunction · 0.85
clearFunction · 0.50
ColorFunction · 0.50
lineWidthFunction · 0.50
getElapsedSecondsFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected