sparkengineweb
    Preparing search index...

    Class Renderer

    The renderer is responsible for collecting renderCommands and execute them in the right order based on the information they carry on.

    Furthermore it also abstracts away the complexity of how the gfx device work under the hood from the renderSystem

    Index

    Constructors

    • Parameters

      • device: CanvasDevice
      • resolution: { height: number; width: number }

        The default resolution to use during rendering

      • ctx: CanvasRenderingContext2D

      Returns Renderer

    Properties

    device: CanvasDevice
    resolution: { height: number; width: number }

    The default resolution to use during rendering

    Accessors

    • set defaultWireframeThickness(value: number): void

      The default thickness of wireframes lines

      Parameters

      • value: number

      Returns void

    Methods