[Development] Texture image loading library

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Thu Jan 19 19:34:08 CET 2017

As part of some ongoing work I'd like to add some private classes in Qt
to deal with loading of texture files.

Texture files (.dds, .ktx, etc.) are somehow different from ordinary
image files. Not only they store image data in GPU-oriented formats
(that don't require any decoding on the CPU), but a given texture can be
made by multiple images arranged in a complex way (e.g. _one_ texture
can be an array of images with multiple mipmap levels). As such, we
currently don't have APIs to deal with them, and QImage is definitely
the wrong class.

Nonetheless, since such loaders would be useful in more than one place
(qtbase, qtdeclarative, qt3d) I think that the best place for them would
be a new private library in qtimageformats.

(Most of the code in question would actually be extracted from qt3d,
which already has DDS/KTX loaders.)

What do you think?

Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20170119/a4aa6a03/attachment.bin>

More information about the Development mailing list