new RequestAnimationFrame(viewer)
Handle the main loop, choose between a requestAnimationFrame (RAF) or a setTimeout method.
Parameters:
Name | Type | Description |
---|---|---|
viewer |
FORGE.Viewer | FORGE.Viewer reference. |
- Source:
Members
(readonly) running :boolean
Get the running flag of the request animation frame module.
Type:
- boolean
- Source:
Methods
boot()
Boot sequence.
- Source:
destroy()
Destroy sequence.
- Source:
start(owneropt)
Start the RAF.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
owner |
Window | VRDisplay |
<optional> |
request animation frame owner: window (default) or VRDisplay instance |
- Source:
stop()
Stop the RAF.
- Source: