#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(rgba8i_srgb) \ x(bgra8i_srgb) \ x(rgba16f) \ x(rgba32f) \ x(bc1) \ x(bc4) \ x(bc5) \ x(d16) \ x(d24s8) \ x(d32) typedef enum { #define x(n) texture_format_ ## n, texture_format_xmacro() #undef x texture_format_count } Texture_Format; #endif