UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

17 lines (16 loc) 521 B
import type { Context } from "../engine_setup.js"; declare global { interface Window { SPECTOR?: { Spector: new () => Spector; }; } interface Spector { displayUI: () => void; setCanvas: (canvas: HTMLCanvasElement) => void; spyCanvases: boolean; startCaptureOnNextFrame: () => void; captureCanvas: (canvas: HTMLCanvasElement) => any; } } export declare function initSpectorIfAvailable(_context: Context, canvas: HTMLCanvasElement): void;