I think I'd have used QFile to read the targa into a QByteArray (simply add the missing byte for a rgb32!) which in turn I'd then use to construct a QImage which would then be assigned to a QPixmap.
But then again if you are writing something based upon OpenGL you're probably doing it correctly anyway.




Reply With Quote
Bookmarks