Class WebGLRendererModule

EntityBase.

Hierarchy (view full)

Implements

Constructors

Properties

_app?: App
_commonUniforms: {
    iChannelTime: Uniform<[number, number, number, number]>;
    iDate: Uniform<Vector4>;
    iFrame: Uniform<number>;
    iGlobalTime: Uniform<number>;
    iMouse: Uniform<Vector4>;
    iResolution: Uniform<Vector3>;
    iSampleRate: Uniform<number>;
    iTime: Uniform<number>;
    iTimeDelta: Uniform<number>;
    resolution: Uniform<Vector2>;
    time: Uniform<Vector4>;
}

Type declaration

  • iChannelTime: Uniform<[number, number, number, number]>
  • iDate: Uniform<Vector4>
  • iFrame: Uniform<number>
  • iGlobalTime: Uniform<number>
  • iMouse: Uniform<Vector4>
  • iResolution: Uniform<Vector3>
  • iSampleRate: Uniform<number>
  • iTime: Uniform<number>
  • iTimeDelta: Uniform<number>
  • resolution: Uniform<Vector2>
  • time: Uniform<Vector4>
_destroyed: boolean = false
appRenderIndex: number = 0
data: ShallowReactive<{
    [key: string]: any;
}> = ...

Type declaration

  • [key: string]: any
extData: {
    [key: string]: any;
} = {}

Type declaration

  • [key: string]: any
instanceId: number = ++AppObject._instanceIdCounter
onSetApp: Signal = ...
moduleName: string = "WebGLRendererModule"

Accessors

  • get app(): App
  • Returns App

  • set app(value): void
  • Parameters

    Returns void

  • get commonUniforms(): {
        iChannelTime: Uniform<[number, number, number, number]>;
        iDate: Uniform<Vector4>;
        iFrame: Uniform<number>;
        iGlobalTime: Uniform<number>;
        iMouse: Uniform<Vector4>;
        iResolution: Uniform<Vector3>;
        iSampleRate: Uniform<number>;
        iTime: Uniform<number>;
        iTimeDelta: Uniform<number>;
        resolution: Uniform<Vector2>;
        time: Uniform<Vector4>;
    }
  • Returns {
        iChannelTime: Uniform<[number, number, number, number]>;
        iDate: Uniform<Vector4>;
        iFrame: Uniform<number>;
        iGlobalTime: Uniform<number>;
        iMouse: Uniform<Vector4>;
        iResolution: Uniform<Vector3>;
        iSampleRate: Uniform<number>;
        iTime: Uniform<number>;
        iTimeDelta: Uniform<number>;
        resolution: Uniform<Vector2>;
        time: Uniform<Vector4>;
    }

    • iChannelTime: Uniform<[number, number, number, number]>
    • iDate: Uniform<Vector4>
    • iFrame: Uniform<number>
    • iGlobalTime: Uniform<number>
    • iMouse: Uniform<Vector4>
    • iResolution: Uniform<Vector3>
    • iSampleRate: Uniform<number>
    • iTime: Uniform<number>
    • iTimeDelta: Uniform<number>
    • resolution: Uniform<Vector2>
    • time: Uniform<Vector4>
  • get destroyed(): boolean
  • Whether it has been destroyed.

    Returns boolean

  • get enabled(): boolean
  • Indicates whether the component is enabled.

    Returns boolean

  • set enabled(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isMapMode(): boolean
  • Returns boolean

  • get renderer(): any
  • Returns any

Methods

  • Parameters

    • toClassInst: any
    • Optional methodNames: string[]
    • Optional addMethods: string[]
    • Optional filterName: string[]

    Returns void

  • 触发指定事件名称.

    Parameters

    • event: string

      Event name

    • Rest ...data: any

      Data

    Returns boolean

    • Whether the dispatching is successful
  • 返回注册的所有事件名.

    Returns string[]

    所有事件名

  • Parameters

    Returns Promise<unknown>

  • 确定是否存在事件侦听

    Parameters

    • event: string

      事件名

    Returns boolean

    返回是否存在相应的事件

  • 返回具有指定事件名称的侦听总数.

    Parameters

    • event: string

      Event name

    Returns number

    The count of listeners

  • 通过事件名移除所有监听.

    Parameters

    • Optional event: string

      Event name, delete all events if not passed

    Returns void