Class PAGSurface

Hierarchy

  • PAGSurface

Methods

  • Make a PAGSurface from texture.

    Parameters

    • textureID: number
    • width: number
    • height: number
    • flipY: boolean

    Returns PAGSurface

  • Make a PAGSurface from frameBuffer.

    Parameters

    • frameBufferID: number
    • width: number
    • height: number
    • flipY: boolean

    Returns PAGSurface

  • Update the size of surface, and reset the internal surface.

    Returns void

  • Erases all pixels of this surface with transparent color. Returns true if the content has changed.

    Returns boolean

  • Free the cache created by the surface immediately. Can be called to reduce memory pressure.

    Returns void

  • Copies pixels from current PAGSurface to dstPixels with specified color type, alpha type and row bytes. Returns true if pixels are copied to dstPixels.

    Parameters

    Returns null | Uint8Array

Constructors

Properties

wasmIns: any
isDestroyed: boolean = false

Generated using TypeDoc