Hi,
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?

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

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to