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

Method draw

samples/_audio/MultichannelOutput/src/MultichannelOutputApp.cpp:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void MultichannelOutputApp::draw()
112{
113 gl::clear();
114
115 // Draw the Scope's recorded Buffer, all channels as separate line arrays.
116 if( mMonitor && mMonitor->isEnabled() ) {
117 Rectf scopeRect( 10, 10, (float)getWindowWidth() - 10, (float)getWindowHeight() - 10 );
118 drawAudioBuffer( mMonitor->getBuffer(), scopeRect, true );
119 }
120}
121
122CINDER_APP( MultichannelOutputApp, RendererGl( RendererGl::Options().msaa( 8 ) ) )

Callers

nothing calls this directly

Calls 6

getWindowWidthFunction · 0.85
getWindowHeightFunction · 0.85
drawAudioBufferFunction · 0.85
getBufferMethod · 0.80
clearFunction · 0.50
isEnabledMethod · 0.45

Tested by

no test coverage detected