API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classCompressedTexture
A Texture constructed directly from a compressed payload. Convenience only: a compressed payload is something a plain `Texture` can carry, so anything accepting a `Texture` accepts one of these, and a texture loaded from a container arrives as a plain `Texture` with Texture.compressed set. Code that needs to tell the difference reads that property rather than testing the class.
import { CompressedTexture } from '@codexo/exojs'A Texture constructed directly from a compressed payload.
Convenience only: a compressed payload is something a plain `Texture` can carry, so anything accepting a `Texture` accepts one of these, and a texture loaded from a container arrives as a plain `Texture` with Texture.compressed set. Code that needs to tell the difference reads that property rather than testing the class.
new(__namedParameters: CompressedTextureOptionsConstruction options for CompressedTexture.): CompressedTextureaddDestroyListener(listener: () => void): thisdestroy(): voidremoveDestroyListener(listener: () => void): thissetGenerateMipMap(generateMipMap: boolean): thissetPremultiplyAlpha(premultiplyAlpha: boolean): thissetSize(width: number, height: number): thisupdateSource(): thisfromColor(color: Color32-bit RGBA color value with channel-wise accessors. Red, green, and blue are integers in 0..255; alpha is a float in 0..1. Out-of-range values are saturated o… | string, size: number): TextureA static GPU texture sourced from an image, canvas, or video element. Holds the pixel source, its sampling state (ScaleModes, WrapModes) and its upload state (…destroyed: booleanerror: Error | nullflipY: booleangenerateMipMap: booleanheight: numberloaded: Promise<this>powerOfTwo: booleanpremultiplyAlpha: booleanready: booleanversion: numberwidth: number