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

Method draw

test/Android/ScratchApp/src/ScratchApp.cpp:62–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void ScratchApp::draw()
63{
64 gl::clear();
65
66 gl::color( 1.0f, 1.0f, 1.0f );
67
68 if( mTexture ) {
69 mTexture->setTopDown( true );
70 gl::pushModelMatrix();
71 gl::scale( 2.0f, 2.0f );
72 gl::draw( mTexture );
73 gl::popModelMatrix();
74 }
75
76 /*
77 gl::clear( Color( 0.1f, 0.1f, 0.15f ) );
78
79 gl::color( 1.0f, 0.5f, 0.25f );
80 gl::begin( GL_LINE_STRIP );
81 for( auto pointIter = mPoints.begin(); pointIter != mPoints.end(); ++pointIter ) {
82 gl::vertex( *pointIter );
83 }
84 gl::end();
85 */
86}
87
88// This line tells Cinder to actually create the application
89CINDER_APP( ScratchApp, RendererGl )

Callers

nothing calls this directly

Calls 6

pushModelMatrixFunction · 0.85
popModelMatrixFunction · 0.85
clearFunction · 0.50
colorFunction · 0.50
scaleFunction · 0.50
drawFunction · 0.50

Tested by

no test coverage detected