| 184 | } |
| 185 | |
| 186 | void ParticleSphereGPUApp::draw() |
| 187 | { |
| 188 | gl::clear( Color( 0, 0, 0 ) ); |
| 189 | gl::setMatricesWindowPersp( getWindowSize(), 60.0f, 1.0f, 10000.0f ); |
| 190 | gl::enableDepthRead(); |
| 191 | gl::enableDepthWrite(); |
| 192 | |
| 193 | gl::ScopedGlslProg render( mRenderProg ); |
| 194 | gl::ScopedVao vao( mAttributes[mSourceIndex] ); |
| 195 | gl::context()->setDefaultShaderVars(); |
| 196 | gl::drawArrays( GL_POINTS, 0, NUM_PARTICLES ); |
| 197 | } |
| 198 | |
| 199 | CINDER_APP( ParticleSphereGPUApp, RendererGl, [] ( App::Settings *settings ) { |
| 200 | settings->setWindowSize( 1280, 720 ); |
nothing calls this directly
no test coverage detected