Provides a loader that uses the DVL library to load VDS and VDSL files.
Constructor for a new ContentManager.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.
This class does not have its own settings, but all settings applicable to the base type sap.ui.vk.ContentManager can be used.
new sap.ui.vk.dvl.ContentManager(sId?, mSettings?)
Param | Type | Default Value | Description |
---|---|---|---|
sId? | string | ID for the new ContentManager object. Generated automatically if no ID is given. |
|
mSettings? | object | Initial settings for the new ContentManager object. |
Method | Description |
---|---|
collectGarbage |
Collects and destroys unused objects and resources. |
destroyContent |
Destroys the content. |
sap.ui.vk.dvl.ContentManager.extend |
Creates a new subclass of class sap.ui.vk.dvl.ContentManager with name
|
sap.ui.vk.dvl.ContentManager.getMetadata |
Returns a metadata object for class sap.ui.vk.dvl.ContentManager. |
sap.ui.vk.dvl.ContentManager.getRuntimeSettings |
Gets optional Emscripten runtime module settings. |
sap.ui.vk.dvl.ContentManager.getWebGLContextAttributes |
Gets optional WebGL context attributes. |
loadContent |
Starts downloading and building or updating the content from the content resources. This method is asynchronous. |
sap.ui.vk.dvl.ContentManager.setRuntimeSettings |
Sets optional Emscripten runtime module settings. Emscripten runtime module settings cannot be changed after the Emscripten module is initialized. |
sap.ui.vk.dvl.ContentManager.setWebGLContextAttributes |
Sets optional WebGL context attributes. |
Destroys the content.
Param | Type | DefaultValue | Description |
---|---|---|---|
content | any |
The content to destroy. |
Creates a new subclass of class sap.ui.vk.dvl.ContentManager with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.vk.ContentManager.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Returns a metadata object for class sap.ui.vk.dvl.ContentManager.
Starts downloading and building or updating the content from the content resources.
This method is asynchronous.
Param | Type | DefaultValue | Description |
---|---|---|---|
content | any |
The current content to update. It can be |
|
contentResources | sap.ui.vk.ContentResource[] |
The content resources to load or update. |
Sets optional Emscripten runtime module settings.
Emscripten runtime module settings cannot be changed after the Emscripten module is initialized.
Param | Type | DefaultValue | Description |
---|---|---|---|
settings | object |
A JSON object with the following properties. |
|
totalMemory | int | 536870912 |
The size of Emscripten module memory in bytes, default value: 512 MB. |
logElementId | string |
ID of a textarea DOM element to write the log to. |
|
statusElementId | string |
ID of a DOM element to write the status messages to. |
Sets optional WebGL context attributes.
Param | Type | DefaultValue | Description |
---|---|---|---|
attributes | object |
A JSON object with the following properties. |
|
antialias | boolean | true |
If set to |
alpha | boolean | true |
If set to |
premultipliedAlpha | boolean | false |
If set to |