Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Textures

Hierarchy

Index

Properties

animated

animated: boolean = false

count

count: number = 0

dirty

dirty: boolean = false

values

values: StringMap<Texture> = new StringMap<T>()

Methods

clean

  • clean(): void

createOrUpdate

  • createOrUpdate(gl: WebGLRenderingContext | WebGL2RenderingContext, key: string, urlElementOrData: string | HTMLCanvasElement | HTMLImageElement | HTMLVideoElement | Element | ITextureData, index?: number, options?: ITextureOptions, workpath: string): Promise<Texture>
  • Parameters

    • gl: WebGLRenderingContext | WebGL2RenderingContext
    • key: string
    • urlElementOrData: string | HTMLCanvasElement | HTMLImageElement | HTMLVideoElement | Element | ITextureData
    • Default value index: number = 0
    • Default value options: ITextureOptions = {}
    • workpath: string

    Returns Promise<Texture>

forEach

  • forEach(callbackfn: Function): void

get

has

  • has(key: string): boolean

reduce

  • reduce(callbackfn: Function, initialValue?: any): any

set

  • set(key: string, item: Texture): void