Type Function Library display.* Return value none Revision Release 2024.3703 Keywords wireframe
Sets the draw mode.
display.setDrawMode( key, value )
The key
corresponds to the draw mode. The following mode keys are supported:
"default"
— Sets or reverts to the default draw mode.
"wireframe"
— Turns on wireframe mode. Pass true
to value
to turn this mode on, or false
to restore normal rendering.
"forceRender"
(deprecated) — It is no longer necessary to force Corona to redraw the scene every frame when using certain "wobble"
. Corona can now automatically detect whether a shader that's "forceRender"
key, because when explicitly enabled, it overrides Corona's automatic detection.
-- Turns on wireframe display.setDrawMode( "wireframe", true ) -- Turns off wireframe display.setDrawMode( "wireframe", false )