@next2d/player 1.14.19 → 1.14.21
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.
- package/index.js +3 -3
- package/package.json +31 -6
- package/interface/AjaxEventImpl.d.ts +0 -5
- package/interface/AjaxEventImpl.js +0 -1
- package/interface/AjaxOptionImpl.d.ts +0 -13
- package/interface/AjaxOptionImpl.js +0 -1
- package/interface/AttachmentImpl.d.ts +0 -11
- package/interface/AttachmentImpl.js +0 -1
- package/interface/BitmapDataChannelImpl.d.ts +0 -1
- package/interface/BitmapDataChannelImpl.js +0 -1
- package/interface/BitmapDrawObjectImpl.d.ts +0 -6
- package/interface/BitmapDrawObjectImpl.js +0 -1
- package/interface/BitmapFilterTypeImpl.d.ts +0 -1
- package/interface/BitmapFilterTypeImpl.js +0 -1
- package/interface/BlendModeImpl.d.ts +0 -1
- package/interface/BlendModeImpl.js +0 -1
- package/interface/BoundsImpl.d.ts +0 -6
- package/interface/BoundsImpl.js +0 -1
- package/interface/Character.d.ts +0 -2
- package/interface/Character.js +0 -1
- package/interface/CharacterImpl.d.ts +0 -2
- package/interface/CharacterImpl.js +0 -1
- package/interface/ClipObjectImpl.d.ts +0 -14
- package/interface/ClipObjectImpl.js +0 -1
- package/interface/ColorStopImpl.d.ts +0 -7
- package/interface/ColorStopImpl.js +0 -1
- package/interface/DictionaryTagImpl.d.ts +0 -7
- package/interface/DictionaryTagImpl.js +0 -1
- package/interface/DisplacementMapFilterModeImpl.d.ts +0 -1
- package/interface/DisplacementMapFilterModeImpl.js +0 -1
- package/interface/DisplayImpl.d.ts +0 -28
- package/interface/DisplayImpl.js +0 -1
- package/interface/DisplayObjectImpl.d.ts +0 -2
- package/interface/DisplayObjectImpl.js +0 -1
- package/interface/DragRulesImpl.d.ts +0 -7
- package/interface/DragRulesImpl.js +0 -1
- package/interface/DropTargetImpl.d.ts +0 -2
- package/interface/DropTargetImpl.js +0 -1
- package/interface/EventDispatcherImpl.d.ts +0 -2
- package/interface/EventDispatcherImpl.js +0 -1
- package/interface/EventListenerImpl.d.ts +0 -6
- package/interface/EventListenerImpl.js +0 -1
- package/interface/EventsImpl.d.ts +0 -20
- package/interface/EventsImpl.js +0 -1
- package/interface/FillMeshImpl.d.ts +0 -5
- package/interface/FillMeshImpl.js +0 -1
- package/interface/FilterArrayImpl.d.ts +0 -10
- package/interface/FilterArrayImpl.js +0 -1
- package/interface/FilterQualityImpl.d.ts +0 -1
- package/interface/FilterQualityImpl.js +0 -1
- package/interface/FiltersImpl.d.ts +0 -20
- package/interface/FiltersImpl.js +0 -1
- package/interface/GeomImpl.d.ts +0 -12
- package/interface/GeomImpl.js +0 -1
- package/interface/GradientTypeImpl.d.ts +0 -3
- package/interface/GradientTypeImpl.js +0 -1
- package/interface/GraphicsParentImpl.d.ts +0 -2
- package/interface/GraphicsParentImpl.js +0 -1
- package/interface/GridImpl.d.ts +0 -6
- package/interface/GridImpl.js +0 -1
- package/interface/ImageTypeImpl.d.ts +0 -1
- package/interface/ImageTypeImpl.js +0 -1
- package/interface/IndexRangeImpl.d.ts +0 -4
- package/interface/IndexRangeImpl.js +0 -1
- package/interface/LoaderInfoDataImpl.d.ts +0 -7
- package/interface/LoaderInfoDataImpl.js +0 -1
- package/interface/LoopConfigImpl.d.ts +0 -8
- package/interface/LoopConfigImpl.js +0 -1
- package/interface/LoopTypeImpl.d.ts +0 -1
- package/interface/LoopTypeImpl.js +0 -1
- package/interface/MediaImpl.d.ts +0 -10
- package/interface/MediaImpl.js +0 -1
- package/interface/MovieClipActionObjectImpl.d.ts +0 -5
- package/interface/MovieClipActionObjectImpl.js +0 -1
- package/interface/MovieClipCharacterImpl.d.ts +0 -18
- package/interface/MovieClipCharacterImpl.js +0 -1
- package/interface/MovieClipLabelObjectImpl.d.ts +0 -4
- package/interface/MovieClipLabelObjectImpl.js +0 -1
- package/interface/MovieClipSoundObjectImpl.d.ts +0 -5
- package/interface/MovieClipSoundObjectImpl.js +0 -1
- package/interface/NetImpl.d.ts +0 -6
- package/interface/NetImpl.js +0 -1
- package/interface/NoCodeDataImpl.d.ts +0 -7
- package/interface/NoCodeDataImpl.js +0 -1
- package/interface/NoCodeDataZlibImpl.d.ts +0 -4
- package/interface/NoCodeDataZlibImpl.js +0 -1
- package/interface/ParentImpl.d.ts +0 -2
- package/interface/ParentImpl.js +0 -1
- package/interface/PlaceObjectImpl.d.ts +0 -12
- package/interface/PlaceObjectImpl.js +0 -1
- package/interface/PlayerHitObjectImpl.d.ts +0 -7
- package/interface/PlayerHitObjectImpl.js +0 -1
- package/interface/PlayerModeImpl.d.ts +0 -1
- package/interface/PlayerModeImpl.js +0 -1
- package/interface/PlayerOptionsImpl.d.ts +0 -8
- package/interface/PlayerOptionsImpl.js +0 -1
- package/interface/PointImpl.d.ts +0 -4
- package/interface/PointImpl.js +0 -1
- package/interface/PreObjectImpl.d.ts +0 -23
- package/interface/PreObjectImpl.js +0 -1
- package/interface/PropertyBitmapDataMessageImpl.d.ts +0 -8
- package/interface/PropertyBitmapDataMessageImpl.js +0 -1
- package/interface/PropertyContainerMessageImpl.d.ts +0 -6
- package/interface/PropertyContainerMessageImpl.js +0 -1
- package/interface/PropertyMessageImpl.d.ts +0 -41
- package/interface/PropertyMessageImpl.js +0 -1
- package/interface/PropertyMessageMapImpl.d.ts +0 -2
- package/interface/PropertyMessageMapImpl.js +0 -1
- package/interface/PropertyShapeMessageImpl.d.ts +0 -6
- package/interface/PropertyShapeMessageImpl.js +0 -1
- package/interface/PropertyTextMessageImpl.d.ts +0 -25
- package/interface/PropertyTextMessageImpl.js +0 -1
- package/interface/PropertyVideoMessageImpl.d.ts +0 -5
- package/interface/PropertyVideoMessageImpl.js +0 -1
- package/interface/RGBAImpl.d.ts +0 -6
- package/interface/RGBAImpl.js +0 -1
- package/interface/ShapeCharacterImpl.d.ts +0 -14
- package/interface/ShapeCharacterImpl.js +0 -1
- package/interface/SoundCharacterImpl.d.ts +0 -5
- package/interface/SoundCharacterImpl.js +0 -1
- package/interface/SoundTagImpl.d.ts +0 -6
- package/interface/SoundTagImpl.js +0 -1
- package/interface/SpriteImpl.d.ts +0 -2
- package/interface/SpriteImpl.js +0 -1
- package/interface/StageDataImpl.d.ts +0 -6
- package/interface/StageDataImpl.js +0 -1
- package/interface/StageQualityImpl.d.ts +0 -1
- package/interface/StageQualityImpl.js +0 -1
- package/interface/StrokeMethImpl.d.ts +0 -4
- package/interface/StrokeMethImpl.js +0 -1
- package/interface/StrokeTypeImpl.d.ts +0 -2
- package/interface/StrokeTypeImpl.js +0 -1
- package/interface/SurfaceFilterImpl.d.ts +0 -6
- package/interface/SurfaceFilterImpl.js +0 -1
- package/interface/TextBreakObjectImpl.d.ts +0 -9
- package/interface/TextBreakObjectImpl.js +0 -1
- package/interface/TextCharacterImpl.d.ts +0 -27
- package/interface/TextCharacterImpl.js +0 -1
- package/interface/TextDataImpl.d.ts +0 -2
- package/interface/TextDataImpl.js +0 -1
- package/interface/TextFieldAutoSizeImpl.d.ts +0 -1
- package/interface/TextFieldAutoSizeImpl.js +0 -1
- package/interface/TextFieldTypeImpl.d.ts +0 -1
- package/interface/TextFieldTypeImpl.js +0 -1
- package/interface/TextFormatAlignImpl.d.ts +0 -1
- package/interface/TextFormatAlignImpl.js +0 -1
- package/interface/TextFormatVerticalAlignImpl.d.ts +0 -1
- package/interface/TextFormatVerticalAlignImpl.js +0 -1
- package/interface/TextImageObjectImpl.d.ts +0 -11
- package/interface/TextImageObjectImpl.js +0 -1
- package/interface/TextImpl.d.ts +0 -6
- package/interface/TextImpl.js +0 -1
- package/interface/TextObjectImpl.d.ts +0 -7
- package/interface/TextObjectImpl.js +0 -1
- package/interface/TextObjectModeImpl.d.ts +0 -1
- package/interface/TextObjectModeImpl.js +0 -1
- package/interface/TextStringObjectImpl.d.ts +0 -7
- package/interface/TextStringObjectImpl.js +0 -1
- package/interface/UIImpl.d.ts +0 -8
- package/interface/UIImpl.js +0 -1
- package/interface/URLLoaderDataFormatImpl.d.ts +0 -1
- package/interface/URLLoaderDataFormatImpl.js +0 -1
- package/interface/URLRequestMethodImpl.d.ts +0 -1
- package/interface/URLRequestMethodImpl.js +0 -1
- package/interface/UniformDataImpl.d.ts +0 -5
- package/interface/UniformDataImpl.js +0 -1
- package/interface/UnzipQueueImpl.d.ts +0 -6
- package/interface/UnzipQueueImpl.js +0 -1
- package/interface/VerticesImpl.d.ts +0 -1
- package/interface/VerticesImpl.js +0 -1
- package/interface/VideoCharacterImpl.d.ts +0 -12
- package/interface/VideoCharacterImpl.js +0 -1
- package/next2d/display/BitmapData.d.ts +0 -143
- package/next2d/display/BitmapData.js +0 -387
- package/next2d/display/BlendMode.d.ts +0 -204
- package/next2d/display/BlendMode.js +0 -240
- package/next2d/display/DisplayObject.d.ts +0 -565
- package/next2d/display/DisplayObject.js +0 -1670
- package/next2d/display/DisplayObjectContainer.d.ts +0 -351
- package/next2d/display/DisplayObjectContainer.js +0 -1776
- package/next2d/display/FrameLabel.d.ts +0 -98
- package/next2d/display/FrameLabel.js +0 -120
- package/next2d/display/Graphics.d.ts +0 -577
- package/next2d/display/Graphics.js +0 -2161
- package/next2d/display/GraphicsBitmapFill.d.ts +0 -49
- package/next2d/display/GraphicsBitmapFill.js +0 -86
- package/next2d/display/GraphicsGradientFill.d.ts +0 -66
- package/next2d/display/GraphicsGradientFill.js +0 -157
- package/next2d/display/InteractiveObject.d.ts +0 -32
- package/next2d/display/InteractiveObject.js +0 -43
- package/next2d/display/Loader.d.ts +0 -131
- package/next2d/display/Loader.js +0 -321
- package/next2d/display/LoaderInfo.d.ts +0 -122
- package/next2d/display/LoaderInfo.js +0 -184
- package/next2d/display/LoopConfig.d.ts +0 -108
- package/next2d/display/LoopConfig.js +0 -156
- package/next2d/display/LoopType.d.ts +0 -104
- package/next2d/display/LoopType.js +0 -122
- package/next2d/display/MovieClip.d.ts +0 -314
- package/next2d/display/MovieClip.js +0 -941
- package/next2d/display/Shape.d.ts +0 -169
- package/next2d/display/Shape.js +0 -509
- package/next2d/display/Sprite.d.ts +0 -175
- package/next2d/display/Sprite.js +0 -280
- package/next2d/display/Stage.d.ts +0 -164
- package/next2d/display/Stage.js +0 -251
- package/next2d/events/Event.d.ts +0 -424
- package/next2d/events/Event.js +0 -560
- package/next2d/events/EventDispatcher.d.ts +0 -138
- package/next2d/events/EventDispatcher.js +0 -623
- package/next2d/events/EventPhase.d.ts +0 -80
- package/next2d/events/EventPhase.js +0 -94
- package/next2d/events/FocusEvent.d.ts +0 -89
- package/next2d/events/FocusEvent.js +0 -103
- package/next2d/events/HTTPStatusEvent.d.ts +0 -107
- package/next2d/events/HTTPStatusEvent.js +0 -139
- package/next2d/events/IOErrorEvent.d.ts +0 -82
- package/next2d/events/IOErrorEvent.js +0 -101
- package/next2d/events/MouseEvent.d.ts +0 -163
- package/next2d/events/MouseEvent.js +0 -207
- package/next2d/events/ProgressEvent.d.ts +0 -97
- package/next2d/events/ProgressEvent.js +0 -123
- package/next2d/events/VideoEvent.d.ts +0 -145
- package/next2d/events/VideoEvent.js +0 -181
- package/next2d/filters/BevelFilter.d.ts +0 -254
- package/next2d/filters/BevelFilter.js +0 -491
- package/next2d/filters/BitmapFilter.d.ts +0 -75
- package/next2d/filters/BitmapFilter.js +0 -95
- package/next2d/filters/BlurFilter.d.ts +0 -150
- package/next2d/filters/BlurFilter.js +0 -370
- package/next2d/filters/ColorMatrixFilter.d.ts +0 -116
- package/next2d/filters/ColorMatrixFilter.js +0 -179
- package/next2d/filters/ConvolutionFilter.d.ts +0 -210
- package/next2d/filters/ConvolutionFilter.js +0 -366
- package/next2d/filters/DisplacementMapFilter.d.ts +0 -212
- package/next2d/filters/DisplacementMapFilter.js +0 -372
- package/next2d/filters/DropShadowFilter.d.ts +0 -240
- package/next2d/filters/DropShadowFilter.js +0 -461
- package/next2d/filters/GlowFilter.d.ts +0 -204
- package/next2d/filters/GlowFilter.js +0 -356
- package/next2d/filters/GradientBevelFilter.d.ts +0 -243
- package/next2d/filters/GradientBevelFilter.js +0 -474
- package/next2d/filters/GradientGlowFilter.d.ts +0 -243
- package/next2d/filters/GradientGlowFilter.js +0 -464
- package/next2d/geom/ColorTransform.d.ts +0 -201
- package/next2d/geom/ColorTransform.js +0 -278
- package/next2d/geom/Matrix.d.ts +0 -299
- package/next2d/geom/Matrix.js +0 -454
- package/next2d/geom/Point.d.ts +0 -213
- package/next2d/geom/Point.js +0 -274
- package/next2d/geom/Rectangle.d.ts +0 -364
- package/next2d/geom/Rectangle.js +0 -513
- package/next2d/geom/Transform.d.ts +0 -213
- package/next2d/geom/Transform.js +0 -492
- package/next2d/media/Sound.d.ts +0 -208
- package/next2d/media/Sound.js +0 -504
- package/next2d/media/SoundMixer.d.ts +0 -68
- package/next2d/media/SoundMixer.js +0 -115
- package/next2d/media/SoundTransform.d.ts +0 -80
- package/next2d/media/SoundTransform.js +0 -111
- package/next2d/media/Video.d.ts +0 -331
- package/next2d/media/Video.js +0 -856
- package/next2d/net/URLRequest.d.ts +0 -143
- package/next2d/net/URLRequest.js +0 -232
- package/next2d/net/URLRequestHeader.d.ts +0 -82
- package/next2d/net/URLRequestHeader.js +0 -105
- package/next2d/text/TextField.d.ts +0 -644
- package/next2d/text/TextField.js +0 -2662
- package/next2d/text/TextFormat.d.ts +0 -250
- package/next2d/text/TextFormat.js +0 -460
- package/next2d/ui/Easing.d.ts +0 -359
- package/next2d/ui/Easing.js +0 -481
- package/next2d/ui/Job.d.ts +0 -155
- package/next2d/ui/Job.js +0 -333
- package/next2d/ui/Tween.d.ts +0 -62
- package/next2d/ui/Tween.js +0 -72
- package/packages/Display.d.ts +0 -3
- package/packages/Display.js +0 -36
- package/packages/Events.d.ts +0 -3
- package/packages/Events.js +0 -28
- package/packages/Filters.d.ts +0 -3
- package/packages/Filters.js +0 -28
- package/packages/Geom.d.ts +0 -3
- package/packages/Geom.js +0 -20
- package/packages/Media.d.ts +0 -3
- package/packages/Media.js +0 -18
- package/packages/Net.d.ts +0 -3
- package/packages/Net.js +0 -14
- package/packages/Text.d.ts +0 -3
- package/packages/Text.js +0 -14
- package/packages/UI.d.ts +0 -3
- package/packages/UI.js +0 -16
- package/player/Next2D.d.ts +0 -70
- package/player/Next2D.js +0 -192
- package/player/Player.d.ts +0 -334
- package/player/Player.js +0 -1863
- package/util/CacheStore.d.ts +0 -115
- package/util/CacheStore.js +0 -276
- package/util/Global.d.ts +0 -23
- package/util/Global.js +0 -67
- package/util/RenderUtil.d.ts +0 -472
- package/util/RenderUtil.js +0 -686
- package/util/Shortcut.d.ts +0 -28
- package/util/Shortcut.js +0 -28
- package/util/Util.d.ts +0 -334
- package/util/Util.js +0 -844
- package/webgl/BezierConverter.d.ts +0 -59
- package/webgl/BezierConverter.js +0 -106
- package/webgl/CanvasGradientToWebGL.d.ts +0 -94
- package/webgl/CanvasGradientToWebGL.js +0 -181
- package/webgl/CanvasPatternToWebGL.d.ts +0 -39
- package/webgl/CanvasPatternToWebGL.js +0 -66
- package/webgl/CanvasToWebGLContext.d.ts +0 -596
- package/webgl/CanvasToWebGLContext.js +0 -1421
- package/webgl/CanvasToWebGLContextBlend.d.ts +0 -97
- package/webgl/CanvasToWebGLContextBlend.js +0 -299
- package/webgl/CanvasToWebGLContextGrid.d.ts +0 -74
- package/webgl/CanvasToWebGLContextGrid.js +0 -283
- package/webgl/CanvasToWebGLContextMask.d.ts +0 -113
- package/webgl/CanvasToWebGLContextMask.js +0 -436
- package/webgl/CanvasToWebGLContextPath.d.ts +0 -111
- package/webgl/CanvasToWebGLContextPath.js +0 -210
- package/webgl/CanvasToWebGLContextStyle.d.ts +0 -77
- package/webgl/CanvasToWebGLContextStyle.js +0 -139
- package/webgl/ColorBufferPool.d.ts +0 -58
- package/webgl/ColorBufferPool.js +0 -134
- package/webgl/FrameBufferManager.d.ts +0 -135
- package/webgl/FrameBufferManager.js +0 -358
- package/webgl/StencilBufferPool.d.ts +0 -56
- package/webgl/StencilBufferPool.js +0 -142
- package/webgl/TextureManager.d.ts +0 -130
- package/webgl/TextureManager.js +0 -296
- package/webgl/VertexArrayObjectManager.d.ts +0 -95
- package/webgl/VertexArrayObjectManager.js +0 -277
- package/webgl/WebGLFillMeshGenerator.d.ts +0 -31
- package/webgl/WebGLFillMeshGenerator.js +0 -101
- package/webgl/WebGLStrokeMeshGenerator.d.ts +0 -182
- package/webgl/WebGLStrokeMeshGenerator.js +0 -504
- package/webgl/shader/CanvasToWebGLShader.d.ts +0 -85
- package/webgl/shader/CanvasToWebGLShader.js +0 -192
- package/webgl/shader/CanvasToWebGLShaderList.d.ts +0 -70
- package/webgl/shader/CanvasToWebGLShaderList.js +0 -109
- package/webgl/shader/GradientLUTGenerator.d.ts +0 -36
- package/webgl/shader/GradientLUTGenerator.js +0 -123
- package/webgl/shader/WebGLShaderUniform.d.ts +0 -52
- package/webgl/shader/WebGLShaderUniform.js +0 -165
- package/webgl/shader/fragment/FragmentShaderLibrary.d.ts +0 -18
- package/webgl/shader/fragment/FragmentShaderLibrary.js +0 -35
- package/webgl/shader/fragment/FragmentShaderSource.d.ts +0 -29
- package/webgl/shader/fragment/FragmentShaderSource.js +0 -99
- package/webgl/shader/fragment/FragmentShaderSourceBlend.d.ts +0 -67
- package/webgl/shader/fragment/FragmentShaderSourceBlend.js +0 -319
- package/webgl/shader/fragment/FragmentShaderSourceGradient.d.ts +0 -44
- package/webgl/shader/fragment/FragmentShaderSourceGradient.js +0 -114
- package/webgl/shader/fragment/FragmentShaderSourceGradientLUT.d.ts +0 -14
- package/webgl/shader/fragment/FragmentShaderSourceGradientLUT.js +0 -58
- package/webgl/shader/fragment/FragmentShaderSourceTexture.d.ts +0 -12
- package/webgl/shader/fragment/FragmentShaderSourceTexture.js +0 -36
- package/webgl/shader/fragment/filter/FragmentShaderSourceBlurFilter.d.ts +0 -12
- package/webgl/shader/fragment/filter/FragmentShaderSourceBlurFilter.js +0 -42
- package/webgl/shader/fragment/filter/FragmentShaderSourceColorMatrixFilter.d.ts +0 -11
- package/webgl/shader/fragment/filter/FragmentShaderSourceColorMatrixFilter.js +0 -35
- package/webgl/shader/fragment/filter/FragmentShaderSourceConvolutionFilter.d.ts +0 -16
- package/webgl/shader/fragment/filter/FragmentShaderSourceConvolutionFilter.js +0 -80
- package/webgl/shader/fragment/filter/FragmentShaderSourceDisplacementMapFilter.d.ts +0 -15
- package/webgl/shader/fragment/filter/FragmentShaderSourceDisplacementMapFilter.js +0 -106
- package/webgl/shader/fragment/filter/FragmentShaderSourceFilter.d.ts +0 -112
- package/webgl/shader/fragment/filter/FragmentShaderSourceFilter.js +0 -275
- package/webgl/shader/variants/BlendShaderVariantCollection.d.ts +0 -99
- package/webgl/shader/variants/BlendShaderVariantCollection.js +0 -239
- package/webgl/shader/variants/FilterShaderVariantCollection.d.ts +0 -150
- package/webgl/shader/variants/FilterShaderVariantCollection.js +0 -395
- package/webgl/shader/variants/GradientLUTShaderVariantCollection.d.ts +0 -49
- package/webgl/shader/variants/GradientLUTShaderVariantCollection.js +0 -107
- package/webgl/shader/variants/GradientShapeShaderVariantCollection.d.ts +0 -61
- package/webgl/shader/variants/GradientShapeShaderVariantCollection.js +0 -196
- package/webgl/shader/variants/ShapeShaderVariantCollection.d.ts +0 -117
- package/webgl/shader/variants/ShapeShaderVariantCollection.js +0 -427
- package/webgl/shader/vertex/VertexShaderLibrary.d.ts +0 -18
- package/webgl/shader/vertex/VertexShaderLibrary.js +0 -75
- package/webgl/shader/vertex/VertexShaderSource.d.ts +0 -23
- package/webgl/shader/vertex/VertexShaderSource.js +0 -92
- package/webgl/shader/vertex/VertexShaderSourceFill.d.ts +0 -45
- package/webgl/shader/vertex/VertexShaderSourceFill.js +0 -112
- package/webgl/shader/vertex/VertexShaderSourceStroke.d.ts +0 -27
- package/webgl/shader/vertex/VertexShaderSourceStroke.js +0 -149
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class
|
|
3
|
-
*/
|
|
4
|
-
export declare class TextureManager {
|
|
5
|
-
private readonly _$gl;
|
|
6
|
-
private readonly _$objectPool;
|
|
7
|
-
private readonly _$boundTextures;
|
|
8
|
-
private _$objectPoolArea;
|
|
9
|
-
private _$activeTexture;
|
|
10
|
-
_$maxWidth: number;
|
|
11
|
-
_$maxHeight: number;
|
|
12
|
-
/**
|
|
13
|
-
* @param {WebGL2RenderingContext} gl
|
|
14
|
-
* @constructor
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
|
-
constructor(gl: WebGL2RenderingContext);
|
|
18
|
-
/**
|
|
19
|
-
* @param {number} width
|
|
20
|
-
* @param {number} height
|
|
21
|
-
* @return {WebGLTexture}
|
|
22
|
-
* @method
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
_$createTexture(width: number, height: number): WebGLTexture;
|
|
26
|
-
/**
|
|
27
|
-
* @param {number} width
|
|
28
|
-
* @param {number} height
|
|
29
|
-
* @return {WebGLTexture}
|
|
30
|
-
* @method
|
|
31
|
-
* @private
|
|
32
|
-
*/
|
|
33
|
-
_$getTexture(width: number, height: number): WebGLTexture;
|
|
34
|
-
/**
|
|
35
|
-
* @param {number} width
|
|
36
|
-
* @param {number} height
|
|
37
|
-
* @param {Uint8Array} [pixels=null]
|
|
38
|
-
* @param {boolean} [premultiplied_alpha=false]
|
|
39
|
-
* @param {boolean} [flip_y=true]
|
|
40
|
-
* @method
|
|
41
|
-
* @return {WebGLTexture}
|
|
42
|
-
*/
|
|
43
|
-
create(width: number, height: number, pixels?: Uint8Array | null, premultiplied_alpha?: boolean, flip_y?: boolean): WebGLTexture;
|
|
44
|
-
/**
|
|
45
|
-
* @param {HTMLImageElement} image
|
|
46
|
-
* @param {boolean} [smoothing=false]
|
|
47
|
-
* @return {WebGLTexture}
|
|
48
|
-
* @method
|
|
49
|
-
* @public
|
|
50
|
-
*/
|
|
51
|
-
createFromImage(image: HTMLImageElement, smoothing?: boolean): WebGLTexture;
|
|
52
|
-
/**
|
|
53
|
-
* @param {HTMLCanvasElement} canvas
|
|
54
|
-
* @return {WebGLTexture}
|
|
55
|
-
* @method
|
|
56
|
-
* @public
|
|
57
|
-
*/
|
|
58
|
-
createFromCanvas(canvas: HTMLCanvasElement | OffscreenCanvas): WebGLTexture;
|
|
59
|
-
/**
|
|
60
|
-
* @param {HTMLVideoElement} video
|
|
61
|
-
* @param {boolean} [smoothing=false]
|
|
62
|
-
* @return {WebGLTexture}
|
|
63
|
-
* @method
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
66
|
-
createFromVideo(video: HTMLVideoElement, smoothing?: boolean): WebGLTexture;
|
|
67
|
-
/**
|
|
68
|
-
* @param {number} width
|
|
69
|
-
* @param {number} height
|
|
70
|
-
* @param {HTMLImageElement|HTMLCanvasElement|HTMLVideoElement} element
|
|
71
|
-
* @param {boolean} [smoothing=false]
|
|
72
|
-
* @return {WebGLTexture}
|
|
73
|
-
* @method
|
|
74
|
-
* @private
|
|
75
|
-
*/
|
|
76
|
-
_$createFromElement(width: number, height: number, element: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas, smoothing?: boolean): WebGLTexture;
|
|
77
|
-
/**
|
|
78
|
-
* @param {WebGLTexture} texture
|
|
79
|
-
* @return {void}
|
|
80
|
-
* @method
|
|
81
|
-
* @public
|
|
82
|
-
*/
|
|
83
|
-
release(texture: WebGLTexture): void;
|
|
84
|
-
/**
|
|
85
|
-
* @param {WebGLTexture} texture0
|
|
86
|
-
* @param {boolean|null} [smoothing0=null]
|
|
87
|
-
* @return {void}
|
|
88
|
-
* @method
|
|
89
|
-
* @public
|
|
90
|
-
*/
|
|
91
|
-
bind0(texture0: WebGLTexture, smoothing0?: boolean | null): void;
|
|
92
|
-
/**
|
|
93
|
-
* @param {WebGLTexture} texture0
|
|
94
|
-
* @param {WebGLTexture} texture1
|
|
95
|
-
* @param {boolean} [smoothing01=null]
|
|
96
|
-
* @return {void}
|
|
97
|
-
* @method
|
|
98
|
-
* @public
|
|
99
|
-
*/
|
|
100
|
-
bind01(texture0: WebGLTexture, texture1: WebGLTexture, smoothing01?: boolean | null): void;
|
|
101
|
-
/**
|
|
102
|
-
* @param {WebGLTexture} texture0
|
|
103
|
-
* @param {WebGLTexture} texture1
|
|
104
|
-
* @param {WebGLTexture} texture2
|
|
105
|
-
* @param {boolean} [smoothing2=null]
|
|
106
|
-
* @return {void}
|
|
107
|
-
* @method
|
|
108
|
-
* @public
|
|
109
|
-
*/
|
|
110
|
-
bind012(texture0: WebGLTexture, texture1: WebGLTexture, texture2: WebGLTexture, smoothing2?: boolean | null): void;
|
|
111
|
-
/**
|
|
112
|
-
* @param {WebGLTexture} texture0
|
|
113
|
-
* @param {WebGLTexture} texture2
|
|
114
|
-
* @param {boolean} [smoothing2=null]
|
|
115
|
-
* @return {void}
|
|
116
|
-
* @method
|
|
117
|
-
* @public
|
|
118
|
-
*/
|
|
119
|
-
bind02(texture0: WebGLTexture, texture2: WebGLTexture, smoothing2?: boolean | null): void;
|
|
120
|
-
/**
|
|
121
|
-
* @param {number} index
|
|
122
|
-
* @param {number} target
|
|
123
|
-
* @param {WebGLTexture} texture
|
|
124
|
-
* @param {boolean} smoothing
|
|
125
|
-
* @return {void}
|
|
126
|
-
* @method
|
|
127
|
-
* @private
|
|
128
|
-
*/
|
|
129
|
-
_$bindTexture(index: number, target: number, texture?: WebGLTexture | null, smoothing?: boolean | null): void;
|
|
130
|
-
}
|
package/webgl/TextureManager.js
DELETED
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class
|
|
3
|
-
*/
|
|
4
|
-
export class TextureManager {
|
|
5
|
-
/**
|
|
6
|
-
* @param {WebGL2RenderingContext} gl
|
|
7
|
-
* @constructor
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
constructor(gl) {
|
|
11
|
-
/**
|
|
12
|
-
* @type {WebGL2RenderingContext}
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
this._$gl = gl;
|
|
16
|
-
/**
|
|
17
|
-
* @type {array}
|
|
18
|
-
* @private
|
|
19
|
-
*/
|
|
20
|
-
this._$objectPool = [];
|
|
21
|
-
/**
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @default 0
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
this._$objectPoolArea = 0;
|
|
27
|
-
/**
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @default -1
|
|
30
|
-
* @private
|
|
31
|
-
*/
|
|
32
|
-
this._$activeTexture = -1;
|
|
33
|
-
/**
|
|
34
|
-
* @type {array}
|
|
35
|
-
* @private
|
|
36
|
-
*/
|
|
37
|
-
this._$boundTextures = [null, null, null];
|
|
38
|
-
/**
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @default 0
|
|
41
|
-
* @private
|
|
42
|
-
*/
|
|
43
|
-
this._$maxWidth = 0;
|
|
44
|
-
/**
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @default 0
|
|
47
|
-
* @private
|
|
48
|
-
*/
|
|
49
|
-
this._$maxHeight = 0;
|
|
50
|
-
this._$gl.pixelStorei(this._$gl.UNPACK_ALIGNMENT, 1);
|
|
51
|
-
this._$gl.pixelStorei(this._$gl.UNPACK_FLIP_Y_WEBGL, true);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* @param {number} width
|
|
55
|
-
* @param {number} height
|
|
56
|
-
* @return {WebGLTexture}
|
|
57
|
-
* @method
|
|
58
|
-
* @private
|
|
59
|
-
*/
|
|
60
|
-
_$createTexture(width, height) {
|
|
61
|
-
const texture = this._$gl.createTexture();
|
|
62
|
-
texture.width = 0;
|
|
63
|
-
texture.height = 0;
|
|
64
|
-
texture.area = 0;
|
|
65
|
-
texture.dirty = true;
|
|
66
|
-
texture.smoothing = true;
|
|
67
|
-
texture._$offsetX = 0;
|
|
68
|
-
texture._$offsetY = 0;
|
|
69
|
-
this.bind0(texture, false);
|
|
70
|
-
this._$gl.texParameteri(this._$gl.TEXTURE_2D, this._$gl.TEXTURE_WRAP_S, this._$gl.CLAMP_TO_EDGE);
|
|
71
|
-
this._$gl.texParameteri(this._$gl.TEXTURE_2D, this._$gl.TEXTURE_WRAP_T, this._$gl.CLAMP_TO_EDGE);
|
|
72
|
-
texture.width = width;
|
|
73
|
-
texture.height = height;
|
|
74
|
-
texture.area = width * height;
|
|
75
|
-
texture.dirty = false;
|
|
76
|
-
this._$gl.texStorage2D(this._$gl.TEXTURE_2D, 1, this._$gl.RGBA8, width, height);
|
|
77
|
-
return texture;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* @param {number} width
|
|
81
|
-
* @param {number} height
|
|
82
|
-
* @return {WebGLTexture}
|
|
83
|
-
* @method
|
|
84
|
-
* @private
|
|
85
|
-
*/
|
|
86
|
-
_$getTexture(width, height) {
|
|
87
|
-
// プールに同じサイズのテクスチャがあれば、それを使い回す
|
|
88
|
-
for (let i = 0; i < this._$objectPool.length; i++) {
|
|
89
|
-
const texture = this._$objectPool[i];
|
|
90
|
-
if (texture.width === width && texture.height === height) {
|
|
91
|
-
this._$objectPool.splice(i, 1);
|
|
92
|
-
this._$objectPoolArea -= texture.area;
|
|
93
|
-
this.bind0(texture, false);
|
|
94
|
-
return texture;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return this._$createTexture(width, height);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* @param {number} width
|
|
101
|
-
* @param {number} height
|
|
102
|
-
* @param {Uint8Array} [pixels=null]
|
|
103
|
-
* @param {boolean} [premultiplied_alpha=false]
|
|
104
|
-
* @param {boolean} [flip_y=true]
|
|
105
|
-
* @method
|
|
106
|
-
* @return {WebGLTexture}
|
|
107
|
-
*/
|
|
108
|
-
create(width, height, pixels = null, premultiplied_alpha = false, flip_y = true) {
|
|
109
|
-
const texture = this._$getTexture(width, height);
|
|
110
|
-
if (premultiplied_alpha) {
|
|
111
|
-
this._$gl.pixelStorei(this._$gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);
|
|
112
|
-
}
|
|
113
|
-
if (!flip_y) {
|
|
114
|
-
this._$gl.pixelStorei(this._$gl.UNPACK_FLIP_Y_WEBGL, false);
|
|
115
|
-
}
|
|
116
|
-
if (texture.width !== width || texture.height !== height) {
|
|
117
|
-
texture.width = width;
|
|
118
|
-
texture.height = height;
|
|
119
|
-
texture.area = width * height;
|
|
120
|
-
texture.dirty = false;
|
|
121
|
-
this._$gl.texImage2D(this._$gl.TEXTURE_2D, 0, this._$gl.RGBA, width, height, 0, this._$gl.RGBA, this._$gl.UNSIGNED_BYTE, pixels);
|
|
122
|
-
}
|
|
123
|
-
else if (pixels) {
|
|
124
|
-
texture.dirty = false;
|
|
125
|
-
this._$gl.texSubImage2D(this._$gl.TEXTURE_2D, 0, 0, 0, width, height, this._$gl.RGBA, this._$gl.UNSIGNED_BYTE, pixels);
|
|
126
|
-
}
|
|
127
|
-
if (premultiplied_alpha) {
|
|
128
|
-
this._$gl.pixelStorei(this._$gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false);
|
|
129
|
-
}
|
|
130
|
-
if (!flip_y) {
|
|
131
|
-
this._$gl.pixelStorei(this._$gl.UNPACK_FLIP_Y_WEBGL, true);
|
|
132
|
-
}
|
|
133
|
-
return texture;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* @param {HTMLImageElement} image
|
|
137
|
-
* @param {boolean} [smoothing=false]
|
|
138
|
-
* @return {WebGLTexture}
|
|
139
|
-
* @method
|
|
140
|
-
* @public
|
|
141
|
-
*/
|
|
142
|
-
createFromImage(image, smoothing = false) {
|
|
143
|
-
return this._$createFromElement(image.width, image.height, image, smoothing);
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* @param {HTMLCanvasElement} canvas
|
|
147
|
-
* @return {WebGLTexture}
|
|
148
|
-
* @method
|
|
149
|
-
* @public
|
|
150
|
-
*/
|
|
151
|
-
createFromCanvas(canvas) {
|
|
152
|
-
return this._$createFromElement(canvas.width, canvas.height, canvas, false);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* @param {HTMLVideoElement} video
|
|
156
|
-
* @param {boolean} [smoothing=false]
|
|
157
|
-
* @return {WebGLTexture}
|
|
158
|
-
* @method
|
|
159
|
-
* @public
|
|
160
|
-
*/
|
|
161
|
-
createFromVideo(video, smoothing = false) {
|
|
162
|
-
return this._$createFromElement(video.videoWidth, video.videoHeight, video, smoothing);
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* @param {number} width
|
|
166
|
-
* @param {number} height
|
|
167
|
-
* @param {HTMLImageElement|HTMLCanvasElement|HTMLVideoElement} element
|
|
168
|
-
* @param {boolean} [smoothing=false]
|
|
169
|
-
* @return {WebGLTexture}
|
|
170
|
-
* @method
|
|
171
|
-
* @private
|
|
172
|
-
*/
|
|
173
|
-
_$createFromElement(width, height, element, smoothing = false) {
|
|
174
|
-
const texture = this._$getTexture(width, height);
|
|
175
|
-
texture.dirty = false;
|
|
176
|
-
this.bind0(texture, smoothing);
|
|
177
|
-
this._$gl.pixelStorei(this._$gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);
|
|
178
|
-
if (texture.width !== width || texture.height !== height) {
|
|
179
|
-
texture.width = width;
|
|
180
|
-
texture.height = height;
|
|
181
|
-
texture.area = width * height;
|
|
182
|
-
this._$gl.texImage2D(this._$gl.TEXTURE_2D, 0, this._$gl.RGBA, this._$gl.RGBA, this._$gl.UNSIGNED_BYTE, element);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
this._$gl.texSubImage2D(this._$gl.TEXTURE_2D, 0, 0, 0, this._$gl.RGBA, this._$gl.UNSIGNED_BYTE, element);
|
|
186
|
-
}
|
|
187
|
-
this._$gl.pixelStorei(this._$gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false);
|
|
188
|
-
return texture;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* @param {WebGLTexture} texture
|
|
192
|
-
* @return {void}
|
|
193
|
-
* @method
|
|
194
|
-
* @public
|
|
195
|
-
*/
|
|
196
|
-
release(texture) {
|
|
197
|
-
// テクスチャのサイズが非常に大きい場合はプールしない
|
|
198
|
-
if (texture.area > this._$maxWidth * this._$maxHeight * 2) {
|
|
199
|
-
this._$gl.deleteTexture(texture);
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
texture.dirty = true;
|
|
203
|
-
this._$objectPool.push(texture);
|
|
204
|
-
this._$objectPoolArea += texture.area;
|
|
205
|
-
// プール容量が一定を超えたら、古いテクスチャから削除していく
|
|
206
|
-
if (this._$objectPool.length
|
|
207
|
-
&& this._$objectPoolArea > this._$maxWidth * this._$maxHeight * 10) {
|
|
208
|
-
const oldTexture = this._$objectPool.shift();
|
|
209
|
-
this._$objectPoolArea -= oldTexture.area;
|
|
210
|
-
this._$gl.deleteTexture(oldTexture);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* @param {WebGLTexture} texture0
|
|
215
|
-
* @param {boolean|null} [smoothing0=null]
|
|
216
|
-
* @return {void}
|
|
217
|
-
* @method
|
|
218
|
-
* @public
|
|
219
|
-
*/
|
|
220
|
-
bind0(texture0, smoothing0 = null) {
|
|
221
|
-
this._$bindTexture(2, this._$gl.TEXTURE2, null, null);
|
|
222
|
-
this._$bindTexture(1, this._$gl.TEXTURE1, null, null);
|
|
223
|
-
this._$bindTexture(0, this._$gl.TEXTURE0, texture0, smoothing0);
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* @param {WebGLTexture} texture0
|
|
227
|
-
* @param {WebGLTexture} texture1
|
|
228
|
-
* @param {boolean} [smoothing01=null]
|
|
229
|
-
* @return {void}
|
|
230
|
-
* @method
|
|
231
|
-
* @public
|
|
232
|
-
*/
|
|
233
|
-
bind01(texture0, texture1, smoothing01 = null) {
|
|
234
|
-
this._$bindTexture(2, this._$gl.TEXTURE2, null, null);
|
|
235
|
-
this._$bindTexture(1, this._$gl.TEXTURE1, texture1, smoothing01);
|
|
236
|
-
this._$bindTexture(0, this._$gl.TEXTURE0, texture0, smoothing01);
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* @param {WebGLTexture} texture0
|
|
240
|
-
* @param {WebGLTexture} texture1
|
|
241
|
-
* @param {WebGLTexture} texture2
|
|
242
|
-
* @param {boolean} [smoothing2=null]
|
|
243
|
-
* @return {void}
|
|
244
|
-
* @method
|
|
245
|
-
* @public
|
|
246
|
-
*/
|
|
247
|
-
bind012(texture0, texture1, texture2, smoothing2 = null) {
|
|
248
|
-
this._$bindTexture(2, this._$gl.TEXTURE2, texture2, smoothing2);
|
|
249
|
-
this._$bindTexture(1, this._$gl.TEXTURE1, texture1, null);
|
|
250
|
-
this._$bindTexture(0, this._$gl.TEXTURE0, texture0, null);
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* @param {WebGLTexture} texture0
|
|
254
|
-
* @param {WebGLTexture} texture2
|
|
255
|
-
* @param {boolean} [smoothing2=null]
|
|
256
|
-
* @return {void}
|
|
257
|
-
* @method
|
|
258
|
-
* @public
|
|
259
|
-
*/
|
|
260
|
-
bind02(texture0, texture2, smoothing2 = null) {
|
|
261
|
-
this._$bindTexture(2, this._$gl.TEXTURE2, texture2, smoothing2);
|
|
262
|
-
this._$bindTexture(1, this._$gl.TEXTURE1, null, null);
|
|
263
|
-
this._$bindTexture(0, this._$gl.TEXTURE0, texture0, null);
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* @param {number} index
|
|
267
|
-
* @param {number} target
|
|
268
|
-
* @param {WebGLTexture} texture
|
|
269
|
-
* @param {boolean} smoothing
|
|
270
|
-
* @return {void}
|
|
271
|
-
* @method
|
|
272
|
-
* @private
|
|
273
|
-
*/
|
|
274
|
-
_$bindTexture(index, target, texture = null, smoothing = null) {
|
|
275
|
-
const shouldBind = texture !== this._$boundTextures[index];
|
|
276
|
-
const shouldSmooth = smoothing !== null && texture !== null && smoothing !== texture.smoothing;
|
|
277
|
-
const shouldActive = (shouldBind || shouldSmooth || target === this._$gl.TEXTURE0)
|
|
278
|
-
&& target !== this._$activeTexture;
|
|
279
|
-
if (shouldActive) {
|
|
280
|
-
this._$activeTexture = target;
|
|
281
|
-
this._$gl.activeTexture(target);
|
|
282
|
-
}
|
|
283
|
-
if (shouldBind) {
|
|
284
|
-
this._$boundTextures[index] = texture;
|
|
285
|
-
this._$gl.bindTexture(this._$gl.TEXTURE_2D, texture);
|
|
286
|
-
}
|
|
287
|
-
if (shouldSmooth) {
|
|
288
|
-
if (texture) {
|
|
289
|
-
texture.smoothing = !!smoothing;
|
|
290
|
-
}
|
|
291
|
-
const filter = smoothing ? this._$gl.LINEAR : this._$gl.NEAREST;
|
|
292
|
-
this._$gl.texParameteri(this._$gl.TEXTURE_2D, this._$gl.TEXTURE_MIN_FILTER, filter);
|
|
293
|
-
this._$gl.texParameteri(this._$gl.TEXTURE_2D, this._$gl.TEXTURE_MAG_FILTER, filter);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import type { CapsStyle, JointStyle } from "../interface/StrokeTypeImpl";
|
|
2
|
-
/**
|
|
3
|
-
* @class
|
|
4
|
-
*/
|
|
5
|
-
export declare class VertexArrayObjectManager {
|
|
6
|
-
private _$gl;
|
|
7
|
-
private readonly _$fillVertexArrayPool;
|
|
8
|
-
private readonly _$strokeVertexArrayPool;
|
|
9
|
-
private _$boundVertexArray;
|
|
10
|
-
private readonly _$fillAttrib_vertex;
|
|
11
|
-
private readonly _$fillAttrib_bezier;
|
|
12
|
-
private readonly _$strokeAttrib_vertex;
|
|
13
|
-
private readonly _$strokeAttrib_option1;
|
|
14
|
-
private readonly _$strokeAttrib_option2;
|
|
15
|
-
private readonly _$strokeAttrib_type;
|
|
16
|
-
private readonly _$vertexBufferData;
|
|
17
|
-
private readonly _$commonVertexArray;
|
|
18
|
-
/**
|
|
19
|
-
* @param {WebGL2RenderingContext} gl
|
|
20
|
-
* @constructor
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
constructor(gl: WebGL2RenderingContext);
|
|
24
|
-
/**
|
|
25
|
-
* @param {number} begin
|
|
26
|
-
* @param {number} end
|
|
27
|
-
* @return {WebGLVertexArrayObject}
|
|
28
|
-
* @method
|
|
29
|
-
* @private
|
|
30
|
-
*/
|
|
31
|
-
_$getVertexArray(begin: number, end: number): WebGLVertexArrayObject;
|
|
32
|
-
/**
|
|
33
|
-
* @return {WebGLVertexArrayObject}
|
|
34
|
-
* @method
|
|
35
|
-
* @private
|
|
36
|
-
*/
|
|
37
|
-
_$getFillVertexArray(): WebGLVertexArrayObject;
|
|
38
|
-
/**
|
|
39
|
-
* @return {WebGLVertexArrayObject}
|
|
40
|
-
* @method
|
|
41
|
-
* @private
|
|
42
|
-
*/
|
|
43
|
-
_$getStrokeVertexArray(): WebGLVertexArrayObject;
|
|
44
|
-
/**
|
|
45
|
-
* @param {array} vertices
|
|
46
|
-
* @return {WebGLVertexArrayObject}
|
|
47
|
-
* @method
|
|
48
|
-
* @public
|
|
49
|
-
*/
|
|
50
|
-
createFill(vertices: any[]): WebGLVertexArrayObject;
|
|
51
|
-
/**
|
|
52
|
-
* @param {array} vertices
|
|
53
|
-
* @param {string} lineCap
|
|
54
|
-
* @param {string} lineJoin
|
|
55
|
-
* @return {WebGLVertexArrayObject}
|
|
56
|
-
* @method
|
|
57
|
-
* @public
|
|
58
|
-
*/
|
|
59
|
-
createStroke(vertices: any[], lineCap: CapsStyle, lineJoin: JointStyle): WebGLVertexArrayObject;
|
|
60
|
-
/**
|
|
61
|
-
* @param {WebGLVertexArrayObject} vertex_array
|
|
62
|
-
* @return {void}
|
|
63
|
-
* @method
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
66
|
-
releaseFill(vertex_array: WebGLVertexArrayObject): void;
|
|
67
|
-
/**
|
|
68
|
-
* @param {WebGLVertexArrayObject} vertex_array
|
|
69
|
-
* @return {void}
|
|
70
|
-
* @method
|
|
71
|
-
* @public
|
|
72
|
-
*/
|
|
73
|
-
releaseStroke(vertex_array: WebGLVertexArrayObject): void;
|
|
74
|
-
/**
|
|
75
|
-
* @param {WebGLVertexArrayObject} [vertex_array = null]
|
|
76
|
-
* @return {void}
|
|
77
|
-
* @method
|
|
78
|
-
* @public
|
|
79
|
-
*/
|
|
80
|
-
bind(vertex_array?: WebGLVertexArrayObject | null): void;
|
|
81
|
-
/**
|
|
82
|
-
* @return {void}
|
|
83
|
-
* @method
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
|
-
bindCommonVertexArray(): void;
|
|
87
|
-
/**
|
|
88
|
-
* @param {number} begin
|
|
89
|
-
* @param {number} end
|
|
90
|
-
* @return {void}
|
|
91
|
-
* @method
|
|
92
|
-
* @public
|
|
93
|
-
*/
|
|
94
|
-
bindGradientVertexArray(begin: number, end: number): void;
|
|
95
|
-
}
|