Home Reference Source
public class | source

GLTF2Exporter

This is the exporter class of glTF2 file format. You can see more detail of glTF2 format at https://github.com/KhronosGroup/glTF .

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 GLTF2Exporter class.

Method Summary

Public Methods
public

export(glmData: *, options: *)

Static Public Members

public static [singleton]: * source

Static Public Methods

public static getInstance(): GLTF2Exporter source

The static method to get singleton instance of this class.

Return:

GLTF2Exporter

The singleton instance of GLTFLoader class

Public Constructors

public constructor(enforcer: Symbol) source

The constructor of GLTF2Exporter 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 export(glmData: *, options: *) source

Params:

NameTypeAttributeDescription
glmData *
options *