[Qt-interest] View JPEG in QGLWidget
Brilliantov Kirill Vladimirovich
brilliantov at byterg.ru
Tue Aug 2 12:34:10 CEST 2011
>
> OK, I think I've found the source of the problem ? incorrect vertex coordinates. In 3D graphics view-space both X and Y coordinates lie in the [-1, 1] range, not [0, width] [0, height] (these are ranges for screen-space coordinates).
>
> The attached tarball contains fixed version of the code. I also removed most debugging stuff and other unneeded things to make the code cleaner and easier to read.
Thank you Constantin!
Why work glDrawPixels with incorrect coordinat and why glDrawPixels work
as static image?
Thank you.
More information about the Qt-interest-old
mailing list