OptionalbindingsOptionalbindings.activeThe active texture unit.
Optionalbindings.arrayThe vertex array buffer to bind.
Optionalbindings.elementThe index array buffer to bind.
Optionalbindings.framebufferThe framebuffer to bind.
Optionalbindings.programThe program to bind.
Optionalbindings.renderbufferThe renderbuffer to bind.
OptionalblendThe blend parameters to set.
OptionalcolorThe color to clear the color buffer to. 4 elements, RGBA.
OptionalcolorThe color writemask to set. 4 elements, RGBA.
OptionalcullWhether to enable culling.
OptionaldepthWhether to enable depth testing.
OptionalscissorScissor parameters to set.
Optionalscissor.boxThe scissor rectangle to set. 4 elements, XYWH. Note that these are stored in WebGL format, bottom-up, so the Y coordinate is inverted to screen space.
Optionalscissor.enableWhether to enable scissoring.
OptionalstencilThe stencil parameters to set.
OptionaltexturingTexture settings to set. These take effect when creating a texture.
Optionaltexturing.flipShould the texture be flipped on the Y axis?
Optionaltexturing.premultiplyShould the texture be pre-multiplied alpha?
OptionalvaoVertex Array Object to bind. This controls the vertex attribute state.
OptionalviewportThe viewport to set. 4 elements, XYWH.
Resources to be bound.