SpartanJ / SOIL2

SOIL2 is a tiny C library used primarily for uploading textures into OpenGL.
MIT No Attribution
370 stars 75 forks source link

Add .dds DX10 header support #58

Closed stijnherfst closed 1 year ago

stijnherfst commented 1 year ago

When the FourCC of a .dds is DX10, there is an extended header specifying what underlying representation is used. This PR adds support for BC5 unorm when it is encapsulated in a DX10 header. Furthermore, the CMakeLists is simplified and updated so that it can now be easily used with the vcpkg package manager.

SpartanJ commented 1 year ago

Excellent contribution! I'm just going to ask you to please also upload a test DX10 DDS image into the bin folder so it can be tested easily (may be just export img_test.png to DX10 DDS with the name img_test_dx10.dds).

Thanks!

stijnherfst commented 1 year ago

I have added a DX10_BC5 test image and renamed the images in /bin to match their formats. I have also updated the README to clarify the capabilities for each of the BCx formats.

SpartanJ commented 1 year ago

Awesome! Thanks!