| 213 | } |
| 214 | |
| 215 | void TextureMipmappingApp::draw() |
| 216 | { |
| 217 | gl::clear( Color( 0, 0, 0 ) ); |
| 218 | gl::enableAlphaBlending(); |
| 219 | |
| 220 | gl::pushModelMatrix(); |
| 221 | gl::setMatrices( mCam ); |
| 222 | gl::multModelMatrix( mPlaneTranslation ); |
| 223 | gl::multModelMatrix( mPlaneRotation ); |
| 224 | |
| 225 | renderPlaneTexture( mLeftControl ); |
| 226 | renderPlaneTexture( mRightControl ); |
| 227 | |
| 228 | gl::popModelMatrix(); |
| 229 | |
| 230 | gl::pushMatrices(); |
| 231 | gl::setMatricesWindow( getWindowSize() ); |
| 232 | |
| 233 | renderFilterButtons( mLeftControl ); |
| 234 | renderFilterButtons( mRightControl ); |
| 235 | |
| 236 | // Simple seperator |
| 237 | gl::color(1, 1, 1); |
| 238 | gl::drawSolidRect( Rectf( getWindowWidth() / 2 - 2, 0, getWindowWidth() / 2 + 2, getWindowHeight() ) ); |
| 239 | gl::popMatrices(); |
| 240 | } |
| 241 | |
| 242 | void TextureMipmappingApp::renderPlaneTexture( FilterControlRef f ) |
| 243 | { |
nothing calls this directly
no test coverage detected