| 164 | } |
| 165 | |
| 166 | void CameraLensShiftTestApp::render() |
| 167 | { |
| 168 | // draw simple scene |
| 169 | gl::color( Color(0.25f, 0.25f, 0.25f) ); |
| 170 | for(int i=-10; i<=10; ++i) { |
| 171 | gl::drawLine( vec3((float) i, 0.0f, -10.0f), vec3((float) i, 0.0f, 10.0f) ); |
| 172 | gl::drawLine( vec3(-10.0f, 0.0f, (float) i), vec3(10.0f, 0.0f, (float) i) ); |
| 173 | } |
| 174 | |
| 175 | gl::color( Color(0.75f, 0.75f, 0.75f) ); |
| 176 | gl::enableWireframe(); |
| 177 | gl::pushModelView(); |
| 178 | gl::rotate( 5.0f * getElapsedSeconds(), 0.0f, 1.0f, 0.0f ); |
| 179 | gl::drawSphere( vec3(0), 4.0f, 24 ); |
| 180 | gl::popModelView(); |
| 181 | gl::disableWireframe(); |
| 182 | |
| 183 | } |
| 184 | |
| 185 | CINDER_APP( CameraLensShiftTestApp, RendererGl, &CameraLensShiftTestApp::prepareSettings ) |
no test coverage detected