MCPcopy Create free account
hub / github.com/cinder/Cinder / draw

Method draw

samples/_opengl/ParticleSphereCPU/src/ParticleSphereCPUApp.cpp:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void ParticleSphereCPUApp::draw()
142{
143 gl::clear( Color( 0, 0, 0 ) );
144 gl::setMatricesWindowPersp( getWindowSize(), 60.0f, 1.0f, 10000.0f );
145 gl::enableDepthRead();
146 gl::enableDepthWrite();
147
148 mParticleBatch->draw();
149}
150
151CINDER_APP( ParticleSphereCPUApp, RendererGl, [] ( App::Settings *settings ) {
152 settings->setWindowSize( 1280, 720 );

Callers

nothing calls this directly

Calls 6

setMatricesWindowPerspFunction · 0.85
enableDepthReadFunction · 0.85
enableDepthWriteFunction · 0.85
clearFunction · 0.50
ColorFunction · 0.50
getWindowSizeFunction · 0.50

Tested by

no test coverage detected