DrawCommand

DrawCommand

new DrawCommand

Represents a command to the renderer for drawing.

See:

Members

boundingVolume :DOC_TBA

The bounding volume of the geometry.

count :Number

The number of vertices to draw in the vertex array.

executeInClosestFrustum :Boolean

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

framebuffer :Framebuffer

The framebuffer to draw to.

modelMatrix :Matrix4

The transformation from the geometry in model space to world space.

offset :Number

The offset to start drawing in the vertex array.

primitiveType :PrimitiveType

The type of geometry in the vertex array.

renderState :Object

The render state.
See:

shaderProgram :ShaderProgram

The shader program to apply.

uniformMap :Object

An object with functions whose names match the uniforms in the shader program and return values to set those uniforms.

vertexArray :VertexArray

The vertex array.

Methods

execute

Executes the draw command.

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