Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Texture

Hierarchy

  • Texture

Index

Constructors

constructor

Properties

Protected _gl

_gl: WebGLRenderingContext

Private _handle

_handle: WebGLTexture

Private _height

_height: number

Protected _options

_options: TextureOptions

Private _ref

_ref: number

Private _width

_width: number

Static Private _active

_active: number = 0

Static Private _bound

_bound: WebGLTexture[] = []

Static Private _maxUnits

_maxUnits: number = -1

Accessors

format

height

  • get height(): number

webGlTexture

  • get webGlTexture(): WebGLTexture

width

  • get width(): number

Methods

bind

  • bind(unit?: number): number
  • Parameters

    • Optional unit: number

    Returns number

Private createFromData

  • createFromData(data: ArrayBufferView, width?: number, height?: number): void
  • Parameters

    • data: ArrayBufferView
    • Optional width: number
    • Optional height: number

    Returns void

Private createFromImage

setFilter

setWrapping

Static fromFile

Generated using TypeDoc