Home Reference Source
import GLBoostGLTFLoaderExtension from 'glboost/src/middle_level/loader/GLBoostGLTFLoaderExtension.js'
public class | source

GLBoostGLTFLoaderExtension

This is a loader class of glTF VRize extension Data.

Static Member Summary

Static Public Members
public static

Static Method Summary

Static Public Methods
public static

The static method to get singleton instance of this class.

Constructor Summary

Public Constructor
public

constructor(enforcer: Symbol)

The constructor of ObjLoader class.

Method Summary

Public Methods
public

loadExtensionInfoAndSetToRootGroup(rootGroup: *, json: *, glBoostContext: *)

public

setAssetPropertiesToRootGroup(rootGroup: *, asset: *)

public

setUVTransformToTexture(texture: *, samplerJson: *)

Static Public Members

public static [singleton]: * source

Static Public Methods

public static getInstance(): ObjLoader source

The static method to get singleton instance of this class.

Return:

ObjLoader

the singleton instance of ObjLoader class

Public Constructors

public constructor(enforcer: Symbol) source

The constructor of ObjLoader class. But you cannot use this constructor directly because of this class is a singleton class. Use getInstance() static method.

Params:

NameTypeAttributeDescription
enforcer Symbol

a Symbol to forbid calling this constructor directly

Public Methods

public loadExtensionInfoAndSetToRootGroup(rootGroup: *, json: *, glBoostContext: *) source

Params:

NameTypeAttributeDescription
rootGroup *
json *
glBoostContext *

public setAssetPropertiesToRootGroup(rootGroup: *, asset: *) source

Params:

NameTypeAttributeDescription
rootGroup *
asset *

public setUVTransformToTexture(texture: *, samplerJson: *) source

Params:

NameTypeAttributeDescription
texture *
samplerJson *