diff options
author | chai <chaifix@163.com> | 2019-12-15 13:29:05 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-15 13:29:05 +0800 |
commit | a0b8ef3d482c965901f094879a79dd9c5fd8245c (patch) | |
tree | 1a28d49dc7a6bf0a279f10569cd7e40f3aaaedaa /src/core/device.h | |
parent | 749bbc6a54e50c297ab49d9e515a3679651d1461 (diff) |
*misc
Diffstat (limited to 'src/core/device.h')
-rw-r--r-- | src/core/device.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/core/device.h b/src/core/device.h index d8daf76..066d399 100644 --- a/src/core/device.h +++ b/src/core/device.h @@ -29,24 +29,24 @@ typedef enum { } ssr_PrimitiveType; typedef enum { - ENABLEMASK_BACKFACECULL = 1, - ENABLEMASK_DEPTHTEST = 1 << 1, - ENABLEMASK_MULTISAMPLE = 1 << 2, - ENABLEMASK_BLEND = 1 << 3, - ENABLEMASK_WRITEDEPTH = 1 << 4, + ENABLE_BACKFACECULL = 1, + ENABLE_DEPTHTEST = 1 << 1, + ENABLE_MULTISAMPLE = 1 << 2, + ENABLE_BLEND = 1 << 3, + ENABLE_WRITEDEPTH = 1 << 4, } ssr_EnableMask; typedef enum { - BLENDFACTOR_ONE, - BLENDFACTOR_ZERO, - BLENDFACTOR_SRC_COLOR, - BLENDFACTOR_ONE_MINUS_SRC_COLOR, - BLENDFACTOR_DST_COLOR, - BLENDFACTOR_ONE_MINUS_DST_COLOR, - BLENDFACTOR_SRC_ALPHA, - BLENDFACTOR_ONE_MINUS_SRC_ALPHA, - BLENDFACTOR_DST_ALPHA, - BLENDFACTOR_ONE_MINUS_DST_ALPHA, + BLEND_ONE, + BLEND_ZERO, + BLEND_SRC_COLOR, + BLEND_ONE_MINUS_SRC_COLOR, + BLEND_DST_COLOR, + BLEND_ONE_MINUS_DST_COLOR, + BLEND_SRC_ALPHA, + BLEND_ONE_MINUS_SRC_ALPHA, + BLEND_DST_ALPHA, + BLEND_ONE_MINUS_DST_ALPHA, } ssr_BlendFactor; void ssr_init(ssr_Config* config); |