Skip to main content

ParticleRenderer

Interface that defines an Excalibur Renderer that can be called with .draw() in the ExcaliburGraphicsContext

Implements

Index

Constructors

constructor

Properties

publicpriority

priority: number = 0

Render priority tie breaker when drawings are at the same z index

Lower number means higher priority and is drawn first. Higher number means lower priority and is drawn last.

publicreadonlytype

type: ex.particle = ...

Unique type name for this renderer plugin

Methods

dispose

  • dispose(): void
  • Clear out any allocated memory


    Returns void

draw

  • Issue a draw command to draw something to the screen


    Parameters

    Returns void

flush

  • flush(): void
  • Flush any pending graphics draws to the screen


    Returns void

hasPendingDraws

  • hasPendingDraws(): boolean

  • Returns boolean

    if there are any pending draws in the renderer

initialize

  • Initialize your renderer


    Parameters

    Returns void