API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classTextureFactory

@codexo/exojs / resources / stable

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`.

1
props
5
methods
0
events
Import
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`.

Constructors 1
new(): TextureFactory
Methods 5
create(source: ArrayBuffer, options: TextureFactoryOptions): Promise<Texture>
createObjectUrl(blob: Blob): string
destroy(): void
process(response: Response): Promise<ArrayBuffer>
revokeObjectUrl(objectUrl: string): void
Properties 1
storageName: "texture"
Source