From 5e1872f3cfe7d475a16a17304b8e660cae0f4bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 1 Aug 2017 11:19:10 -0700 Subject: [PATCH] Updated docs. --- include/bgfx/defines.h | 67 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 55 insertions(+), 12 deletions(-) diff --git a/include/bgfx/defines.h b/include/bgfx/defines.h index ad3568e95..27c0459c2 100644 --- a/include/bgfx/defines.h +++ b/include/bgfx/defines.h @@ -8,12 +8,12 @@ #define BGFX_API_VERSION UINT32_C(46) -/// +/// Color RGB/alpha/depth write. When it's not specified write will be disabled. #define BGFX_STATE_RGB_WRITE UINT64_C(0x0000000000000001) //!< Enable RGB write. #define BGFX_STATE_ALPHA_WRITE UINT64_C(0x0000000000000002) //!< Enable alpha write. #define BGFX_STATE_DEPTH_WRITE UINT64_C(0x0000000000000004) //!< Enable depth write. -/// +/// Depth test state. When `BGFX_STATE_DEPTH_` is not specified depth test will be disabled. #define BGFX_STATE_DEPTH_TEST_LESS UINT64_C(0x0000000000000010) //!< Enable depth test, less. #define BGFX_STATE_DEPTH_TEST_LEQUAL UINT64_C(0x0000000000000020) //!< Enable depth test, less or equal. #define BGFX_STATE_DEPTH_TEST_EQUAL UINT64_C(0x0000000000000030) //!< Enable depth test, equal. @@ -56,6 +56,7 @@ #define BGFX_STATE_BLEND_INDEPENDENT UINT64_C(0x0000000400000000) //!< Enable blend independent. #define BGFX_STATE_BLEND_ALPHA_TO_COVERAGE UINT64_C(0x0000000800000000) //!< Enable alpha to coverage. +/// Cull state. When `BGFX_STATE_CULL_*` is not specified culling will be disabled. #define BGFX_STATE_CULL_CW UINT64_C(0x0000001000000000) //!< Cull clockwise triangles. #define BGFX_STATE_CULL_CCW UINT64_C(0x0000002000000000) //!< Cull counter-clockwise triangles. #define BGFX_STATE_CULL_SHIFT 36 //!< Culling mode bit shift. @@ -100,29 +101,71 @@ | BGFX_STATE_MSAA \ ) +/// Alpha reference value. #define BGFX_STATE_ALPHA_REF(_ref) ( ( (uint64_t)(_ref )<