| 67 | } |
| 68 | |
| 69 | void 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 |
| 84 | CINDER_APP( BasicAppMultiWindow, RendererGl ) |