LightingModel.getDirtyAggregateColumns()
Type | function |
Library | wattageTileEngine.LightingModel.* |
Return value | Table |
Keywords | |
See also |
Overview
This function returns a table containing the column component of all dirty tiles. The order of this list matches that of getDirtyAggregateRows(). So the value at the same index from each gives the complete row, column coordinate of a dirty tile.
Syntax
LightingModel.getDirtyAggregateColumns()
Examples
local dirtyRows = lightingModelInstance.getDirtyAggregateRows()
local dirtyCols = lightingModelInstance.getDirtyAggregateColumns()
local dirtyTileCoords = {}
for i=1,#dirtyRows do
local row = dirtyRows[i]
local col = dirtyCols[i]
table.insert(dirtyTileCoords, {row = row, col = col})
end