@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.
20 lines (19 loc) • 699 B
TypeScript
import { Object3D, Texture } from 'three';
import { GLTFExporterPlugin, GLTFWriter } from 'three/examples/jsm/exporters/GLTFExporter.js';
declare type BeforeWriteArgs = {
keep: boolean;
};
export declare abstract class BaseWriter implements GLTFExporterPlugin {
private readonly writer;
constructor(writer: GLTFWriter);
writeNode(_node: Object3D): void;
}
export declare class GizmoWriter extends BaseWriter {
beforeWriteNode(node: Object3D, args: BeforeWriteArgs): void;
}
export declare class RenderTextureWriter extends BaseWriter {
beforeWriteTexture(texture: Texture, args: BeforeWriteArgs & {
newTexture?: Texture;
}): void;
}
export {};