- Source:
Helpers for creating a common 3d application.
Classes
Methods
# (static) create(dom, appNS) → {clay.application.App3D}
- Source:
Create a 3D application that will manage the app initialization and loop.
See more details at clay.application.App3D
Example
clay.application.create('#app', {
init: function (app) {
app.createCube();
var camera = app.createCamera();
camera.position.set(0, 0, 2);
},
loop: function () { // noop }
})
Parameters:
Name | Type | Description |
---|---|---|
dom |
HTMLElement | string | Container dom element or a selector string that can be used in |
appNS |
App3DNamespace | Options and namespace used in creating app3D |