GlesTextureComplication
Kotlin
|Java
class GlesTextureComplication
kotlin.Any | |
↳ | androidx.wear.watchface.GlesTextureComplication |
Helper for rendering a CanvasComplication to a GLES20 texture. To use call renderToTexture and then bind before drawing.
Summary
Public constructors | |
---|---|
<init>(canvasComplication: CanvasComplication, @Px textureWidth: Int, @Px textureHeight: Int, textureType: Int) Helper for rendering a CanvasComplication to a GLES20 texture. |
Public methods | |
---|---|
Unit |
bind() Bind the texture to the active texture target. |
Unit |
renderToTexture(calendar: Calendar, renderParameters: RenderParameters) Renders canvasComplication to an OpenGL texture. |
Properties | |
---|---|
CanvasComplication |
The CanvasComplication to render to texture. |
Public constructors
<init>
GlesTextureComplication(
canvasComplication: CanvasComplication,
@Px textureWidth: Int,
@Px textureHeight: Int,
textureType: Int)
Helper for rendering a CanvasComplication to a GLES20 texture. To use call renderToTexture and then bind before drawing.
Public methods
renderToTexture
fun renderToTexture(
calendar: Calendar,
renderParameters: RenderParameters
): Unit
Renders canvasComplication to an OpenGL texture.
Properties
canvasComplication
val canvasComplication: CanvasComplication
The CanvasComplication to render to texture.