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

Method draw

samples/Extrude/src/ExtrudeApp.cpp:145–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void ExtrudeApp::draw()
146{
147 gl::clear();
148
149 gl::setMatrices( mCam );
150 gl::pushMatrices();
151 gl::multModelMatrix( mRotation );
152 gl::color( Color( 1, 1, 1 ) );
153#if defined( CINDER_GL_ES )
154 mBatch->draw();
155#else
156 if( mDrawWireframe )
157 gl::enableWireframe();
158 mBatch->draw();
159 gl::disableWireframe();
160#endif
161 gl::color( Color( 1.0f, 0.5f, 0.25f ) );
162 if( mDrawNormals && mNormalsBatch )
163 mNormalsBatch->draw();
164 if( mUseSpline && mSplineBatch ) {
165 gl::disableDepthRead();
166 mSplineBatch->draw();
167 gl::enableDepthRead();
168 }
169 gl::popMatrices();
170}
171
172CINDER_APP( ExtrudeApp, RendererGl )

Callers

nothing calls this directly

Calls 11

setMatricesFunction · 0.85
pushMatricesFunction · 0.85
multModelMatrixFunction · 0.85
enableWireframeFunction · 0.85
disableWireframeFunction · 0.85
disableDepthReadFunction · 0.85
enableDepthReadFunction · 0.85
popMatricesFunction · 0.85
clearFunction · 0.50
colorFunction · 0.50
ColorFunction · 0.50

Tested by

no test coverage detected