summaryrefslogtreecommitdiff
path: root/vid_enums.h
diff options
context:
space:
mode:
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