GlesTextureComplication


class GlesTextureComplication


Helper for rendering a ComplicationSlot to a GLES20 texture. To use call renderToTexture and then bind before drawing.

use Watch Face Format instead

Summary

Public constructors

GlesTextureComplication(
    complicationSlot: ComplicationSlot,
    textureWidth: @Px Int,
    textureHeight: @Px Int,
    textureType: Int
)

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public functions

Unit

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Unit
renderToTexture(
    zonedDateTime: ZonedDateTime,
    renderParameters: RenderParameters
)

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public properties

ComplicationSlot

This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public constructors

GlesTextureComplication

Added in 1.0.0
Deprecated in 1.3.0-alpha06
GlesTextureComplication(
    complicationSlot: ComplicationSlot,
    textureWidth: @Px Int,
    textureHeight: @Px Int,
    textureType: Int
)
Parameters
complicationSlot: ComplicationSlot

The ComplicationSlot to render to texture.

textureWidth: @Px Int

The width of the texture in pixels to create.

textureHeight: @Px Int

The height of the texture in pixels to create.

textureType: Int

The texture type, e.g. GLES20.GL_TEXTURE_2D.

Public functions

bind

Added in 1.0.0
Deprecated in 1.3.0-alpha06
fun bind(): Unit

Bind the texture to the active texture target.

renderToTexture

Added in 1.0.0
Deprecated in 1.3.0-alpha06
fun renderToTexture(
    zonedDateTime: ZonedDateTime,
    renderParameters: RenderParameters
): Unit

Renders complicationSlot to an OpenGL texture.

Public properties

complicationSlot

Added in 1.0.0
Deprecated in 1.3.0-alpha06
val complicationSlotComplicationSlot

The ComplicationSlot to render to texture.