@next2d/webgl 1.14.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/dist/BezierConverter.d.ts +59 -0
  4. package/dist/BezierConverter.js +106 -0
  5. package/dist/CanvasGradientToWebGL.d.ts +96 -0
  6. package/dist/CanvasGradientToWebGL.js +181 -0
  7. package/dist/CanvasPatternToWebGL.d.ts +39 -0
  8. package/dist/CanvasPatternToWebGL.js +66 -0
  9. package/dist/CanvasToWebGLContext.d.ts +591 -0
  10. package/dist/CanvasToWebGLContext.js +1427 -0
  11. package/dist/CanvasToWebGLContextBlend.d.ts +97 -0
  12. package/dist/CanvasToWebGLContextBlend.js +299 -0
  13. package/dist/CanvasToWebGLContextGrid.d.ts +74 -0
  14. package/dist/CanvasToWebGLContextGrid.js +283 -0
  15. package/dist/CanvasToWebGLContextMask.d.ts +113 -0
  16. package/dist/CanvasToWebGLContextMask.js +436 -0
  17. package/dist/CanvasToWebGLContextPath.d.ts +111 -0
  18. package/dist/CanvasToWebGLContextPath.js +210 -0
  19. package/dist/CanvasToWebGLContextStyle.d.ts +78 -0
  20. package/dist/CanvasToWebGLContextStyle.js +139 -0
  21. package/dist/ColorBufferPool.d.ts +58 -0
  22. package/dist/ColorBufferPool.js +134 -0
  23. package/dist/FrameBufferManager.d.ts +135 -0
  24. package/dist/FrameBufferManager.js +358 -0
  25. package/dist/StencilBufferPool.d.ts +56 -0
  26. package/dist/StencilBufferPool.js +142 -0
  27. package/dist/TextureManager.d.ts +130 -0
  28. package/dist/TextureManager.js +296 -0
  29. package/dist/VertexArrayObjectManager.d.ts +96 -0
  30. package/dist/VertexArrayObjectManager.js +277 -0
  31. package/dist/WebGLFillMeshGenerator.d.ts +31 -0
  32. package/dist/WebGLFillMeshGenerator.js +101 -0
  33. package/dist/WebGLStrokeMeshGenerator.d.ts +183 -0
  34. package/dist/WebGLStrokeMeshGenerator.js +504 -0
  35. package/dist/index.d.ts +6 -0
  36. package/dist/index.js +6 -0
  37. package/dist/interface/AttachmentImpl.d.ts +11 -0
  38. package/dist/interface/AttachmentImpl.js +1 -0
  39. package/dist/interface/BoundsImpl.d.ts +6 -0
  40. package/dist/interface/BoundsImpl.js +1 -0
  41. package/dist/interface/CapsStyleImpl.d.ts +1 -0
  42. package/dist/interface/CapsStyleImpl.js +1 -0
  43. package/dist/interface/ClipObjectImpl.d.ts +14 -0
  44. package/dist/interface/ClipObjectImpl.js +1 -0
  45. package/dist/interface/FillMeshImpl.d.ts +5 -0
  46. package/dist/interface/FillMeshImpl.js +1 -0
  47. package/dist/interface/GradientTypeImpl.d.ts +1 -0
  48. package/dist/interface/GradientTypeImpl.js +1 -0
  49. package/dist/interface/GridImpl.d.ts +6 -0
  50. package/dist/interface/GridImpl.js +1 -0
  51. package/dist/interface/IndexRangeImpl.d.ts +4 -0
  52. package/dist/interface/IndexRangeImpl.js +1 -0
  53. package/dist/interface/InterpolationMethodImpl.d.ts +1 -0
  54. package/dist/interface/InterpolationMethodImpl.js +1 -0
  55. package/dist/interface/JointStyleImpl.d.ts +1 -0
  56. package/dist/interface/JointStyleImpl.js +1 -0
  57. package/dist/interface/SpreadMethodImpl.d.ts +1 -0
  58. package/dist/interface/SpreadMethodImpl.js +1 -0
  59. package/dist/interface/StrokeMethImpl.d.ts +4 -0
  60. package/dist/interface/StrokeMethImpl.js +1 -0
  61. package/dist/interface/UniformDataImpl.d.ts +5 -0
  62. package/dist/interface/UniformDataImpl.js +1 -0
  63. package/dist/interface/VerticesImpl.d.ts +1 -0
  64. package/dist/interface/VerticesImpl.js +1 -0
  65. package/dist/shader/CanvasToWebGLShader.d.ts +85 -0
  66. package/dist/shader/CanvasToWebGLShader.js +192 -0
  67. package/dist/shader/CanvasToWebGLShaderList.d.ts +70 -0
  68. package/dist/shader/CanvasToWebGLShaderList.js +109 -0
  69. package/dist/shader/GradientLUTGenerator.d.ts +36 -0
  70. package/dist/shader/GradientLUTGenerator.js +123 -0
  71. package/dist/shader/WebGLShaderUniform.d.ts +52 -0
  72. package/dist/shader/WebGLShaderUniform.js +165 -0
  73. package/dist/shader/fragment/FragmentShaderLibrary.d.ts +18 -0
  74. package/dist/shader/fragment/FragmentShaderLibrary.js +35 -0
  75. package/dist/shader/fragment/FragmentShaderSource.d.ts +29 -0
  76. package/dist/shader/fragment/FragmentShaderSource.js +99 -0
  77. package/dist/shader/fragment/FragmentShaderSourceBlend.d.ts +67 -0
  78. package/dist/shader/fragment/FragmentShaderSourceBlend.js +319 -0
  79. package/dist/shader/fragment/FragmentShaderSourceGradient.d.ts +44 -0
  80. package/dist/shader/fragment/FragmentShaderSourceGradient.js +114 -0
  81. package/dist/shader/fragment/FragmentShaderSourceGradientLUT.d.ts +14 -0
  82. package/dist/shader/fragment/FragmentShaderSourceGradientLUT.js +58 -0
  83. package/dist/shader/fragment/FragmentShaderSourceTexture.d.ts +12 -0
  84. package/dist/shader/fragment/FragmentShaderSourceTexture.js +36 -0
  85. package/dist/shader/fragment/filter/FragmentShaderSourceBlurFilter.d.ts +12 -0
  86. package/dist/shader/fragment/filter/FragmentShaderSourceBlurFilter.js +42 -0
  87. package/dist/shader/fragment/filter/FragmentShaderSourceColorMatrixFilter.d.ts +11 -0
  88. package/dist/shader/fragment/filter/FragmentShaderSourceColorMatrixFilter.js +35 -0
  89. package/dist/shader/fragment/filter/FragmentShaderSourceConvolutionFilter.d.ts +16 -0
  90. package/dist/shader/fragment/filter/FragmentShaderSourceConvolutionFilter.js +80 -0
  91. package/dist/shader/fragment/filter/FragmentShaderSourceDisplacementMapFilter.d.ts +15 -0
  92. package/dist/shader/fragment/filter/FragmentShaderSourceDisplacementMapFilter.js +106 -0
  93. package/dist/shader/fragment/filter/FragmentShaderSourceFilter.d.ts +112 -0
  94. package/dist/shader/fragment/filter/FragmentShaderSourceFilter.js +275 -0
  95. package/dist/shader/variants/BlendShaderVariantCollection.d.ts +99 -0
  96. package/dist/shader/variants/BlendShaderVariantCollection.js +239 -0
  97. package/dist/shader/variants/FilterShaderVariantCollection.d.ts +150 -0
  98. package/dist/shader/variants/FilterShaderVariantCollection.js +395 -0
  99. package/dist/shader/variants/GradientLUTShaderVariantCollection.d.ts +49 -0
  100. package/dist/shader/variants/GradientLUTShaderVariantCollection.js +107 -0
  101. package/dist/shader/variants/GradientShapeShaderVariantCollection.d.ts +61 -0
  102. package/dist/shader/variants/GradientShapeShaderVariantCollection.js +196 -0
  103. package/dist/shader/variants/ShapeShaderVariantCollection.d.ts +117 -0
  104. package/dist/shader/variants/ShapeShaderVariantCollection.js +427 -0
  105. package/dist/shader/vertex/VertexShaderLibrary.d.ts +18 -0
  106. package/dist/shader/vertex/VertexShaderLibrary.js +75 -0
  107. package/dist/shader/vertex/VertexShaderSource.d.ts +23 -0
  108. package/dist/shader/vertex/VertexShaderSource.js +92 -0
  109. package/dist/shader/vertex/VertexShaderSourceFill.d.ts +45 -0
  110. package/dist/shader/vertex/VertexShaderSourceFill.js +112 -0
  111. package/dist/shader/vertex/VertexShaderSourceStroke.d.ts +27 -0
  112. package/dist/shader/vertex/VertexShaderSourceStroke.js +149 -0
  113. package/package.json +37 -0
