Constructor
new SurfaceTileRenderer()
Constructs a new surface tile renderer.
- Source:
Methods
renderTiles(dc, surfaceTiles, opacity, tilesHaveOpacity)
Render a specified collection of surface tiles.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The current draw context. |
surfaceTiles |
Array.<SurfaceTile> | The surface tiles to render. |
opacity |
Number | The opacity at which to draw the surface tiles. |
tilesHaveOpacity |
Boolean | If true, incoming tiles each have their own opacity property and it's value is applied when the tile is drawn. |
- Source:
Throws:
-
If the specified surface tiles array is null or undefined.
- Type
- ArgumentError