Custom Raster Source Tile Renderer
interface 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
Called when the system has destroyed the underlying GL context.
Link copied to clipboard
Destroy any GL state needed by the custom renderer, and deallocate context, if necessary.
Link copied to clipboard
Initialize any GL state needed by the tile renderer.
Link copied to clipboard
abstract fun isTileRenderable(@NonNull tileID: CanonicalTileID, @NonNull status: CustomRasterSourceTileStatus): Boolean
Checks whether the tile should be rendered in the current frame.
Link copied to clipboard
This method is called once per frame, before any layer is rendered.
Link copied to clipboard
Orthographic mode render to the tile.