Options
All
  • Public
  • Public/Protected
  • All
Menu

SceneGraph that represents our Scene.

Hierarchy

  • SceneGraph

Index

Constructors

constructor

  • Parameters

    • Default value root: RootNode = new RootNode()
    • Default value camera: Camera = new Camera()
    • Default value phong: PhongSettings = new PhongSettings()

    Returns SceneGraph

Properties

camera

camera: Camera

FreeFlightCamera always in the Scenegraph.

phong

Settings for the PhongLightingModel

root

root: RootNode

RootNode of the SceneGraph.

Methods

updateAnimations

  • updateAnimations(delta: number): void
  • Updates all animations.

    Parameters

    • delta: number

      Timedelta since the last frame.

    Returns void

Static Private addChild

  • HelperMethod for import.

    Parameters

    • node: INode

      Node to add the Child to.

    • child: INode

      Child to add.

    Returns void

Static Private cameraNode

  • cameraNode(o: INode): o is CameraNode
  • Custom Typecheck to determine the right node to add.

    Parameters

    • o: INode

      Node to Check.

    Returns o is CameraNode

Static clone

  • Recreates a SceneGraph from data used for import.

    Parameters

    Returns SceneGraph

Static Private geoNode

  • geoNode(o: INode): o is GeometryNode
  • Custom Typecheck to determine the right node to add.

    Parameters

    • o: INode

      Node to Check.

    Returns o is GeometryNode

Static Private lightNode

  • lightNode(o: INode): o is LightNode
  • Custom Typecheck to determine the right node to add.

    Parameters

    • o: INode

      Node to Check.

    Returns o is LightNode

Generated using TypeDoc