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

Method render

test/CameraLensShiftTest/src/CameraLensShiftTestApp.cpp:166–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void CameraLensShiftTestApp::render()
167{
168 // draw simple scene
169 gl::color( Color(0.25f, 0.25f, 0.25f) );
170 for(int i=-10; i<=10; ++i) {
171 gl::drawLine( vec3((float) i, 0.0f, -10.0f), vec3((float) i, 0.0f, 10.0f) );
172 gl::drawLine( vec3(-10.0f, 0.0f, (float) i), vec3(10.0f, 0.0f, (float) i) );
173 }
174
175 gl::color( Color(0.75f, 0.75f, 0.75f) );
176 gl::enableWireframe();
177 gl::pushModelView();
178 gl::rotate( 5.0f * getElapsedSeconds(), 0.0f, 1.0f, 0.0f );
179 gl::drawSphere( vec3(0), 4.0f, 24 );
180 gl::popModelView();
181 gl::disableWireframe();
182
183}
184
185CINDER_APP( CameraLensShiftTestApp, RendererGl, &CameraLensShiftTestApp::prepareSettings )

Callers 4

renderSnapshotMethod · 0.45
drawMethod · 0.45
drawInfoMethod · 0.45
drawMethod · 0.45

Calls 10

enableWireframeFunction · 0.85
pushModelViewFunction · 0.85
drawSphereFunction · 0.85
popModelViewFunction · 0.85
disableWireframeFunction · 0.85
colorFunction · 0.50
ColorFunction · 0.50
drawLineFunction · 0.50
rotateFunction · 0.50
getElapsedSecondsFunction · 0.50

Tested by

no test coverage detected