Improve enum declaration.

This commit is contained in:
Roz K 2023-01-06 18:42:58 +01:00
parent cb763962fd
commit 7384a014ff
Signed by: roz
GPG Key ID: 51FBF4E483E1C822

View File

@ -29,7 +29,7 @@ typedef rk_handle_t rk_batch_t;
typedef rk_uint rk_texture_format; typedef rk_uint rk_texture_format;
enum : rk_uint { enum : rk_texture_format {
RK_TEXTURE_FORMAT_SRGB8_A8 = 0, RK_TEXTURE_FORMAT_SRGB8_A8 = 0,
RK_TEXTURE_FORMAT_RGBA8 = 1, RK_TEXTURE_FORMAT_RGBA8 = 1,
RK_TEXTURE_FORMAT_RGB10_A2 = 2, RK_TEXTURE_FORMAT_RGB10_A2 = 2,
@ -38,7 +38,7 @@ enum : rk_uint {
typedef rk_uint rk_texture_flags; typedef rk_uint rk_texture_flags;
enum : rk_uint { enum : rk_texture_flags {
RK_TEXTURE_FLAG_3D = RK_FLAG(0), RK_TEXTURE_FLAG_3D = RK_FLAG(0),
RK_TEXTURE_FLAG_MIPMAPS = RK_FLAG(1), RK_TEXTURE_FLAG_MIPMAPS = RK_FLAG(1),
RK_TEXTURE_FLAG_MIN_NEAREST = 0, RK_TEXTURE_FLAG_MIN_NEAREST = 0,
@ -62,7 +62,7 @@ enum : rk_vertex_format {
typedef rk_ubyte rk_instance_flags; typedef rk_ubyte rk_instance_flags;
enum : rk_ubyte { enum : rk_instance_flags {
RK_INSTANCE_FLAG_SPAWNED = RK_FLAG(0), RK_INSTANCE_FLAG_SPAWNED = RK_FLAG(0),
RK_INSTANCE_FLAG_VISIBLE = RK_FLAG(1), RK_INSTANCE_FLAG_VISIBLE = RK_FLAG(1),
RK_INSTANCE_FLAGS_SPAWNED_VISIBLE = RK_INSTANCE_FLAG_SPAWNED | RK_INSTANCE_FLAG_VISIBLE RK_INSTANCE_FLAGS_SPAWNED_VISIBLE = RK_INSTANCE_FLAG_SPAWNED | RK_INSTANCE_FLAG_VISIBLE