[Qt-interest] View JPEG in QGLWidget
Brilliantov Kirill Vladimirovich
brilliantov at byterg.ru
Fri Jul 29 09:26:00 CEST 2011
Hello Constantin!
I try use GL_ARB_texture_rectangle extension, but I get only error
invalid operation.
This is strange, but in
http://www.opengl.org/sdk/docs/man/xhtml/glEnable.xml and
http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml I don't see
texture target GL_TEXTURE_RECTANGLE_ARB.
Also I try scale my image to 256x256:
image = QGLWidget::convertToGLFormat(QImage::fromData(jpg).scaled(256,
256, Qt::IgnoreAspectRatio));
But this is not solve problem.
Any idea?
Thank you.
More information about the Qt-interest-old
mailing list