API

Function disposeSurface

  • Remove and unconfigure an auxiliary surface from its engine. Rendering contexts registered on this surface are dropped from its list but not disposed — call their own disposers (e.g. disposeScene) separately.

    Throws if called on the engine's primary surface (surface === engine); use disposeEngine to tear down the engine and all its surfaces.

    Parameters

    Returns void