Classes
Members
conf :AssetManagerConfig
Type:
- Source
renderData :Object.<string, RenderData>
Type:
- Object.<string, RenderData>
- Source
sounds :Object.<string, SoundsConfig>
Type:
- Object.<string, SoundsConfig>
- Source
Methods
createRenderData(idRenderData) → {RenderData}
Return new renderData corresponding to the id passed
Parameters:
Name | Type | Description |
---|---|---|
idRenderData | string | Id of the renderData |
- Source
Returns:
- A clone of the renderData object
- Type:
- RenderData
createSound(idSound, optionsopt) → {Howl}
Create a a new Howl object with the given idSound and options.
Parameters:
Name | Type | Attributes | Default | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
idSound | string | Id of sounds in config | ||||||||
options | object | <optional> | {} | Arguments to create Howl object. Properties
|
- Source
Returns:
- Used to control the sound
- Type:
- Howl
initNativeRenderData()
Build native objects (procedural objects) and stores them in this.renderData
object.
- Source
loadFromConfig(config, parentDivopt) → {Promise}
Load a 3D render data from a config. Then create the LoadingView
process.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
config | AssetManagerConfig | configuration details | ||
parentDiv | HTMLDivElement | <optional> | document.body | where to add the loadingView |
- Source
Returns:
promise processed to load assets
- Type:
- Promise