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

Method update

test/Video/VideoPlayerScrubTest/src/VideoPlayerScrubTestApp.cpp:135–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void VideoPlayerScrubTestApp::update()
136{
137 if( ! mSlider.isScrubbing() && mMovie && mMovie->isLoaded() ) {
138 mSlider.updateValue( mMovie->getCurrentTime() / mMovie->getDuration() );
139 }
140
141 if( mMovie ) {
142 mFrameTexture = mMovie->getTexture();
143 }
144
145 static bool sPrintedDone = false;
146 if( ! sPrintedDone && mMovie->isDone() ) {
147 CI_LOG_I( "Done Playing" );
148 sPrintedDone = true;
149 }
150}
151
152void VideoPlayerScrubTestApp::draw()
153{

Callers

nothing calls this directly

Calls 7

isScrubbingMethod · 0.80
updateValueMethod · 0.80
isLoadedMethod · 0.45
getCurrentTimeMethod · 0.45
getDurationMethod · 0.45
getTextureMethod · 0.45
isDoneMethod · 0.45

Tested by

no test coverage detected