void ofx2DPro::draw(ofEventArgs & args){ if(bRenderSystem){ for(int i=0; i < renderTargets.size();i++){ currentViewPort = i; ofPushStyle(); #ifndef TARGET_RASPBERRY_PI ofx2DPro::getRenderTarget(currentViewPort).begin(); #endif { // Background // background->draw(); // Draw Scene // { ofPushStyle(); ofPushMatrix(); selfDraw(); ofPopMatrix(); ofPopStyle(); } // Draw Overlay // { ofPushStyle(); ofPushMatrix(); selfDrawOverlay(); ofPopMatrix(); ofPopStyle(); } } #ifndef TARGET_RASPBERRY_PI ofx2DPro::getRenderTarget(currentViewPort).end(); #endif ofPopStyle(); } selfPostDraw(); logGui.drawStatus(); } }
//-------------------------------------------------------------- void ofxScene::draw() { selfDraw(); }