Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Texture

Hierarchy

  • Texture

Index

Constructors

constructor

Methods

create

  • create(x: number, y: number): void

getSize

loadFromFile

  • loadFromFile(filename: string, area?: IntRect): Promise<void>

loadFromFileSync

  • loadFromFileSync(filename: string, area?: IntRect): boolean

loadFromMemory

  • loadFromMemory(buff: Buffer, area?: IntRect): boolean

setSmooth

  • setSmooth(smooth?: boolean): void

update

  • update(texture: Texture): void
  • update(texture: Texture, x: number, y: number): void
  • update(image: Image): void
  • update(image: Image, x: number, y: number): void
  • update(buffer: Buffer, width?: number, height?: number, x?: number, y?: number): void

Generated using TypeDoc