import type { Graphics } from '../graphics.js'; import type { GraphicsData } from './graphics_data.js'; import type { RenderSession } from '../render_session.js'; export declare class WebGLStencilManager { gl: WebGLRenderingContext; stencilStack: GraphicsData[]; reverse: boolean; count: number; /** * Initializes the stencil manager. */ constructor(); /** * Binds the stencil buffer for rendering. * @param {WebGLRenderingContext} gl - The WebGL rendering context. */ setContext(gl: WebGLRenderingContext): void; /** * Sets up the stencil buffer for rendering. */ destroy(): void; /** * Renders the stencil buffer for graphics. * @param {Graphics} graphics - The graphics object to render. * @param {GraphicsData} webGLData - The WebGL graphics data. * @param {object} renderSession - The rendering session. */ pushStencil(graphics: Graphics, webGLData: GraphicsData, renderSession: RenderSession): void; /** * Renders the stencil buffer for graphics. * @param {Graphics} graphics - The graphics object to render. * @param {GraphicsData} webGLData - The WebGL graphics data. * @param {object} renderSession - The rendering session. */ bindGraphics(graphics: Graphics, webGLData: GraphicsData, renderSession: RenderSession): void; /** * Renders the stencil buffer for graphics. * @param {Graphics} graphics - The graphics object to render. * @param {GraphicsData} webGLData - The WebGL graphics data. * @param {object} renderSession - The rendering session. */ popStencil(graphics: Graphics, webGLData: GraphicsData, renderSession: RenderSession): void; } //# sourceMappingURL=stencil_manager.d.ts.map