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

Method draw

samples/Triangulation/src/TriangulationApp.cpp:90–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void TriangulationApp::draw()
91{
92 if( mOldPrecision != mPrecision )
93 recalcMesh();
94
95 gl::clear();
96 gl::pushModelView();
97 gl::translate( getWindowCenter() * vec2( 0.8f, 1.2f ) );
98 gl::scale( vec3( mZoom, mZoom, mZoom ) );
99 gl::color( Color( 0.8f, 0.4f, 0.0f ) );
100 gl::draw( mVboMesh );
101 if( mDrawWireframe ) {
102 gl::enableWireframe();
103 gl::color( Color::white() );
104 gl::draw( mVboMesh );
105 gl::disableWireframe();
106 }
107 gl::popModelView();
108}
109
110
111CINDER_APP( TriangulationApp, RendererGl )

Callers

nothing calls this directly

Calls 12

pushModelViewFunction · 0.85
getWindowCenterFunction · 0.85
enableWireframeFunction · 0.85
whiteFunction · 0.85
disableWireframeFunction · 0.85
popModelViewFunction · 0.85
clearFunction · 0.50
translateFunction · 0.50
scaleFunction · 0.50
colorFunction · 0.50
ColorFunction · 0.50
drawFunction · 0.50

Tested by

no test coverage detected