summaryrefslogtreecommitdiff
path: root/vid_enums.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-22 22:19:36 +1100
committerquou <quou@disroot.org>2024-12-22 22:19:36 +1100
commit58245585cbe77e6c03ebe13f29e10393ff3c45b4 (patch)
tree6c3dcd8e9adcbc699318d4062bb2cf594116702e /vid_enums.h
parent82767020e84ec8c1af2e3817fc7efede5497c82d (diff)
cute asset loading system
Diffstat (limited to 'vid_enums.h')
-rw-r--r--vid_enums.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/vid_enums.h b/vid_enums.h
new file mode 100644
index 0000000..fca4f06
--- /dev/null
+++ b/vid_enums.h
@@ -0,0 +1,26 @@
+#ifndef vid_enums_h
+#define vid_enums_h
+
+#define texture_format_xmacro() \
+ x(r8i) \
+ x(r16f) \
+ x(r32f) \
+ x(rg8i) \
+ x(rg16f) \
+ x(rg32f) \
+ x(rgb8i) \
+ x(rgb16f) \
+ x(rgb32f) \
+ x(rgba8i) \
+ x(rgba16f) \
+ x(rgba32f) \
+ x(bc1)
+
+typedef enum {
+#define x(n) texture_format_ ## n,
+ texture_format_xmacro()
+#undef x
+ texture_format_count
+} Texture_Format;
+
+#endif