Skip to content

API / geotoolkit3d / data / loader / GLTFLoader / GLTFLoader

Class: GLTFLoader

loader.GLTFLoader.GLTFLoader

glTF loader class.<br> Support glTF 2.0 format. See https://github.com/KhronosGroup/glTF for specification. For a quick overview of the format, see https://github.com/KhronosGroup/glTF/blob/main/specification/2.0/figures/gltfOverview-2.0.0b.png

Deprecated

since 4.1, please use https://github.com/mrdoob/three.js/blob/dev/examples/jsm/loaders/GLTFLoader.js instead.

Hierarchy

Table of contents

Constructors
  • [new GLTFLoader()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.loader.gltfloader.gltfloader.md#new gltfloader())
Methods

Contents

Constructors

new GLTFLoader()

• new GLTFLoader()

Overrides

AbstractLoader&lt;GLTFLoader.ParseResult&amp;gt;.constructor

Methods

getClassName

▸ getClassName(): string

Returns

string

Inherited from

AbstractLoader.getClassName


load

▸ load(url, params?): void

Load the given glTF data url

Parameters

Name Type Description
urlstringthe URL to the glTF object.
Optional paramsLoadOptions<ParseResult&gt;options object with the callback to handle successful loading

Returns

void

Overrides

AbstractLoader.load


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AbstractLoader.getClassName