API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTextureFactory
AssetFactory implementation that loads PNG, JPG, WebP, AVIF, and other browser-supported raster image formats and produces a GPU-ready Texture instance. MIME type detection is performed automatically from the buffer's magic bytes; pass an explicit `mimeType` to override. Sampler state (wrap, filter, etc.) can be configured via `samplerOptions`.
import { TextureFactory } from '@codexo/exojs' AssetFactory implementation that loads PNG, JPG, WebP, AVIF, and other browser-supported raster image formats and produces a GPU-ready Texture instance.
MIME type detection is performed automatically from the buffer's magic bytes; pass an explicit `mimeType` to override. Sampler state (wrap, filter, etc.) can be configured via `samplerOptions`.
new(): TextureFactory create(source: ArrayBuffer, options: TextureFactoryOptions): Promise<Texture> createObjectUrl(blob: Blob): string destroy(): void process(response: Response): Promise<ArrayBuffer> revokeObjectUrl(objectUrl: string): void storageName: "texture"