| 88 | } |
| 89 | |
| 90 | void TriangulationApp::draw() |
| 91 | { |
| 92 | if( mOldPrecision != mPrecision ) |
| 93 | recalcMesh(); |
| 94 | |
| 95 | gl::clear(); |
| 96 | gl::pushModelView(); |
| 97 | gl::translate( getWindowCenter() * vec2( 0.8f, 1.2f ) ); |
| 98 | gl::scale( vec3( mZoom, mZoom, mZoom ) ); |
| 99 | gl::color( Color( 0.8f, 0.4f, 0.0f ) ); |
| 100 | gl::draw( mVboMesh ); |
| 101 | if( mDrawWireframe ) { |
| 102 | gl::enableWireframe(); |
| 103 | gl::color( Color::white() ); |
| 104 | gl::draw( mVboMesh ); |
| 105 | gl::disableWireframe(); |
| 106 | } |
| 107 | gl::popModelView(); |
| 108 | } |
| 109 | |
| 110 | |
| 111 | CINDER_APP( TriangulationApp, RendererGl ) |
nothing calls this directly
no test coverage detected