Qt Labs Forum » Graphics View

Feature Request: Easy realtime drawing of QImage as OpenGL texture

(1 post)
  • Started 9 months ago by marher

  1. marher
    marher
    Member

    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

    Posted: 9 months #

RSS feed for this topic

Reply

You must log in to post.



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.