Skip to content

@simversus/yjvis


@simversus/yjvis / loaders / LoaderUtils

Class: LoaderUtils

Defined in: loaders/LoaderUtils.ts:6

Constructors

Constructor

new LoaderUtils(): LoaderUtils

Returns

LoaderUtils

Methods

extractUrlBase()

static extractUrlBase(url): string

Defined in: loaders/LoaderUtils.ts:34

Parameters

url

string

Returns

string


loadGLTF()

static loadGLTF<T>(url, onLoad?, onProgress?, onError?): Promise<void>

Defined in: loaders/LoaderUtils.ts:24

Type Parameters

T

T = Texture

Parameters

url

string

onLoad?

Function

onProgress?

Function

onError?

Function

Returns

Promise<void>


loadRGBE()

static loadRGBE<T>(url, onLoad?, onProgress?, onError?): Promise<DataTexture>

Defined in: loaders/LoaderUtils.ts:13

Type Parameters

T

T = Texture

Parameters

url

string

onLoad?

Function

onProgress?

Function

onError?

Function

Returns

Promise<DataTexture>


loadTexture()

static loadTexture<T>(url): Promise<T>

Defined in: loaders/LoaderUtils.ts:7

Type Parameters

T

T = Texture

Parameters

url

string

Returns

Promise<T>


resolveURL()

static resolveURL(url, path): string

Defined in: loaders/LoaderUtils.ts:42

Parameters

url

string

path

string

Returns

string