import { r as renderer3D, p as primitives3D, a as light, m as material, c as camera, b as framebuffer, t as texture } from '../rendering-C5SM-3b6.js';
import interaction from './interaction.js';
import loading from './loading.js';
import text from './text.js';
import renderBuffer from './p5.RenderBuffer.js';
import quat from './p5.Quat.js';
import matrix from '../math/p5.Matrix.js';
import geometry from './p5.Geometry.js';
import dataArray from './p5.DataArray.js';
import rendererGL from './p5.RendererGL.js';
import '../constants-DwbuOBz3.js';
import '../creating_reading-Be7_6X4p.js';
import 'colorjs.io/fn';
import '../color/color_spaces/hsb.js';
import '../strands/ir_types.js';
import '../dom/p5.Element.js';
import '../dom/p5.File.js';
import '../io/p5.XML.js';
import '../p5.Renderer-N-APumjv.js';
import '../image/filters.js';
import '../math/p5.Vector.js';
import '../shape/custom_shapes.js';
import '../core/States.js';
import '../io/utilities.js';
import '../dom/p5.MediaElement.js';
import '../shape/2d_primitives.js';
import '../core/helpers.js';
import '../shape/attributes.js';
import '../shape/curves.js';
import '../shape/vertex.js';
import '../color/setting.js';
import 'omggif';
import '../io/csv.js';
import '../image/pixels.js';
import '../core/transform.js';
import './GeometryBuilder.js';
import '../math/Matrices/Matrix.js';
import '../math/Matrices/MatrixInterface.js';
import './ShapeBuilder.js';
import 'libtess';
import './GeometryBufferCache.js';
import '../image/const.js';
import '../type/textCore.js';
import '../core/filterShaders.js';
import './enums.js';
import './p5.Shader.js';
import '../math/trigonometry.js';
import '../type/p5.Font.js';
import '@japont/unicode-range';
import '../type/unicodeRanges.js';
import '../type/lib/Typr.js';
import 'pako';
import '@davepagurek/bezier-path';
import '../strands_glslBackend-DMhOnoGl.js';
import '../strands/ir_dag.js';
import '../strands/strands_FES.js';
import '../ir_builders-CMXkjMoV.js';
import '../strands/ir_cfg.js';
import '../strands/strands_builtins.js';
import './shaderHookUtils.js';
import '../webgl2Compatibility-DA7DLMuq.js';

function webgl(p5){
  p5.registerAddon(renderer3D);
  p5.registerAddon(rendererGL);
  p5.registerAddon(primitives3D);
  p5.registerAddon(interaction);
  p5.registerAddon(light);
  p5.registerAddon(loading);
  p5.registerAddon(material);
  p5.registerAddon(text);
  p5.registerAddon(renderBuffer);
  p5.registerAddon(quat);
  p5.registerAddon(matrix);
  p5.registerAddon(geometry);
  p5.registerAddon(camera);
  p5.registerAddon(framebuffer);
  p5.registerAddon(dataArray);
  p5.registerAddon(texture);
}

export { webgl as default };
