initialize

abstract fun initialize()

Initialize any GL state needed by the custom layer. This method is called once, from the main thread, at a point when the GL context is active but before rendering for the first time. Resources that are acquired in this method must be released in the `deinitialize` function.