Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Texture

Implements

Index

Constructors

  • new Texture(name: string, width?: number, height?: number): Texture

Properties

_handle: WebGLTexture
_height: number
_isLoaded: boolean = false
_name: string
_width: number
BOARDER: number = 0
LEVEL: number = 0
TEMP_IMAGE_DATA: Uint8Array = ...

Accessors

  • get height(): number
  • get isLoaded(): boolean
  • get name(): string
  • get width(): number

Methods

  • activateAndBind(textureUnit?: number): void
  • Activates and binds the texture to the GLBuffer.

    Parameters

    • textureUnit: number = 0

    Returns void

    void

  • bind(): void
  • destroy(): void
  • isPowerOf2(): boolean
  • Gets if the texture's width and height is a power of two.

    Returns boolean

    boolean

  • isValuePowreOf2(value: number): boolean
  • Gets the value if it's a power of two.

    Parameters

    • value: number

    Returns boolean

    boolean

  • unbind(): void

Generated using TypeDoc