CustomRasterSourceTileRenderer

Interface for the direct rendering into the custom raster tiles. The client should implement this interface for the direct rendering into the custom raster tiles. The layers that use the corresponding custom raster source will have the rendered content as the input tile data. All methods of this interface are invoked from the renderer thread.

Functions

Link copied to clipboard
abstract fun contextLost()
Called when the system has destroyed the underlying GL context.
Link copied to clipboard
abstract fun deinitialize()
Destroy any GL state needed by the custom renderer, and deallocate context, if necessary.
Link copied to clipboard
abstract fun initialize()
Initialize any GL state needed by the tile renderer.
Link copied to clipboard
Checks whether the tile should be rendered in the current frame.
Link copied to clipboard
abstract fun prerender(@NonNull parameters: CustomLayerRenderParameters)
This method is called once per frame, before any layer is rendered.
Link copied to clipboard
abstract fun renderToTile(@NonNull tileID: CanonicalTileID)
Orthographic mode render to the tile.