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

Method draw

samples/_audio/NodeSubclassing/src/NodeSubclassingApp.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void NodeSubclassingApp::draw()
65{
66 gl::clear();
67
68 if( mMonitorNode && mMonitorNode->isEnabled() ) {
69 Rectf scopeRect( 10, 10, (float)getWindowWidth() - 10, (float)getWindowHeight() - 10 );
70 drawAudioBuffer( mMonitorNode->getBuffer(), scopeRect, true, Color( 0.9f, 0.4f, 0 ) );
71 }
72}
73
74CINDER_APP( NodeSubclassingApp, RendererGl( RendererGl::Options().msaa( 8 ) ) )

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected