VTFParser
Simple and modern library for parsing the Valve Texture Format
Loading...
Searching...
No Matches
enums.hpp
1#pragma once
2
3#include <cstdint>
4namespace VtfParser {
9 enum class ImageFormat : int32_t // NOLINT(*-enum-size)
10 {
11 NONE = -1,
12 RGBA8888 = 0,
13 ABGR8888,
14 RGB888,
15 BGR888,
16 RGB565,
17 I8,
18 IA88,
19 P8,
20 A8,
21 RGB888_BLUESCREEN,
22 BGR888_BLUESCREEN,
23 ARGB8888,
24 BGRA8888,
25 DXT1,
26 DXT3,
27 DXT5,
28 BGRX8888,
29 BGR565,
30 BGRX5551,
31 BGRA4444,
32 DXT1_ONEBITALPHA,
33 BGRA5551,
34 UV88,
35 UVWQ8888,
36 RGBA16161616F,
37 RGBA16161616,
38 UVLX8888
39 };
40
44 enum class TextureFlags : uint32_t {
48 NONE = 0,
52 POINTSAMPLE = 0x00000001,
56 TRILINEAR = 0x00000002,
61 CLAMPS = 0x00000004,
66 CLAMPT = 0x00000008,
70 ANISOTROPIC = 0x00000010,
74 HINT_DXT5 = 0x00000020,
78 PWL_CORRECTED = 0x00000040,
84 SRGB = 0x00000040,
88 NORMAL = 0x00000080,
93 NOMIP = 0x00000100,
97 NOLOD = 0x00000200,
102 ALL_MIPS = 0x00000400,
106 PROCEDURAL = 0x00000800,
107
111 ONEBITALPHA = 0x00001000,
116 EIGHTBITALPHA = 0x00002000,
117
121 ENVMAP = 0x00004000,
125 RENDERTARGET = 0x00008000,
129 DEPTHRENDERTARGET = 0x00010000,
133 NODEBUGOVERRIDE = 0x00020000,
137 SINGLECOPY = 0x00040000,
142 PRE_SRGB = 0x00080000,
143
144 UNUSED_00100000 = 0x00100000,
145 UNUSED_00200000 = 0x00200000,
146 UNUSED_00400000 = 0x00400000,
147
152 NODEPTHBUFFER = 0x00800000,
153
154 UNUSED_01000000 = 0x01000000,
155
160 CLAMPU = 0x02000000,
164 VERTEXTEXTURE = 0x04000000,
168 SSBUMP = 0x08000000,
169
170 UNUSED_10000000 = 0x10000000,
171
175 BORDER = 0x20000000,
176
177 UNUSED_40000000 = 0x40000000,
178 UNUSED_80000000 = 0x80000000
179 };
180 inline TextureFlags operator&(const TextureFlags& a, const TextureFlags& b) {
181 return static_cast<TextureFlags>(static_cast<uint8_t>(a) & static_cast<uint8_t>(b));
182 }
183 inline TextureFlags operator|(const TextureFlags& a, const TextureFlags& b) {
184 return static_cast<TextureFlags>(static_cast<uint8_t>(a) & static_cast<uint8_t>(b));
185 }
186}
Definition: VTFParser.hpp:6
TextureFlags
Definition: enums.hpp:44
ImageFormat
Definition: enums.hpp:10