Function init

  • Initialize the graphics context

    Parameters

    • rendererType: RendererType

      The type of renderer to use

    • pixelatedRenderingEnabled: boolean = false

      True if images will be scaled with nearest neighbor rather than attempting to smooth

    • textureSize: number = 0

      A hint to the max texture size to use. This is useful when you want to reduce the graphics memory requirements.

    • texturePadding: number = 2

    Returns void

    The created renderer

    See

    RendererType

Generated using TypeDoc