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

Method draw

samples/QuickTimeAvfWriter/src/MovieWriterApp.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void MovieWriterApp::draw()
57{
58 gl::clear();
59 gl::enableDepthRead();
60 gl::color( Color( CM_HSV, fmod( getElapsedFrames() / 30.0f, 1.0f ), 1, 1 ) );
61 gl::draw( geom::Circle().center( getWindowCenter() ).radius( getElapsedFrames() ).subdivisions( 100 ) );
62}
63
64CINDER_APP( MovieWriterApp, RendererGl, MovieWriterApp::prepareSettings )

Callers

nothing calls this directly

Calls 9

enableDepthReadFunction · 0.85
fmodFunction · 0.85
getElapsedFramesFunction · 0.85
getWindowCenterFunction · 0.85
clearFunction · 0.50
colorFunction · 0.50
ColorFunction · 0.50
drawFunction · 0.50
CircleClass · 0.50

Tested by

no test coverage detected