If I want to draw a large QImage as texture in QGraphicsScene - using QGLContexts painting engine, it all ends up with QImage called on "convertToGLFormat()", which is horrible in terms of performance. Suppose, my ImageReader for DPX format already reads the data in OpenGL's preferred RGBA format, then it would be nice to bypass the whole mirroring and byte swizzling stuff and "bindToTexture()" just uses the data *WITHOUT* any conversion. That would be great!!!
I think, what needs to be done is, either make "convertToGLFormat()" virtual
or add a bypass flag in "QGLContext", global or local, to allow this.
Cheers,
Mark
Qt Labs Forum » Graphics View
Feature Request: Easy realtime drawing of QImage as OpenGL texture
(1 post)-
Posted: 9 months #
Reply
You must log in to post.