Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MacroRegistory

Manage macros which would be appended head of all shaders grimoire.js would load.

Hierarchy

  • MacroRegistory

Index

Constructors

Methods

Constructors

constructor

Methods

getValue

  • getValue(key: string): string

setValue

  • setValue(key: string, val?: string): void

unwatch

  • unwatch(macroName: string, handler: function): boolean
  • Parameters

    • macroName: string
    • handler: function
        • (value: string, isImmediateCall: boolean): void
        • Parameters

          • value: string
          • isImmediateCall: boolean

          Returns void

    Returns boolean

watch

  • watch(macroName: string, handler: function, immediate?: boolean): void
  • Parameters

    • macroName: string
    • handler: function
        • (value: string, isImmediateCall: boolean): void
        • Parameters

          • value: string
          • isImmediateCall: boolean

          Returns void

    • Default value immediate: boolean = false

    Returns void

Generated using TypeDoc