Renderer · function

isCompressedSource

Whether source is a compressed source rather than an image.

Explained in Hello world.

function isCompressedSource(source: unknown): source is CompressedTextureSource
import { isCompressedSource } from '@driftengine/core';

Parameters

ParameterTypeDescription
sourceunknown