Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

AUTO_GENERATE

AUTO_GENERATE: number = 0

QUICK_GENERATE

QUICK_GENERATE: number = 1

Private _height

_height: number = -1

Private _image

_image: HTMLImageElement = new Image()

Private _mipmap

_mipmap: Array<HTMLImageElement | HTMLCanvasElement> = []

Private _mipmapGenerationMethod

_mipmapGenerationMethod: number = -1

Private _onTextureLoadedHandlers

_onTextureLoadedHandlers: Array<Function> = []

Private _width

_width: number = -1

alpha

alpha: boolean = false

color

color: Uint8Array = new Uint8Array([229, 91, 91, 255])

engine

engine: Engine

loaded

loaded: boolean = false

mipmapFilter

mipmapFilter: string = "LINEAR"

textureBlockLocation

textureBlockLocation: number = -1

webglTexture

webglTexture: any

Accessors

height

  • get height(): number
  • set height(v: number): void

image

  • get image(): HTMLImageElement

width

  • get width(): number
  • set width(v: number): void

Methods

Private _createWebglTexture

  • _createWebglTexture(): void

loadFrom

  • loadFrom(path: string): void

setColor

  • setColor(r: number, g: number, b: number, a: number): void
  • setColor(hexColor: string): void

setMipmapGenerationMethod

  • setMipmapGenerationMethod(method: number): void

setSize

  • setSize(width: number, height: number): void

Generated using TypeDoc