Options
All
  • Public
  • Public/Protected
  • All
Menu

Cube texture.

class

Hierarchy

Index

Constructors

constructor

Properties

Protected _loadedTextureCount

_loadedTextureCount: number = 0

Protected _onTextureLoad

_onTextureLoad: Function[]

alpha

alpha: boolean = false

color

color: Uint8Array = new Uint8Array([229, 91, 91, 255])

engine

engine: Engine

loaded

loaded: boolean = false

textureBlockLocation

textureBlockLocation: number = -1

textures

textures: object

Type declaration

  • negativeX: HTMLImageElement | HTMLCanvasElement | null
  • negativeY: HTMLImageElement | HTMLCanvasElement | null
  • negativeZ: HTMLImageElement | HTMLCanvasElement | null
  • positiveX: HTMLImageElement | HTMLCanvasElement | null
  • positiveY: HTMLImageElement | HTMLCanvasElement | null
  • positiveZ: HTMLImageElement | HTMLCanvasElement | null

Protected webgl

webgl: WebGLRenderingContext

webglTexture

webglTexture: any

Methods

Protected bindCubeTexture

  • bindCubeTexture(): void

setColor

  • setColor(r: number, g: number, b: number, a: number): void
  • setColor(hexColor: string): void

setImagesFromPath

  • setImagesFromPath(positiveX: string, negativeX: string, positiveY: string, negativeY: string, positiveZ: string, negativeZ: string): void
  • Load images from path or url.

    Parameters

    • positiveX: string
    • negativeX: string
    • positiveY: string
    • negativeY: string
    • positiveZ: string
    • negativeZ: string

    Returns void

setLoadedImages

  • setLoadedImages(positiveX: HTMLImageElement | HTMLCanvasElement, negativeX: HTMLImageElement | HTMLCanvasElement, positiveY: HTMLImageElement | HTMLCanvasElement, negativeY: HTMLImageElement | HTMLCanvasElement, positiveZ: HTMLImageElement | HTMLCanvasElement, negativeZ: HTMLImageElement | HTMLCanvasElement): void
  • Sets images that loaded.

    Parameters

    • positiveX: HTMLImageElement | HTMLCanvasElement
    • negativeX: HTMLImageElement | HTMLCanvasElement
    • positiveY: HTMLImageElement | HTMLCanvasElement
    • negativeY: HTMLImageElement | HTMLCanvasElement
    • positiveZ: HTMLImageElement | HTMLCanvasElement
    • negativeZ: HTMLImageElement | HTMLCanvasElement

    Returns void

setLoadingImages

  • setLoadingImages(positiveX: HTMLImageElement, negativeX: HTMLImageElement, positiveY: HTMLImageElement, negativeY: HTMLImageElement, positiveZ: HTMLImageElement, negativeZ: HTMLImageElement): void
  • Sets images that have src, but not loaded.

    Parameters

    • positiveX: HTMLImageElement
    • negativeX: HTMLImageElement
    • positiveY: HTMLImageElement
    • negativeY: HTMLImageElement
    • positiveZ: HTMLImageElement
    • negativeZ: HTMLImageElement

    Returns void

setSkybox

  • setSkybox(path: string): void

Generated using TypeDoc