Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Private #targets

#targets: number[] = ...

Protected anisotropyExtension

anisotropyExtension: EXT_texture_filter_anisotropic

Protected format

format: number

Protected gl

gl: WebGLRenderingContext

Protected height

height: number

Protected internalFormat

internalFormat: number

Protected target

target: number

Protected texture

texture: null | WebGLTexture

Protected type

type: number

Protected width

width: number

Methods

addSides

  • addSides(sidesImages: (HTMLImageElement | HTMLCanvasElement)[]): CubeTexture

bind

delete

  • delete(): void

fromData

  • fromData(dataArray: any, width: number, height: number): CubeTexture

fromImage

  • fromImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, width?: number, height?: number): CubeTexture

fromSize

generateMipmap

getTexture

  • getTexture(): null | WebGLTexture

setAnisotropy

setFormat

  • setFormat(format?: number, internalFormat?: number, type?: number): CubeTexture

setIsFlip

setMagFilter

setMinFilter

setPixelStore

  • setPixelStore(name: number, params: number): CubeTexture

setWrap

unbind

Static isPowerOf2

  • isPowerOf2(width: number, height: number): boolean

Generated using TypeDoc