PixiThree - v0.0.16
    Preparing search index...

    Function RenderContext

    • Context manager for all canvas views, which share GPU resources. Wraps all CanvasView components and contains DOM children.

      Top-level component that initializes the React Pixi Application and React Three Fiber root. Manages shared GPU resources for all canvas views in your application.

      Parameters

      • props: RenderContextProps

        Component props

        • Optionalchildren?: ReactNode
        • OptionaleventSource?: RefObject<HTMLElement | null>

          Optional HTML element to use as event source

        • OptionalonCreated?: (state: RootState) => void

          Callback after the canvas has rendered (but not yet committed)

        • OptionalonPointerMissed?: (event: MouseEvent) => void

          React Three Fiber handler for pointer clicks that have missed any target

        • OptionalthreeRendererParameters?: Partial<WebGPURendererParameters>

          WebGPURenderer parameters

      Returns Element

      <RenderContext>
      <CanvasView>
      <ThreeScene>
      <SpinnyCube /> // Three.js Object
      </ThreeScene>
      <SpinnyStar /> // Pixi.js Graphic
      </CanvasView>
      </RenderContext>