init

fun init(sharedContext: EglBase.Context?, rendererEvents: RendererCommon.RendererEvents?, configAttributes: IntArray? = EglBase.CONFIG_PLAIN, drawer: RendererCommon.GlDrawer? = GlRectDrawer())

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.