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

Method draw

samples/BasicAppMultiWindow/src/BasicAppMultiWindowApp.cpp:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void BasicAppMultiWindow::draw()
70{
71 gl::clear( Color( 0.1f, 0.1f, 0.15f ) );
72
73 WindowData *data = getWindow()->getUserData<WindowData>();
74
75 gl::color( data->mColor );
76 gl::begin( GL_LINE_STRIP );
77 for( auto pointIter = data->mPoints.begin(); pointIter != data->mPoints.end(); ++pointIter ) {
78 gl::vertex( *pointIter );
79 }
80 gl::end();
81}
82
83// This line tells Cinder to actually create the application
84CINDER_APP( BasicAppMultiWindow, RendererGl )

Callers

nothing calls this directly

Calls 9

clearFunction · 0.50
ColorFunction · 0.50
getWindowFunction · 0.50
colorFunction · 0.50
beginFunction · 0.50
vertexFunction · 0.50
endFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected