1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2026 Fernando Sahmkow
/**
* @file dds.h
* @brief Main header for the DDS (DirectDraw Surface) texture library
*
* This is the primary include file for the DDS library. Include this single
* header to access DDS functionality including parsing and writing.
*
* The DDS format is commonly used for GPU-compressed textures and supports
* both legacy headers and DX10 extended headers.
*
* @example Basic Usage
* @code
* #include <whiteout/textures/dds/dds.h>
*
* // Parse DDS bytes into a texture
* dds::Parser parser;
* auto texture = parser.parse(file_bytes);
*
* if (parser.hasIssues()) {
* for (const auto& issue : parser.getIssues()) {
* std::cerr << "Warning: " << issue << std::endl;
* }
* }
*
* // Encode texture back into DDS
* dds::Writer writer;
* auto output = writer.write(*texture);
* @endcode
*/
namespace whiteout::textures::dds // namespace whiteout::textures::dds
namespace whiteout