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

Method draw

samples/_opengl/MipMap/src/MipMapApp.cpp:215–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void TextureMipmappingApp::draw()
216{
217 gl::clear( Color( 0, 0, 0 ) );
218 gl::enableAlphaBlending();
219
220 gl::pushModelMatrix();
221 gl::setMatrices( mCam );
222 gl::multModelMatrix( mPlaneTranslation );
223 gl::multModelMatrix( mPlaneRotation );
224
225 renderPlaneTexture( mLeftControl );
226 renderPlaneTexture( mRightControl );
227
228 gl::popModelMatrix();
229
230 gl::pushMatrices();
231 gl::setMatricesWindow( getWindowSize() );
232
233 renderFilterButtons( mLeftControl );
234 renderFilterButtons( mRightControl );
235
236 // Simple seperator
237 gl::color(1, 1, 1);
238 gl::drawSolidRect( Rectf( getWindowWidth() / 2 - 2, 0, getWindowWidth() / 2 + 2, getWindowHeight() ) );
239 gl::popMatrices();
240}
241
242void TextureMipmappingApp::renderPlaneTexture( FilterControlRef f )
243{

Callers

nothing calls this directly

Calls 15

enableAlphaBlendingFunction · 0.85
pushModelMatrixFunction · 0.85
setMatricesFunction · 0.85
multModelMatrixFunction · 0.85
popModelMatrixFunction · 0.85
pushMatricesFunction · 0.85
setMatricesWindowFunction · 0.85
drawSolidRectFunction · 0.85
getWindowWidthFunction · 0.85
getWindowHeightFunction · 0.85
popMatricesFunction · 0.85
clearFunction · 0.50

Tested by

no test coverage detected