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

Method renderScene

samples/CairoBasic/src/CairoBasicApp.cpp:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void CairoBasicApp::renderScene( cairo::Context &ctx )
105{
106 // clear the context with our radial gradient
107 cairo::GradientRadial radialGrad( getWindowCenter(), 0, getWindowCenter(), getWindowWidth() );
108 radialGrad.addColorStop( 0, Color( 1, 1, 1 ) );
109 radialGrad.addColorStop( 1, Color( 0.6, 0.6, 0.6 ) );
110 ctx.setSource( radialGrad );
111 ctx.paint();
112
113 for( vector<Flower>::const_iterator flIt = mFlowers.begin(); flIt != mFlowers.end(); ++flIt )
114 flIt->draw( ctx );
115}
116
117void CairoBasicApp::draw()
118{

Callers

nothing calls this directly

Calls 9

getWindowCenterFunction · 0.85
getWindowWidthFunction · 0.85
addColorStopMethod · 0.80
paintMethod · 0.80
ColorFunction · 0.50
setSourceMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected