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

Method draw

samples/_opengl/ParticleSphereGPU/src/ParticleSphereGPUApp.cpp:186–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void 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
199CINDER_APP( ParticleSphereGPUApp, RendererGl, [] ( App::Settings *settings ) {
200 settings->setWindowSize( 1280, 720 );

Callers

nothing calls this directly

Calls 9

setMatricesWindowPerspFunction · 0.85
enableDepthReadFunction · 0.85
enableDepthWriteFunction · 0.85
drawArraysFunction · 0.85
setDefaultShaderVarsMethod · 0.80
clearFunction · 0.50
ColorFunction · 0.50
getWindowSizeFunction · 0.50
contextFunction · 0.50

Tested by

no test coverage detected