pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
22 lines (21 loc) • 834 B
TypeScript
import { ExtensionType } from '../../../extensions/Extensions';
import type { Shader } from '../../../rendering/renderers/shared/shader/Shader';
import type { Renderer } from '../../../rendering/renderers/types';
import type { Graphics } from '../shared/Graphics';
import type { GraphicsAdaptor, GraphicsPipeLike } from '../shared/GraphicsPipe';
/**
* A GraphicsAdaptor that uses Canvas2D to render graphics.
* @category rendering
* @ignore
*/
export declare class CanvasGraphicsAdaptor implements GraphicsAdaptor {
/** @ignore */
static extension: {
readonly type: readonly [ExtensionType.CanvasPipesAdaptor];
readonly name: "graphics";
};
shader: Shader;
contextChange(renderer: Renderer): void;
execute(graphicsPipe: GraphicsPipeLike, renderable: Graphics): void;
destroy(): void;
}