| 143 | } |
| 144 | |
| 145 | void ExtrudeApp::draw() |
| 146 | { |
| 147 | gl::clear(); |
| 148 | |
| 149 | gl::setMatrices( mCam ); |
| 150 | gl::pushMatrices(); |
| 151 | gl::multModelMatrix( mRotation ); |
| 152 | gl::color( Color( 1, 1, 1 ) ); |
| 153 | #if defined( CINDER_GL_ES ) |
| 154 | mBatch->draw(); |
| 155 | #else |
| 156 | if( mDrawWireframe ) |
| 157 | gl::enableWireframe(); |
| 158 | mBatch->draw(); |
| 159 | gl::disableWireframe(); |
| 160 | #endif |
| 161 | gl::color( Color( 1.0f, 0.5f, 0.25f ) ); |
| 162 | if( mDrawNormals && mNormalsBatch ) |
| 163 | mNormalsBatch->draw(); |
| 164 | if( mUseSpline && mSplineBatch ) { |
| 165 | gl::disableDepthRead(); |
| 166 | mSplineBatch->draw(); |
| 167 | gl::enableDepthRead(); |
| 168 | } |
| 169 | gl::popMatrices(); |
| 170 | } |
| 171 | |
| 172 | CINDER_APP( ExtrudeApp, RendererGl ) |
nothing calls this directly
no test coverage detected