Hierarchy

  • IRendererContext

Implemented by

Properties

asWebGl: undefined | WebGlRendererContext
asWebGpu: undefined | WebGpuRendererContext
canvas: HTMLCanvasElement
maybeOrigin: undefined | IRendererOrigin
renderer: Renderer
resourceContainer: undefined | IResourceContainer<unknown>
viewport: IVector2

Methods

  • Parameters

    • maxParticles: number
    • positionSizeData: Float32Array
    • colorData: Uint8Array

    Returns IParticleRendererPlatform

  • Parameters

    • id: string
    • Optional depthOffset: number
    • Optional yOffset: number
    • Optional enableAlphaMultiplcation: boolean

    Returns PersistantSpriteBatch

  • Parameters

    • id: string
    • capacity: number
    • Optional depthOffset: number
    • Optional yOffset: number
    • Optional enableAlphaMultiplcation: boolean
    • Optional enforceBeginAndEnd: boolean

    Returns ISpriteBatch

  • Parameters

    • viewportOffsetX: number
    • rendererWidth: number
    • canvasHeight: number
    • Optional post: boolean

    Returns void

  • Parameters

    • timeStamp: number
    • renderersOrder: Set<Renderer>

    Returns void

Generated using TypeDoc