rfw2d
    Preparing search index...

    Interface RenderContextLifeCycleHandler

    This interface`s methods are called when the render context gets initialized/uninitialized. This may happen at any point (when the browser loses context of the device/context).

    interface RenderContextLifeCycleHandler {
        initialize(): Promise<void>;
        uninitialize(): Promise<void>;
    }

    Implemented by

    Index

    Methods

    • Initialize any rendering resources associated with this handler. E.g., compile shaders, create textures.

      Returns Promise<void>

      Rendering will only continue when all handler's initialize promises have resolved.

    • Uninitialize any rendering resources associated with this handler. E.g., delete shaders.

      Returns Promise<void>