Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface State

Hierarchy

  • State

Index

Properties

Optional attributes

attributes: object

Related WebGL APIs

  • gl.vertexAttribPointer
  • gl.vertexAttrib
  • gl.getAttribLocation
  • gl.vertexAttibDivisor
  • gl.enableVertexAttribArray, gl.disableVertexAttribArray

Type declaration

Optional blend

Related WebGL APIs

  • gl.blendEquationSeparate
  • gl.blendFuncSeparate
  • gl.blendColor

Optional colorMask

colorMask: [boolean, boolean, boolean, boolean]

Optional count

count: number

Number of vertices to draw.

Optional cull

Optional depth

Related WebGL APIs

  • gl.depthFunc
  • gl.depthMask
  • gl.depthRange

Optional dither

dither: boolean

Optional elements

elements: Elements

Element array buffer. (Default: null)

If elements is specified while primitive, count and offset are not, then these values may be inferred from the state of the element array buffer.

Optional frag

frag: string

Source code of fragment shader

Optional framebuffer

framebuffer: Framebuffer | null

A framebuffer to be used as a target for drawing.

Related WebGL APIs

Optional frontFace

frontFace: FaceWindingType

Optional instances

instances: number

Number of instances to draw. (Default: 0)

Only applicable if the ANGLE_instanced_arrays extension is present.

Optional lineWidth

lineWidth: number

Optional offset

offset: number

Offset of primitives to draw.

Optional polygonOffset

polygonOffset: PolygonOffsetOptions

Related WebGL APIs

  • gl.polygonOffset

Optional primitive

primitive: PrimitiveType

Sets the primitive type.

Optional profile

profile: boolean

If set, turns on profiling for this command. (Default: false)

Optional sample

Optional scissor

Optional stencil

Related WebGL APIs

  • gl.stencilFunc
  • gl.stencilMask
  • gl.stencilOpSeparate

Optional uniforms

uniforms: Props

Related WebGL APIs

  • gl.getUniformLocation
  • gl.uniform

Optional vert

vert: string

Source code of vertex shader

Optional viewport

viewport: ViewportOptions

Generated using TypeDoc