Google is committed to advancing racial equity for Black communities. See how.

GlesTextureComplication

class GlesTextureComplication
kotlin.Any
   ↳ androidx.wear.watchface.GlesTextureComplication

Helper for rendering a complication to a GLES20 texture.

Summary

Public constructors
<init>(canvasComplication: CanvasComplication, @Px textureWidth: Int, @Px textureHeight: Int, textureType: Int)

Helper for rendering a complication to a GLES20 texture.

Public methods
Unit

Bind the texture to the active texture target.

Unit
renderToTexture(calendar: Calendar, renderParameters: RenderParameters)

Renders the complication 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 complication to a GLES20 texture.

Public methods

bind

fun bind(): Unit

Bind the texture to the active texture target.

renderToTexture

fun renderToTexture(
    calendar: Calendar,
    renderParameters: RenderParameters
): Unit

Renders the complication to an OpenGL texture.

Properties

canvasComplication

val canvasComplication: CanvasComplication

The CanvasComplication to render to texture.