GlesRenderer
Kotlin
|Java
abstract class GlesRenderer : Renderer
kotlin.Any | ||
↳ | androidx.wear.watchface.Renderer | |
↳ | androidx.wear.watchface.Renderer.GlesRenderer |
Watch faces that require GLES20 rendering should extend their Renderer from this class.
Summary
Public constructors | |
---|---|
<init>(surfaceHolder: SurfaceHolder, userStyleRepository: UserStyleRepository, watchState: WatchState, @IntRange(0, 10000) interactiveDrawModeUpdateDelayMillis: Long, eglConfigAttribList: IntArray = EGL_CONFIG_ATTRIB_LIST, eglSurfaceAttribList: IntArray = EGL_SURFACE_ATTRIB_LIST) Watch faces that require GLES20 rendering should extend their Renderer from this class. |
Public methods | |
---|---|
open Unit |
Called when the Renderer is destroyed. |
open Unit |
Called when a new GL context is created. |
open Unit |
onGlSurfaceCreated(width: Int, height: Int) Called when a new GL surface is created. |
abstract Unit |
Sub-classes should override this to implement their rendering logic which should respect the current DrawMode. |
Inherited functions | |
---|---|
Inherited properties | |
---|---|
Public constructors
<init>
GlesRenderer(
surfaceHolder: SurfaceHolder,
userStyleRepository: UserStyleRepository,
watchState: WatchState,
@IntRange(0, 10000) interactiveDrawModeUpdateDelayMillis: Long,