Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Texture

Hierarchy

  • Texture

Index

Constructors

constructor

Properties

gl

gl: null | WebGLRenderingContext = null

image

magFilter

magFilter: number = Filter.NEAREST

minFilter

minFilter: number = Filter.NEAREST

texture

texture: null | WebGLTexture = null

textureIndex

textureIndex: number = 0

wrapS

wrapS: number = Wrapping.CLAMP_TO_EDGE

wrapT

wrapT: number = Wrapping.CLAMP_TO_EDGE

Methods

dispose

  • dispose(): void

update

upload

  • upload(gl: WebGLRenderingContext, textureIndex?: number): Texture

Static fromImageUrl

  • fromImageUrl(url: string, options?: TextureOptions): Promise<Texture>

Generated using TypeDoc