void Win3D::preDraw() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // GL_PROJECTION matrix if(fx>0) { loadProjectionMatrix(); } else { camera()->loadProjectionMatrix(); } // GL_MODELVIEW matrix camera()->loadModelViewMatrix(); Q_EMIT drawNeeded(); }
void GLRender::reshape(int width, int height) { loadProjectionMatrix(); }
void Camera::resizeViewport(int _w, int _h) { m_viewPortSize = QSize( _w, _h); loadProjectionMatrix(); }
void ofxArtool5::beginAR(){ ofPushView(); loadProjectionMatrix(); loadModelMatrix(); }