Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Particle

Hierarchy

  • Particle

Implements

Index

Constructors

constructor

  • new Particle(gl: WebGL2RenderingContext, maxParticles?: number): Particle
  • Parameters

    • gl: WebGL2RenderingContext
    • Default value maxParticles: number = 256

    Returns Particle

Methods

clear

  • clear(): void
  • Returns void

create

  • create(tileX: number, tileY: number, tileZ: number, particle: IRGB): void
  • Parameters

    • tileX: number
    • tileY: number
    • tileZ: number
    • particle: IRGB

    Returns void

createMultiple

  • createMultiple(tileX: number, tileY: number, tileZ: number, particle: IRGB, count: number, intensity?: number, ignoreFieldOfView?: boolean): void
  • Parameters

    • tileX: number
    • tileY: number
    • tileZ: number
    • particle: IRGB
    • count: number
    • Default value intensity: number = 5
    • Default value ignoreFieldOfView: boolean = false

    Returns void

render

  • render(x: number, y: number): boolean
  • Parameters

    • x: number
    • y: number

    Returns boolean

simulate

  • simulate(): void
  • Returns void

Static createShaders

  • createShaders(gl: WebGL2RenderingContext): void
  • Parameters

    • gl: WebGL2RenderingContext

    Returns void

Static linkShaders

  • Returns Promise<void>

Generated using TypeDoc