display.setDrawMode()

Type Function
Library display.*
Return value none
Revision Release 2024.3703
Keywords wireframe

Overview

Sets the draw mode.

Syntax

display.setDrawMode( key, value )
key (required)

String. Specifies the type of draw mode. See Keys below.

Keys

The key corresponds to the draw mode. The following mode keys are supported:

Examples

wireframe
-- Turns on wireframe
display.setDrawMode( "wireframe", true )

-- Turns off wireframe
display.setDrawMode( "wireframe", false )