Camera.setLayerDirty()

   
Type function
Library wattageTileEngine.Camera.*
Return value VOID
Keywords Wattage, Layer, TileLayer, EntityLayer
See also  

Overview

This function sets the layer dirty flag. This flag is used internally by the engine to determine whether the camera’s focus layer has changed since the last rendering.

NOTE: This function is used internally by the engine.

Syntax

Camera.setLayerDirty( dirty )
dirty (required)

boolean. True to indicate that the focus layer has been changed.

Examples

-- tileEngineViewControl is an instance of ViewControl
local camera = tileEngineViewControl.getCamera()
camera.setLayerDirty(true)