CLASSES
TagsA - Z

Database

Database

Description

class Database

Constructor

new Database(urlToScene, callbackManifestChecked)

Create a new Database An explanation about how BabylonJs index all its resources can be found here

Parameters

Name Type Description
urlToScene string The Url to store the scene
callbackManifestChecked (checked: boolean) => any The function to execute depending of whether the manifest has been found or not

Members

static IsUASupportingBlobStorage : boolean

static IDBStorageEnabled : boolean

static parseURL : string) => string

Returns an absolute url using the given string

@param url The url to parse

static ReturnFullUrlLocation : string) => string

Returns the full location string

@param url The url location to complete

Methods

checkManifestFile() void

Checks the manifest file

openAsync(successCallback, errorCallback) void

Tries to use the offline data if the manifest indicates so

Parameters

Name Type Description
successCallback any Function to execute when data is successfuly loaded
errorCallback any Function to execute if data could not be loaded

loadImageFromDB(url, image) void

Parameters

Name Type Description
url string The relative url of the image
image HTMLImageElement The element to put the image into