• // Rovesciamento coordinate
•y = viewport[3] - viewport[1] - 1 -
y;
•
• // Preparazione matrice di selezione
•glMatrixMode( GL_PROJECTION
);
•glLoadIdentity();
•gluPickMatrix(x, y, wx,wy,
wextra.viewport);
•gluPerspective(prospAngle,aspect,nearPlane,farPlane);
•glMatrixMode( GL_MODELVIEW
);