Options
All
  • Public
  • Public/Protected
  • All
Menu

A collection of Renderable objects.

Hierarchy

  • ShareableContextConsumer
    • Scene

Implements

Index

Constructors

constructor

Properties

Protected contextManager

contextManager: ContextManager

The ContextManager that will be subscribed to for WebGL rendering context events.

Accessors

gl

  • get gl(): WebGLRenderingContext

Methods

add

addRef

  • addRef(): number

cleanUp

  • cleanUp(): void

contains

contextFree

  • contextFree(): void

contextGain

  • contextGain(): void

contextLost

  • contextLost(): void

Protected destructor

  • destructor(levelUp: number): void
  • Parameters

    • levelUp: number

    Returns void

draw

  • draw(ambients: Facet[]): void

find

findByName

  • findByName(name: string): ShareableArray<Renderable>

findOne

findOneByName

getLoggingName

  • getLoggingName(): string
  • Returns the name that was assigned by the call to the setLoggingName method.

    Returns string

isZombie

  • isZombie(): boolean
  • An object is a zombie if it has been released by all who have held references. In some cases it may be possible to recycle a zombie.

    Returns boolean

release

  • release(): number

remove

render

  • render(ambients: Facet[]): void
  • Traverses the collection of Renderable objects, calling render(ambients) on each one. The rendering takes place in two stages. In the first stage, non-transparent objects are drawn. In the second state, transparent objects are drawn.

    Parameters

    Returns void

Protected resurrector

  • resurrector(levelUp: number): void

Protected setLoggingName

  • setLoggingName(name: string): void
  • This method is for use within constructors.

    Immediately after a call to the super class constructor, make a call to setLoggingName. This will have the effect of refining the name used for reporting reference counts.

    This method has the secondary purpose of enabling a tally of the number of classes in the constructor chain. This enables the runtime architecture to verify that destructor chains are consistent with constructor chains, which is a good practice for cleaning up resources.

    Notice that this method is intentionally protected to discourage it from being called outside of the constructor.

    Parameters

    • name: string

      This will usually be set to the name of the class.

    Returns void

synchUp

  • synchUp(): void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Property
  • Method
  • Protected property
  • Protected method
  • Static property
  • Static method

Generated using TypeDoc