// --------------------------------------------------------------------------------------------------------------------------------------------------- // void ofxOculusRift::beginRender( float _interOcularShift, ofFbo* _fbo ) { ofPushView(); _fbo->begin(); ofClear(0,0,0); // Todo: get the proper clear color setupScreenPerspective( _interOcularShift, ofGetWidth(), ofGetHeight(), ofGetOrientation(), false, getFov(), getNearClip(), getFarClip() ); ofSetMatrixMode(OF_MATRIX_MODELVIEW); ofLoadIdentityMatrix(); ofPushMatrix(); // flip for FBO ofScale(1,-1,1); ofMultMatrix( getHeadsetViewOrientationMat() ); ofTranslate( getPosition() ); }
//---------------------------------------------------------- void ofGLRenderer::setupScreen(){ setupScreenPerspective(); // assume defaults }
void ofCairoRenderer::setupScreen(){ if(!surface || !cr) return; setupScreenPerspective(); // assume defaults }
//----------------------------------------------------------------------------------- void ofxCairoTexture::setupScreen(){ if(!surface || !cr) return; setupScreenPerspective(); // assume defaults }
void ofxSosoRenderer::setupScreen() { setupScreenPerspective(); }