Most visited

Recently visited

Scene.SceneBuilder

public static class Scene.SceneBuilder
extends Object

java.lang.Object
   ↳ com.viro.core.Scene.SceneBuilder<R extends com.viro.core.Scene, B extends com.viro.core.Scene.SceneBuilder<R, B>>
Known Direct Subclasses
ARScene.ARSceneBuilder<R extends ARScene, B extends ARSceneBuilder<R, B>> ARSceneBuilder for building ARScene


SceneBuilder for creating Scene objects.

Summary

Public constructors

Scene.SceneBuilder()

Constructor for SceneBuilder class.

Public methods

SceneBuilder backgroundCubeWithColor(long backgroundCubeWithColor)

Refer to setBackgroundCubeWithColor(long)}.

SceneBuilder backgroundRotation(Vector backgroundRotation)

Refer to setBackgroundRotation(Vector).

SceneBuilder backgroundTexture(Texture backgroundTexture)

Refer to setBackgroundTexture(Texture).

R build()

Returns the built Scene object.

SceneBuilder lightingEnvironment(Texture lightingEnvironment)

Refer to setLightingEnvironment(Texture).

SceneBuilder listener(Scene.VisibilityListener listener)

Refer to setVisibilityListener(VisibilityListener).

SceneBuilder soundRoom(ViroContext viroContext, Vector size, Scene.AudioMaterial wall, Scene.AudioMaterial ceiling, Scene.AudioMaterial floor)

Refer to setSoundRoom(ViroContext, Vector, AudioMaterial, AudioMaterial, AudioMaterial).

Public constructors

Scene.SceneBuilder

Scene.SceneBuilder ()

Constructor for SceneBuilder class.

Public methods

backgroundCubeWithColor

SceneBuilder backgroundCubeWithColor (long backgroundCubeWithColor)

Refer to setBackgroundCubeWithColor(long)}.

Parameters
backgroundCubeWithColor long

Returns
SceneBuilder This builder.

backgroundRotation

SceneBuilder backgroundRotation (Vector backgroundRotation)

Refer to setBackgroundRotation(Vector).

Parameters
backgroundRotation Vector

Returns
SceneBuilder This builder.

backgroundTexture

SceneBuilder backgroundTexture (Texture backgroundTexture)

Refer to setBackgroundTexture(Texture).

Parameters
backgroundTexture Texture

Returns
SceneBuilder This builder.

build

R build ()

Returns the built Scene object.

Returns
R The build Scene.

lightingEnvironment

SceneBuilder lightingEnvironment (Texture lightingEnvironment)

Refer to setLightingEnvironment(Texture).

Parameters
lightingEnvironment Texture

Returns
SceneBuilder This builder.

listener

SceneBuilder listener (Scene.VisibilityListener listener)

Refer to setVisibilityListener(VisibilityListener).

Parameters
listener Scene.VisibilityListener

Returns
SceneBuilder This builder.

soundRoom

SceneBuilder soundRoom (ViroContext viroContext, 
                Vector size, 
                Scene.AudioMaterial wall, 
                Scene.AudioMaterial ceiling, 
                Scene.AudioMaterial floor)

Refer to setSoundRoom(ViroContext, Vector, AudioMaterial, AudioMaterial, AudioMaterial).

Parameters
viroContext ViroContext

size Vector

wall Scene.AudioMaterial

ceiling Scene.AudioMaterial

floor Scene.AudioMaterial

Returns
SceneBuilder This builder.

Hooray!