| 60 | } |
| 61 | |
| 62 | void ScratchApp::draw() |
| 63 | { |
| 64 | gl::clear(); |
| 65 | |
| 66 | gl::color( 1.0f, 1.0f, 1.0f ); |
| 67 | |
| 68 | if( mTexture ) { |
| 69 | mTexture->setTopDown( true ); |
| 70 | gl::pushModelMatrix(); |
| 71 | gl::scale( 2.0f, 2.0f ); |
| 72 | gl::draw( mTexture ); |
| 73 | gl::popModelMatrix(); |
| 74 | } |
| 75 | |
| 76 | /* |
| 77 | gl::clear( Color( 0.1f, 0.1f, 0.15f ) ); |
| 78 | |
| 79 | gl::color( 1.0f, 0.5f, 0.25f ); |
| 80 | gl::begin( GL_LINE_STRIP ); |
| 81 | for( auto pointIter = mPoints.begin(); pointIter != mPoints.end(); ++pointIter ) { |
| 82 | gl::vertex( *pointIter ); |
| 83 | } |
| 84 | gl::end(); |
| 85 | */ |
| 86 | } |
| 87 | |
| 88 | // This line tells Cinder to actually create the application |
| 89 | CINDER_APP( ScratchApp, RendererGl ) |
nothing calls this directly
no test coverage detected