init

open fun init(sharedContext: EglBase.Context, rendererEvents: RendererCommon.RendererEvents)

Initialize this class, sharing resources with `sharedContext`. It is allowed to call init() to reinitialize the renderer after a previous init()/release() cycle.


open fun init(sharedContext: EglBase.Context, rendererEvents: RendererCommon.RendererEvents, configAttributes: Array<Int>, drawer: RendererCommon.GlDrawer)

Initialize this class, sharing resources with `sharedContext`. The custom `drawer` will be used for drawing frames on the EGLSurface. This class is responsible for calling release() on `drawer`. It is allowed to call init() to reinitialize the renderer after a previous init()/release() cycle.