pub enum Parameter {
Show 64 variants
BlendEquation = 32_777,
BlendEquationAlpha = 34_877,
BlendDstRgb = 32_968,
BlendSrcRgb = 32_969,
BlendDstAlpha = 32_970,
BlendSrcAlpha = 32_971,
BlendColor = 32_773,
ArrayBufferBinding = 34_964,
ElementArrayBufferBinding = 34_965,
LineWidth = 2_849,
AliasedPointSizeRange = 33_901,
AliasedLineWidthRange = 33_902,
CullFaceMode = 2_885,
FrontFace = 2_886,
DepthRange = 2_928,
DepthWritemask = 2_930,
DepthClearValue = 2_931,
DepthFunc = 2_932,
StencilClearValue = 2_961,
StencilFunc = 2_962,
StencilFail = 2_964,
StencilPassDepthFail = 2_965,
StencilPassDepthPass = 2_966,
StencilRef = 2_967,
StencilValueMask = 2_963,
StencilWritemask = 2_968,
StencilBackFunc = 34_816,
StencilBackFail = 34_817,
StencilBackPassDepthFail = 34_818,
StencilBackPassDepthPass = 34_819,
StencilBackRef = 36_003,
StencilBackValueMask = 36_004,
StencilBackWritemask = 36_005,
Viewport = 2_978,
ScissorBox = 3_088,
ColorClearValue = 3_106,
ColorWritemask = 3_107,
UnpackAlignment = 3_317,
PackAlignment = 3_333,
MaxTextureSize = 3_379,
MaxViewportDims = 3_386,
SubpixelBits = 3_408,
RedBits = 3_410,
GreenBits = 3_411,
BlueBits = 3_412,
AlphaBits = 3_413,
DepthBits = 3_414,
StencilBits = 3_415,
PolygonOffsetUnits = 10_752,
PolygonOffsetFactor = 32_824,
TextureBinding2d = 32_873,
SampleBuffers = 32_936,
Samples = 32_937,
SampleCoverageValue = 32_938,
SampleCoverageInvert = 32_939,
CompressedTextureFormats = 34_467,
Vendor = 7_936,
Renderer = 7_937,
Version = 7_938,
ImplementationColorReadType = 35_738,
ImplementationColorReadFormat = 35_739,
BrowserDefaultWebgl = 37_444,
TextureBindingCubeMap = 34_068,
MaxCubeMapTextureSize = 34_076,
}
Expand description
Constants passed to WebGLRenderingContext.getParameter() to specify what information to return.
Variants§
BlendEquation = 32_777
Passed to getParameter to get the current RGB blend function. same as BlendEquationRgb
BlendEquationAlpha = 34_877
Passed to getParameter to get the current alpha blend function. Same as BLEND_EQUATION
BlendDstRgb = 32_968
Passed to getParameter to get the current destination RGB blend function.
BlendSrcRgb = 32_969
Passed to getParameter to get the current destination RGB blend function.
BlendDstAlpha = 32_970
Passed to getParameter to get the current destination alpha blend function.
BlendSrcAlpha = 32_971
Passed to getParameter to get the current source alpha blend function.
BlendColor = 32_773
Passed to getParameter to return a the current blend color.
ArrayBufferBinding = 34_964
Passed to getParameter to get the array buffer binding.
ElementArrayBufferBinding = 34_965
Passed to getParameter to get the current element array buffer.
LineWidth = 2_849
Passed to getParameter to get the current lineWidth (set by the lineWidth method).
AliasedPointSizeRange = 33_901
Passed to getParameter to get the current size of a point drawn with gl.POINTS
AliasedLineWidthRange = 33_902
Passed to getParameter to get the range of available widths for a line. Returns a length-2 array with the lo value at 0, and hight at 1.
CullFaceMode = 2_885
Passed to getParameter to get the current value of cullFace. Should return FRONT, BACK, or FRONT_AND_BACK
FrontFace = 2_886
Passed to getParameter to determine the current value of frontFace. Should return CW or CCW.
DepthRange = 2_928
Passed to getParameter to return a length-2 array of floats giving the current depth range.
DepthWritemask = 2_930
Passed to getParameter to determine if the depth write mask is enabled.
DepthClearValue = 2_931
Passed to getParameter to determine the current depth clear value.
DepthFunc = 2_932
Passed to getParameter to get the current depth function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL.
StencilClearValue = 2_961
Passed to getParameter to get the value the stencil will be cleared to.
StencilFunc = 2_962
Passed to getParameter to get the current stencil function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL.
StencilFail = 2_964
Passed to getParameter to get the current stencil fail function. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP.
StencilPassDepthFail = 2_965
Passed to getParameter to get the current stencil fail function should the depth buffer test fail. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP.
StencilPassDepthPass = 2_966
Passed to getParameter to get the current stencil fail function should the depth buffer test pass. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP.
StencilRef = 2_967
Passed to getParameter to get the reference value used for stencil tests.
StencilValueMask = 2_963
StencilWritemask = 2_968
StencilBackFunc = 34_816
StencilBackFail = 34_817
StencilBackPassDepthFail = 34_818
StencilBackPassDepthPass = 34_819
StencilBackRef = 36_003
StencilBackValueMask = 36_004
StencilBackWritemask = 36_005
Viewport = 2_978
Returns an Int32Array with four elements for the current viewport dimensions.
ScissorBox = 3_088
Returns an Int32Array with four elements for the current scissor box dimensions.