pub enum Flag {
Blend = 3_042,
CullFace = 2_884,
DepthTest = 2_929,
Dither = 3_024,
PolygonOffsetFill = 32_823,
SampleAlphaToCoverage = 32_926,
SampleCoverage = 32_928,
ScissorTest = 3_089,
StencilTest = 2_960,
RasterizerDiscard = 35_977,
}
Variants§
Blend = 3_042
Passed to enable/disable to turn on/off blending. Can also be used with getParameter to find the current blending method.
CullFace = 2_884
Passed to enable/disable to turn on/off culling. Can also be used with getParameter to find the current culling method.
DepthTest = 2_929
Passed to enable/disable to turn on/off the depth test. Can also be used with getParameter to query the depth test.
Dither = 3_024
Passed to enable/disable to turn on/off dithering. Can also be used with getParameter to find the current dithering method.
PolygonOffsetFill = 32_823
Passed to enable/disable to turn on/off the polygon offset. Useful for rendering hidden-line images, decals, and or solids with highlighted edges. Can also be used with getParameter to query the scissor test.
SampleAlphaToCoverage = 32_926
Passed to enable/disable to turn on/off the alpha to coverage. Used in multi-sampling alpha channels.
SampleCoverage = 32_928
Passed to enable/disable to turn on/off the sample coverage. Used in multi-sampling.
ScissorTest = 3_089
Passed to enable/disable to turn on/off the scissor test. Can also be used with getParameter to query the scissor test.
StencilTest = 2_960
Passed to enable/disable to turn on/off the stencil test. Can also be used with getParameter to query the stencil test.
RasterizerDiscard = 35_977
Passed to enable/disable to turn on/off that primitives are discarded immediately before the rasterization stage, but after the optional transform feedback stage. gl.clear() commands are ignored.
Trait Implementations§
Source§impl FromWasmAbi for Flag
impl FromWasmAbi for Flag
Source§impl IntoWasmAbi for Flag
impl IntoWasmAbi for Flag
Source§impl OptionFromWasmAbi for Flag
impl OptionFromWasmAbi for Flag
Source§impl OptionIntoWasmAbi for Flag
impl OptionIntoWasmAbi for Flag
Source§impl TryFromJsValue for Flag
impl TryFromJsValue for Flag
Source§impl VectorFromWasmAbi for Flag
impl VectorFromWasmAbi for Flag
Source§impl VectorIntoWasmAbi for Flag
impl VectorIntoWasmAbi for Flag
impl Copy for Flag
Auto Trait Implementations§
impl Freeze for Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnwindSafe for Flag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.