How do I create this enum structure?
Code: Select all
typedef struct {
uint32 num_channels;
DataType data_type;
int align;
} PixelFormat;
typedef enum {
TYPE_FLOAT = 0,
TYPE_UINT8 = 2,
PIXEL_FORMAT = 3,
} DataType;
Post by Feather » 29 May 2023, 12:52
Code: Select all
typedef struct {
uint32 num_channels;
DataType data_type;
int align;
} PixelFormat;
typedef enum {
TYPE_FLOAT = 0,
TYPE_UINT8 = 2,
PIXEL_FORMAT = 3,
} DataType;