Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Texture2D

Hierarchy

Implements

Index

Constructors

constructor

  • Parameters

    • dataSource: TextureSource | ArrayBufferView
    • Default value options: object = {}
      • Optional dataType?: undefined | number
      • Optional format?: undefined | number
      • Optional height?: undefined | number
      • Optional internalFormat?: undefined | number
      • Optional mipmapLevel?: undefined | number
      • Optional target?: undefined | number
      • Optional width?: undefined | number

    Returns Texture2D

Properties

Protected _dataType

_dataType: number

Protected _flushData

_flushData: Function

Protected _format

_format: number

Protected _glContext

_glContext: WebGL2RenderingContext | null

Protected _glTexture

_glTexture: WebGLTexture | null

Protected Optional _height

_height: undefined | number

Protected _internalFormat

_internalFormat: number

Protected _mipmapLevel

_mipmapLevel: number

Protected _source

_source: TextureSource | ArrayBufferView

Protected _target

_target: number

Protected _textureID

_textureID: number | null

Protected Optional _width

_width: undefined | number

Methods

_flush

  • _flush(): void

Protected _getTextureIdFromNumber

  • _getTextureIdFromNumber(n: number): number

_init

  • _init(context: WebGL2RenderingContext, textureNumber: number): void

activate

  • activate(): void

Generated using TypeDoc