DrawCommand

DrawCommand

new

Represents a command to the renderer for drawing.

See:
Source:

Members

:DOC_TBA

The bounding volume of the geometry.
Default Value:
  • undefined

:Number

The number of vertices to draw in the vertex array.
Default Value:
  • undefined

:Boolean

When true, the renderer frustum and horizon culls the command based on its DrawCommand#boundingVolume. If the command was already culled, set this to false for a performance improvement.
Default Value:
  • true

:Boolean

Specifies if this command is only to be executed in the frustum closest to the eye containing the bounding volume. Defaults to false.
Default Value:
  • false

:Framebuffer

The framebuffer to draw to.
Default Value:
  • undefined

:Matrix4

The transformation from the geometry in model space to world space.
Default Value:
  • undefined

:Number

The offset to start drawing in the vertex array.
Default Value:
  • undefined

:PrimitiveType

The type of geometry in the vertex array.
Default Value:
  • undefined

:Object

The render state.
Default Value:
  • undefined
See:

:ShaderProgram

The shader program to apply.
Default Value:
  • undefined

:Object

An object with functions whose names match the uniforms in the shader program and return values to set those uniforms.
Default Value:
  • undefined

:VertexArray

The vertex array.
Default Value:
  • undefined

Methods

Executes the draw command.

Parameters:
Name Type Argument Description
context Context The renderer context in which to draw.
passState PassState <optional>
TBA.