For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class Texture

A Texture GL related object

Index

Constructors

Properties

context: Context
magFilter: TextureFilter
minFilter: TextureFilter
size: [number, number]
texture: WebGLTexture
useMipmap: boolean

Methods

  • Returns void

  • Builds the mip chain after the texture was drawn into as a framebuffer attachment. An allocation without pixels (data: null) gets no chain from update, so a render target is built once, here, after the draw.

    Returns void

  • Parameters

    • image: TextureImage
    • Optionaloptions: { premultiply?: boolean; useMipmap?: boolean } | null
    • Optionalposition: { x: number; y: number }

    Returns void

Was this helpful?