init
Initializes the OpenGLRenderer
This is equivalent to calling .init without providing any shader overrides. Default shaders will be used for the dynamic range specified.
fun init(dynamicRange: DynamicRangeProfile, shaderOverrides: Map<GLUtils.InputFormat?, ShaderProvider?>): GraphicDeviceInfo
Initializes the OpenGLRenderer
Initialization must be done before calling other methods, otherwise an IllegalStateException will be thrown. Following methods must run on the same thread as this method, so called GL thread, otherwise an IllegalStateException will be thrown.
Return
Info about the initialized graphics device.
Parameters
dynamicRange
the dynamic range used to select default shaders.
shaderOverrides
specific shader overrides for fragment shaders per InputFormat.
Throws
if the renderer is already initialized or failed to be initialized.
if the ShaderProvider fails to create shader or provides invalid shader string.