fvtt-types
Version:
TypeScript type definitions for Foundry VTT
34 lines (27 loc) • 981 B
text/typescript
import type { Identity } from "#utils";
/**
* Provide the necessary methods to get a snapshot of the framebuffer into a render texture.
* Class meant to be used as a singleton.
* Created with the precious advices of dev7355608.
*/
declare class FramebufferSnapshot {
/**
* The RenderTexture that is the render destination for the framebuffer snapshot.
*/
framebufferTexture: PIXI.RenderTexture;
/**
* Get the framebuffer texture snapshot.
* @param renderer - The renderer for this context.
* @returns The framebuffer snapshot.
*/
getFramebufferTexture(renderer: PIXI.Renderer): PIXI.RenderTexture;
#FramebufferSnapshot: true;
}
declare namespace FramebufferSnapshot {
interface Any extends AnyFramebufferSnapshot {}
interface AnyConstructor extends Identity<typeof AnyFramebufferSnapshot> {}
}
export default FramebufferSnapshot;
declare abstract class AnyFramebufferSnapshot extends FramebufferSnapshot {
constructor(...args: never);
}