Exemplo n.º 1
0
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();
}
Exemplo n.º 2
0
void GLRender::reshape(int width, int height)
{
	loadProjectionMatrix();
}
Exemplo n.º 3
0
void Camera::resizeViewport(int _w, int _h)
{
    m_viewPortSize = QSize( _w, _h);
    loadProjectionMatrix();
}
Exemplo n.º 4
0
void ofxArtool5::beginAR(){
    ofPushView();
    loadProjectionMatrix();
    loadModelMatrix();
}