@@ -0,0 +1,591 @@
1
+ import { FrameBufferManager } from "./FrameBufferManager";
2
+ import { CanvasToWebGLContextPath } from "./CanvasToWebGLContextPath";
3
+ import { CanvasToWebGLContextGrid } from "./CanvasToWebGLContextGrid";
4
+ import { CanvasToWebGLShaderList } from "./shader/CanvasToWebGLShaderList";
5
+ import { VertexArrayObjectManager } from "./VertexArrayObjectManager";
6
+ import { CanvasToWebGLContextBlend } from "./CanvasToWebGLContextBlend";
7
+ import { CanvasPatternToWebGL } from "./CanvasPatternToWebGL";
8
+ import { CanvasGradientToWebGL } from "./CanvasGradientToWebGL";
9
+ import { AttachmentImpl, BoundsImpl, BlendModeImpl, PointImpl, InterpolationMethodImpl, SpreadMethodImpl, CapsStyleImpl, JointStyleImpl } from "@next2d/interface";
10
+ /**
11
+ * @class
12
+ */
13
+ export declare class CanvasToWebGLContext {
14
+ readonly _$gl: WebGL2RenderingContext;
15
+ private readonly _$maxTextureSize;
16
+ private readonly _$contextStyle;
17
+ private _$cacheBounds;
18
+ private _$matrix;
19
+ private _$cacheAttachment;
20
+ private readonly _$stack;
21
+ private _$globalAlpha;
22
+ private _$imageSmoothingEnabled;
23
+ private _$globalCompositeOperation;
24
+ private _$clearColorR;
25
+ private _$clearColorG;
26
+ private _$clearColorB;
27
+ private _$clearColorA;
28
+ private _$viewportWidth;
29
+ private _$viewportHeight;
30
+ private readonly _$frameBufferManager;
31
+ private readonly _$path;
32
+ private readonly _$grid;
33
+ _$offsetX: number;
34
+ _$offsetY: number;
35
+ private readonly _$blends;
36
+ private readonly _$positions;
37
+ private _$isLayer;
38
+ private readonly _$shaderList;
39
+ private readonly _$gradientLUT;
40
+ private readonly _$vao;
41
+ private readonly _$mask;
42
+ private readonly _$blend;
43
+ private readonly _$maskBufferArray;
44
+ private readonly _$maskBoundsArray;
45
+ private readonly _$attachmentArray;
46
+ /**
47
+ * @param {WebGL2RenderingContext} gl
48
+ * @param {number} sample
49
+ * @constructor
50
+ * @public
51
+ */
52
+ constructor(gl: WebGL2RenderingContext, sample: number);
53
+ /**
54
+ * @return {void}
55
+ * @method
56
+ * @public
57
+ */
58
+ reset(): void;
59
+ /**
60
+ * @return {boolean}
61
+ * @public
62
+ */
63
+ get isLayer(): boolean;
64
+ /**
65
+ * @memberof CanvasToWebGLContext#
66
+ * @return {HTMLCanvasElement}
67
+ * @public
68
+ */
69
+ get canvas(): HTMLCanvasElement | OffscreenCanvas;
70
+ /**
71
+ * @return {AttachmentImpl|null}
72
+ * @public
73
+ */
74
+ get cacheAttachment(): AttachmentImpl | null;
75
+ set cacheAttachment(attachment: AttachmentImpl | null);
76
+ /**
77
+ * @return {BoundsImpl}
78
+ * @readonly
79
+ * @public
80
+ */
81
+ get cacheBounds(): BoundsImpl;
82
+ /**
83
+ * @member {Float32Array|CanvasGradientToWebGL|CanvasPatternToWebGL}
84
+ * @public
85
+ */
86
+ get fillStyle(): Float32Array | CanvasGradientToWebGL | CanvasPatternToWebGL;
87
+ set fillStyle(fill_style: Float32Array | CanvasGradientToWebGL | CanvasPatternToWebGL);
88
+ /**
89
+ * @member {Float32Array|CanvasGradientToWebGL|CanvasPatternToWebGL}
90
+ * @public
91
+ */
92
+ get strokeStyle(): Float32Array | CanvasGradientToWebGL | CanvasPatternToWebGL;
93
+ set strokeStyle(stroke_style: Float32Array | CanvasGradientToWebGL | CanvasPatternToWebGL);
94
+ /**
95
+ * @member {number}
96
+ * @public
97
+ */
98
+ get lineWidth(): number;
99
+ set lineWidth(line_width: number);
100
+ /**
101
+ * @member {string}
102
+ * @public
103
+ */
104
+ get lineCap(): CapsStyleImpl;
105
+ set lineCap(line_cap: CapsStyleImpl);
106
+ /**
107
+ * @member {string}
108
+ * @public
109
+ */
110
+ get lineJoin(): JointStyleImpl;
111
+ set lineJoin(line_join: JointStyleImpl);
112
+ /**
113
+ * @member {number}
114
+ * @public
115
+ */
116
+ get miterLimit(): number;
117
+ set miterLimit(miter_limit: number);
118
+ /**
119
+ * @member {number}
120
+ * @public
121
+ */
122
+ get globalAlpha(): number;
123
+ set globalAlpha(global_alpha: number);
124
+ /**
125
+ * @member {boolean}
126
+ * @public
127
+ */
128
+ get imageSmoothingEnabled(): boolean;
129
+ set imageSmoothingEnabled(image_smoothing_enabled: boolean);
130
+ /**
131
+ * @member {BlendModeImpl}
132
+ * @public
133
+ */
134
+ get globalCompositeOperation(): BlendModeImpl;
135
+ set globalCompositeOperation(global_composite_operation: BlendModeImpl);
136
+ /**
137
+ * @member {FrameBufferManager}
138
+ * @readonly
139
+ * @public
140
+ */
141
+ get frameBuffer(): FrameBufferManager;
142
+ /**
143
+ * @member {CanvasToWebGLShaderList}
144
+ * @readonly
145
+ * @public
146
+ */
147
+ get shaderList(): CanvasToWebGLShaderList;
148
+ /**
149
+ * @member {CanvasToWebGLContextPath}
150
+ * @readonly
151
+ * @public
152
+ */
153
+ get path(): CanvasToWebGLContextPath;
154
+ /**
155
+ * @member {CanvasToWebGLContextGrid}
156
+ * @readonly
157
+ * @public
158
+ */
159
+ get grid(): CanvasToWebGLContextGrid;
160
+ /**
161
+ * @member {VertexArrayObjectManager}
162
+ * @readonly
163
+ * @public
164
+ */
165
+ get vao(): VertexArrayObjectManager;
166
+ /**
167
+ * @member {CanvasToWebGLContextBlend}
168
+ * @readonly
169
+ * @public
170
+ */
171
+ get blend(): CanvasToWebGLContextBlend;
172
+ /**
173
+ * @return {object}
174
+ * @private
175
+ */
176
+ _$getCurrentPosition(): BoundsImpl;
177
+ /**
178
+ * @description textureの最大描画可能サイズからリサイズの比率を算出して返す
179
+ * Calculate and return the resize ratio from the maximum drawable size of texture
180
+ *
181
+ * @param {number} width
182
+ * @param {number} height
183
+ * @return {number}
184
+ * @method
185
+ * @public
186
+ */
187
+ _$getTextureScale(width: number, height: number): number;
188
+ /**
189
+ * @param {object} [attachment = null]
190
+ * @return {void}
191
+ * @method
192
+ * @public
193
+ */
194
+ _$bind(attachment?: AttachmentImpl | null): void;
195
+ /**
196
+ * @param {number} a
197
+ * @param {number} b
198
+ * @param {number} c
199
+ * @param {number} d
200
+ * @param {number} e
201
+ * @param {number} f
202
+ * @return {void}
203
+ * @method
204
+ * @public
205
+ */
206
+ setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
207
+ /**
208
+ * @param {number} width
209
+ * @param {number} height
210
+ * @return {void}
211
+ * @method
212
+ * @public
213
+ */
214
+ setMaxSize(width: number, height: number): void;
215
+ /**
216
+ * @param {number} a
217
+ * @param {number} b
218
+ * @param {number} c
219
+ * @param {number} d
220
+ * @param {number} e
221
+ * @param {number} f
222
+ * @return {void}
223
+ * @method
224
+ * @public
225
+ */
226
+ transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
227
+ /**
228
+ * @param {WebGLTexture} image
229
+ * @param {number} x
230
+ * @param {number} y
231
+ * @param {number} w
232
+ * @param {number} h
233
+ * @param {Float32Array} [color_transform=null]
234
+ * @return {void}
235
+ * @method
236
+ * @public
237
+ */
238
+ drawImage(image: WebGLTexture, x: number, y: number, w: number, h: number, color_transform?: Float32Array | null): void;
239
+ /**
240
+ * @param {number} r
241
+ * @param {number} g
242
+ * @param {number} b
243
+ * @param {number} a
244
+ * @return {void}
245
+ * @method
246
+ * @public
247
+ */
248
+ _$setColor(r?: number, g?: number, b?: number, a?: number): void;
249
+ /**
250
+ * @param {number} x
251
+ * @param {number} y
252
+ * @param {number} w
253
+ * @param {number} h
254
+ * @return {void}
255
+ * @method
256
+ * @public
257
+ */
258
+ clearRect(x: number, y: number, w: number, h: number): void;
259
+ /**
260
+ * @param {number} x
261
+ * @param {number} y
262
+ * @param {number} w
263
+ * @param {number} h
264
+ * @return {void}
265
+ * @method
266
+ * @public
267
+ */
268
+ _$clearRectStencil(x: number, y: number, w: number, h: number): void;
269
+ /**
270
+ * @param {number} x
271
+ * @param {number} y
272
+ * @return {void}
273
+ * @method
274
+ * @public
275
+ */
276
+ moveTo(x: number, y: number): void;
277
+ /**
278
+ * @param {number} x
279
+ * @param {number} y
280
+ * @return {void}
281
+ * @method
282
+ * @public
283
+ */
284
+ lineTo(x: number, y: number): void;
285
+ /**
286
+ * @return {void}
287
+ * @method
288
+ * @public
289
+ */
290
+ beginPath(): void;
291
+ /**
292
+ * @param {number} cx
293
+ * @param {number} cy
294
+ * @param {number} x
295
+ * @param {number} y
296
+ * @return {void}
297
+ * @method
298
+ * @public
299
+ */
300
+ quadraticCurveTo(cx: number, cy: number, x: number, y: number): void;
301
+ /**
302
+ * @param {number} cp1x
303
+ * @param {number} cp1y
304
+ * @param {number} cp2x
305
+ * @param {number} cp2y
306
+ * @param {number} dx
307
+ * @param {number} dy
308
+ * @return {void}
309
+ * @method
310
+ * @public
311
+ */
312
+ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, dx: number, dy: number): void;
313
+ /**
314
+ * @return {void}
315
+ * @method
316
+ * @public
317
+ */
318
+ fill(): void;
319
+ /**
320
+ * @param {WebGLVertexArrayObject} vertex_array
321
+ * @return {void}
322
+ * @method
323
+ * @public
324
+ */
325
+ releaseFillVertexArray(vertex_array: WebGLVertexArrayObject): void;
326
+ /**
327
+ * @return {void}
328
+ * @method
329
+ * @public
330
+ */
331
+ _$enterClip(): void;
332
+ /**
333
+ * @return {void}
334
+ * @method
335
+ * @public
336
+ */
337
+ _$beginClipDef(): void;
338
+ /**
339
+ * @param {boolean} flag
340
+ * @return {void}
341
+ * @method
342
+ * @private
343
+ */
344
+ _$updateContainerClipFlag(flag: boolean): void;
345
+ /**
346
+ * @description マスク処理の開始関数
347
+ * Mask processing start function
348
+ *
349
+ * @param {Float32Array} matrix
350
+ * @param {object} bounds
351
+ * @return {Float32Array}
352
+ * @method
353
+ * @public
354
+ */
355
+ _$startClip(matrix: Float32Array, bounds: BoundsImpl): Float32Array | null;
356
+ /**
357
+ * @return {void}
358
+ * @method
359
+ * @public
360
+ */
361
+ _$endClipDef(): void;
362
+ /**
363
+ * @return {void}
364
+ * @method
365
+ * @public
366
+ */
367
+ _$leaveClip(): void;
368
+ /**
369
+ * @return {void}
370
+ * @method
371
+ * @public
372
+ */
373
+ _$drawContainerClip(): void;
374
+ /**
375
+ * @return {void}
376
+ * @method
377
+ * @public
378
+ */
379
+ closePath(): void;
380
+ /**
381
+ * @return {void}
382
+ * @method
383
+ * @public
384
+ */
385
+ stroke(): void;
386
+ /**
387
+ * @param {number} x
388
+ * @param {number} y
389
+ * @param {number} radius
390
+ * @return {void}
391
+ * @method
392
+ * @public
393
+ */
394
+ arc(x: number, y: number, radius: number): void;
395
+ /**
396
+ * @return {void}
397
+ * @method
398
+ * @public
399
+ */
400
+ clip(): void;
401
+ /**
402
+ * @return {void}
403
+ * @method
404
+ * @public
405
+ */
406
+ save(): void;
407
+ /**
408
+ * @return {void}
409
+ * @method
410
+ * @public
411
+ */
412
+ restore(): void;
413
+ /**
414
+ * @param {WebGLTexture} texture
415
+ * @param {boolean} repeat
416
+ * @param {Float32Array} color_transform
417
+ * @return {CanvasPatternToWebGL}
418
+ * @method
419
+ * @public
420
+ */
421
+ createPattern(texture: WebGLTexture, repeat: boolean, color_transform: Float32Array): CanvasPatternToWebGL;
422
+ /**
423
+ * @param {number} x0
424
+ * @param {number} y0
425
+ * @param {number} x1
426
+ * @param {number} y1
427
+ * @param {string} [rgb=InterpolationMethod.RGB]
428
+ * @param {string} [mode=SpreadMethod.PAD]
429
+ * @return {CanvasGradientToWebGL}
430
+ * @method
431
+ * @public
432
+ */
433
+ createLinearGradient(x0: number, y0: number, x1: number, y1: number, rgb?: InterpolationMethodImpl, mode?: SpreadMethodImpl): CanvasGradientToWebGL;
434
+ /**
435
+ * @param {number} x0
436
+ * @param {number} y0
437
+ * @param {number} r0
438
+ * @param {number} x1
439
+ * @param {number} y1
440
+ * @param {number} r1
441
+ * @param {string} [rgb=InterpolationMethod.RGB]
442
+ * @param {string} [mode=SpreadMethod.PAD]
443
+ * @param {number} [focal_point_ratio=0]
444
+ * @return {CanvasGradientToWebGL}
445
+ * @method
446
+ * @public
447
+ */
448
+ createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number, rgb?: InterpolationMethodImpl, mode?: SpreadMethodImpl, focal_point_ratio?: number): CanvasGradientToWebGL;
449
+ /**
450
+ * @param {WebGLTexture} texture
451
+ * @param {boolean} is_horizontal
452
+ * @param {number} blur
453
+ * @return {void}
454
+ * @method
455
+ * @public
456
+ */
457
+ _$applyBlurFilter(texture: WebGLTexture, is_horizontal: boolean, blur: number): void;
458
+ /**
459
+ * @param {WebGLTexture} texture
460
+ * @param {number} width
461
+ * @param {number} height
462
+ * @param {number} base_width
463
+ * @param {number} base_height
464
+ * @param {number} base_offset_x
465
+ * @param {number} base_offset_y
466
+ * @param {number} blur_width
467
+ * @param {number} blur_height
468
+ * @param {number} blur_offset_x
469
+ * @param {number} blur_offset_y
470
+ * @param {boolean} is_glow
471
+ * @param {string} type
472
+ * @param {boolean} knockout
473
+ * @param {number} strength
474
+ * @param {array | null} [ratios = null]
475
+ * @param {array | null} [colors = null]
476
+ * @param {array | null} [alphas = null]
477
+ * @param {number} [color_r1 = 0]
478
+ * @param {number} [color_g1 = 0]
479
+ * @param {number} [color_b1 = 0]
480
+ * @param {number} [color_a1 = 0]
481
+ * @param {number} [color_r2 = 0]
482
+ * @param {number} [color_g2 = 0]
483
+ * @param {number} [color_b2 = 0]
484
+ * @param {number} [color_a2 = 0]
485
+ * @return {void}
486
+ * @method
487
+ * @public
488
+ */
489
+ _$applyBitmapFilter(texture: WebGLTexture, width: number, height: number, base_width: number, base_height: number, base_offset_x: number, base_offset_y: number, blur_width: number, blur_height: number, blur_offset_x: number, blur_offset_y: number, is_glow: boolean, type: string, knockout: boolean, strength: number, ratios?: number[] | null, colors?: number[] | null, alphas?: number[] | null, color_r1?: number, color_g1?: number, color_b1?: number, color_a1?: number, color_r2?: number, color_g2?: number, color_b2?: number, color_a2?: number): void;
490
+ /**
491
+ * @param {WebGLTexture} texture
492
+ * @param {array} matrix
493
+ * @return {void}
494
+ * @method
495
+ * @public
496
+ */
497
+ _$applyColorMatrixFilter(texture: WebGLTexture, matrix: number[]): void;
498
+ /**
499
+ * @param {WebGLTexture} texture
500
+ * @param {number} matrix_x
501
+ * @param {number} matrix_y
502
+ * @param {Float32Array} matrix
503
+ * @param {number} divisor
504
+ * @param {number} bias
505
+ * @param {boolean} preserve_alpha
506
+ * @param {boolean} clamp
507
+ * @param {number} color_r
508
+ * @param {number} color_g
509
+ * @param {number} color_b
510
+ * @param {number} color_a
511
+ * @return {void}
512
+ * @method
513
+ * @public
514
+ */
515
+ _$applyConvolutionFilter(texture: WebGLTexture, matrix_x: number, matrix_y: number, matrix: number[], divisor: number, bias: number, preserve_alpha: boolean, clamp: boolean, color_r: number, color_g: number, color_b: number, color_a: number): void;
516
+ /**
517
+ * @param {WebGLTexture} texture
518
+ * @param {HTMLImageElement} map
519
+ * @param {number} base_width
520
+ * @param {number} base_height
521
+ * @param {PointImpl} [point=null]
522
+ * @param {number} component_x
523
+ * @param {number} component_y
524
+ * @param {number} scale_x
525
+ * @param {number} scale_y
526
+ * @param {string} mode
527
+ * @param {number} color_r
528
+ * @param {number} color_g
529
+ * @param {number} color_b
530
+ * @param {number} color_a
531
+ * @return {void}
532
+ * @method
533
+ * @private
534
+ */
535
+ _$applyDisplacementMapFilter(texture: WebGLTexture, map: HTMLImageElement, base_width: number, base_height: number, point: PointImpl | null, component_x: number, component_y: number, scale_x: number, scale_y: number, mode: string, color_r: number, color_g: number, color_b: number, color_a: number): void;
536
+ /**
537
+ * @param {BoundsImpl} position
538
+ * @return {void}
539
+ * @method
540
+ * @private
541
+ */
542
+ _$startLayer(position: BoundsImpl): void;
543
+ /**
544
+ * @return {void}
545
+ * @method
546
+ * @private
547
+ */
548
+ _$endLayer(): void;
549
+ /**
550
+ * @return {void}
551
+ * @method
552
+ * @private
553
+ */
554
+ _$saveCurrentMask(): void;
555
+ /**
556
+ * @param {number} width
557
+ * @param {number} height
558
+ * @param {boolean} [multisample=false]
559
+ * @return {void}
560
+ * @method
561
+ * @private
562
+ */
563
+ _$saveAttachment(width: number, height: number, multisample?: boolean): void;
564
+ /**
565
+ * @return {void}
566
+ * @method
567
+ * @private
568
+ */
569
+ _$restoreAttachment(release_texture?: boolean): void;
570
+ /**
571
+ * @return {void}
572
+ * @method
573
+ * @private
574
+ */
575
+ _$restoreCurrentMask(): void;
576
+ /**
577
+ * @return {object}
578
+ * @method
579
+ * @private
580
+ */
581
+ getCurrentPosition(): BoundsImpl;
582
+ /**
583
+ * @description 最大テクスチャサイズを超えないスケール値を取得する
584
+ * @param {number} width
585
+ * @param {number} height
586
+ * @return {number}
587
+ * @method
588
+ * @public
589
+ */
590
+ textureScale(width: number, height: number): number;
591
+ }