import type { GraphicsData as DisplayGraphicsData } from '../graphics_data.js'; import type { GraphicsWebGLBucket } from '../graphics.js'; import { GraphicsData } from './graphics_data.js'; import type { IdentifiedWebGLRenderingContext } from './util.js'; import type { Graphics } from '../graphics.js'; import type { RenderSession } from '../render_session.js'; /** * Updates the graphics data for WebGL rendering. * @returns {number} The number of vertices in the graphics data. */ export declare const getStencilBufferLimit: () => number; /** * Updates the graphics data for WebGL rendering. * @returns {object[]} The graphics data array. */ export declare const getGraphicsDataPool: () => GraphicsData[]; /** * Updates the graphics data for WebGL rendering. * @param {object} webGL - The WebGL context. * @param {number} type - The type of graphics data to create. * @returns {object} The newly created graphics data object. */ export declare const switchMode: (webGL: GraphicsWebGLBucket, type: number) => GraphicsData; /** * Updates the graphics data for WebGL rendering. * @param {object} graphicsData - The graphics data to update. * @param {GraphicsData} webGLData - The WebGL graphics data object. */ export declare const buildLine: (graphicsData: DisplayGraphicsData, webGLData: GraphicsData) => void; /** * Updates the graphics data for WebGL rendering. * @param {object} graphicsData - The graphics data to update. * @param {GraphicsData} webGLData - The WebGL graphics data object. */ export declare const buildRectangle: (graphicsData: DisplayGraphicsData, webGLData: GraphicsData) => void; /** * Updates the graphics data for WebGL rendering. * @param {number} fromX - The starting x-coordinate. * @param {number} fromY - The starting y-coordinate. * @param {number} cpX - The control point x-coordinate. * @param {number} cpY - The control point y-coordinate. * @param {number} toX - The ending x-coordinate. * @param {number} toY - The ending y-coordinate. * @returns {number[]} The calculated points for the quadratic bezier curve. */ export declare const quadraticBezierCurve: (fromX: number, fromY: number, cpX: number, cpY: number, toX: number, toY: number) => number[]; /** * Updates the graphics data for WebGL rendering. * @param {object} graphicsData - The graphics data to update. * @param {GraphicsData} webGLData - The WebGL graphics data object. */ export declare const buildRoundedRectangle: (graphicsData: DisplayGraphicsData, webGLData: GraphicsData) => void; /** * Updates the graphics data for WebGL rendering. * @param {object} graphicsData - The graphics data to update. * @param {GraphicsData} webGLData - The WebGL graphics data object. */ export declare const buildCircle: (graphicsData: DisplayGraphicsData, webGLData: GraphicsData) => void; /** * Updates the graphics data for WebGL rendering. * @param {object} graphicsData - The graphics data to update. * @param {GraphicsData} webGLData - The WebGL graphics data object. */ export declare const buildComplexPoly: (graphicsData: DisplayGraphicsData, webGLData: GraphicsData) => void; /** * Updates the graphics data for WebGL rendering. * @param {object} graphicsData - TBD. * @param {GraphicsData} webGLData - TBD. * @returns {boolean} TBD. */ export declare const buildPoly: (graphicsData: DisplayGraphicsData, webGLData: GraphicsData) => boolean; /** * TBD. * @param {Graphics} graphics - The graphics object to update. * @param {WebGLRenderingContext & { id: number }} gl - The WebGL rendering context. */ export declare const updateGraphics: (graphics: Graphics, gl: IdentifiedWebGLRenderingContext) => void; /** * Updates the graphics data for WebGL rendering. * @param {Graphics} graphics - The graphics object to update. * @param {object} renderSession - The rendering session. */ export declare const renderGraphics: (graphics: Graphics, renderSession: RenderSession) => void; //# sourceMappingURL=graphics.d.ts.map