Home Reference Source
public class | source

SceneDisplay

Extends:

EventHandler → SceneDisplay

Direct Subclass:

src/Engine.js~FallbackPortalDisplay, FlatDisplay, src/Engine.js~WebVRDisplay, src/Engine.js~WebXRDisplay

SceneDisplay is an abstract base class used by Engine to render a 3D scene See WebVRDisplay for WebXRDisplay ancestor classes that use different APIs (WebVR and WebXR Device API)

Constructor Summary

Public Constructor
public

constructor(displayMode: string, camera: THREE.Camera, scene: THREE.Scene, tickCallback: function)

Member Summary

Public Members
public get
public get

Method Summary

Public Methods
public

start()

public

stop()

Inherited Summary

From class EventHandler
public get

listeners: EventListener[]: *

public

addListener(callback: function(eventName: string, eventSource: EventHandler), eventName: Object | Symbol, once: bool)

public
public

removeListener(callback: *, eventName: undefined)

public

trigger(eventName: *, params: ...*)

Send an event to listeners

Public Constructors

public constructor(displayMode: string, camera: THREE.Camera, scene: THREE.Scene, tickCallback: function) source

Params:

NameTypeAttributeDescription
displayMode string

one of Engine.DISPLAY_MODES

camera THREE.Camera
scene THREE.Scene
tickCallback function

Public Members

public get blendMode source

public get isStarted source

Public Methods

public start() source

public stop() source