S
S
Sergey2015-02-23 01:56:37
Programming
Sergey, 2015-02-23 01:56:37

How to load DDS file in c++ builder?

Climbing on the Internet and did not find anything ...
The essence of the problem:
You need to open the DDS file ... The content itself contains an "icon pack". These icons will need to be used in the application as pictures.
Solutions:
I tried to find solutions, but I didn’t find them ...
Tell me, who knows how to load this "icon pack" into the program using c ++

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Shatunov, 2015-02-23
@semihal

DDS - Direct Draw Surface is a container format filled with one or more images, provided with a special DDS header.
As a rule, textures compressed by hardware-decodable methods (S3TC, PVR, ATC, ETC) are stored in this format. However, the container also allows you to store uncompressed color data.
The type of compression method is specified in the DDS header, in the "_fourcc" field, as a four-character string.
An example of a DDS header description:
https://github.com/FrankStain/tex-conv/blob/master...
An example of directly loading a DDS file:
https://github.com/FrankStain/tex-conv/blob/master. ..
When loading a DDS file, the first step is to read the header, everything beyond the header is an image(s).
If the data compression format is specified in the file header, then the data must be unpacked before using it manually. Uncompressed data (RGB(1|4|8)(A) formats) can be used directly from the file.
Writing a do-it-yourself compression format unpacker is a difficult task. It is easier to take ready-made libraries from the direct developers or intermediaries of these formats.
ATC is unpacked using the Adreno SDK ( https://developer.qualcomm.com/download ).
The PVR is unpacked using the PowerVR SDK ( community.imgtec.com/developers/powervr/graphics-sdk ).
DXT or S3TC handles both of the above packages as well as the DirectX SDK. There is also a set of utilities from nVidia - Texture Tools ( https://developer.nvidia.com/legacy-texture-tools).

I
Ilya Bobkov, 2015-02-23
@heksen

http://openil.sourceforge.net/

A
AxisPod, 2015-02-23
@AxisPod

It's easier to convert to a supported format.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question