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;
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;
Users browsing this forum: No registered users and 2 guests