[Interest] OGL, gluPickMatrix similar function in Qt?

Thomas Meyer public at meyer-thomas.com
Thu Oct 3 11:36:39 CEST 2013


Hi,
(answering myself)
no, but it is easy to implement the original:
ftp://ftp.freedesktop.org/pub/mesa/glu/glu-9.0.0.tar.gz
in
...\glu-9.0.0\src\libutil\project.c
last function:
...
void GLAPIENTRY
gluPickMatrix(GLdouble x, GLdouble y, GLdouble deltax, GLdouble deltay,
           GLint viewport[4])
{
     if (deltax <= 0 || deltay <= 0) {
     return;
     }

     /* Translate and scale the picked region to the entire window */
     glTranslatef((viewport[2] - 2 * (x - viewport[0])) / deltax,
         (viewport[3] - 2 * (y - viewport[1])) / deltay, 0);
     glScalef(viewport[2] / deltax, viewport[3] / deltay, 1.0);
}
...

Thomas


Am 30.09.2013 17:53, schrieb Thomas Meyer:
> Hi,
> is there a similar function in Qt for gluPickMatrix?
> (Searched, but nothing found.)
>
> Thanks,
>       Thomas
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>




More information about the Interest mailing list