Function bgfx_rs::static_lib::set_state
source · pub fn set_state(state: u64, rgba: u32)
Expand description
state
: State flags. Default state for primitive type is triangles. See: StateFlags::DEFAULT.- StateDepthTestFlags - Depth test function.
- StateBlendFlags - See remark 1 about BGFX_STATE_BLEND_FUNC.
- StateBlendEquationFlags - See remark 2.
- StateCullFlags - Backface culling mode.
- StateWriteFlags - Enable R, G, B, A or Z write.
- StateFlags::MSAA - Enable hardware multisample antialiasing.
- [StatePtFlags::[TRISTRIP/LINES/POINTS]] - Primitive type.
rgba
: Sets blend factor used by StateBlendFlags::FACTOR and StateBlendFlags::INV_FACTOR blend modes.