@gmcb/uv-ui 0.2.26
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/CHANGELOG.md +295 -0
- package/LICENSE +21 -0
- package/README.md +164 -0
- package/components/uv-action-sheet/props.js +50 -0
- package/components/uv-action-sheet/uv-action-sheet.vue +280 -0
- package/components/uv-album/uv-album.vue +312 -0
- package/components/uv-alert/props.js +45 -0
- package/components/uv-alert/uv-alert.vue +246 -0
- package/components/uv-avatar/props.js +85 -0
- package/components/uv-avatar/uv-avatar.vue +182 -0
- package/components/uv-avatar-group/props.js +53 -0
- package/components/uv-avatar-group/uv-avatar-group.vue +106 -0
- package/components/uv-back-top/props.js +58 -0
- package/components/uv-back-top/uv-back-top.vue +116 -0
- package/components/uv-badge/props.js +73 -0
- package/components/uv-badge/uv-badge.vue +176 -0
- package/components/uv-button/nvue.scss +46 -0
- package/components/uv-button/props.js +163 -0
- package/components/uv-button/uv-button.vue +529 -0
- package/components/uv-button/vue.scss +93 -0
- package/components/uv-calendar/calendar.js +546 -0
- package/components/uv-calendar/header.vue +104 -0
- package/components/uv-calendar/month.vue +616 -0
- package/components/uv-calendar/props.js +145 -0
- package/components/uv-calendar/uv-calendar.vue +390 -0
- package/components/uv-calendars/calendar-body.vue +376 -0
- package/components/uv-calendars/calendar-item.vue +248 -0
- package/components/uv-calendars/calendar.js +546 -0
- package/components/uv-calendars/i18n/en.json +12 -0
- package/components/uv-calendars/i18n/index.js +8 -0
- package/components/uv-calendars/i18n/zh-Hans.json +12 -0
- package/components/uv-calendars/i18n/zh-Hant.json +12 -0
- package/components/uv-calendars/util.js +435 -0
- package/components/uv-calendars/uv-calendars.vue +452 -0
- package/components/uv-cell/props.js +116 -0
- package/components/uv-cell/uv-cell.vue +209 -0
- package/components/uv-cell-group/props.js +15 -0
- package/components/uv-cell-group/uv-cell-group.vue +63 -0
- package/components/uv-checkbox/props.js +70 -0
- package/components/uv-checkbox/uv-checkbox.vue +371 -0
- package/components/uv-checkbox-group/props.js +84 -0
- package/components/uv-checkbox-group/uv-checkbox-group.vue +119 -0
- package/components/uv-code/props.js +35 -0
- package/components/uv-code/uv-code.vue +136 -0
- package/components/uv-code-input/props.js +83 -0
- package/components/uv-code-input/uv-code-input.vue +272 -0
- package/components/uv-col/props.js +30 -0
- package/components/uv-col/uv-col.vue +165 -0
- package/components/uv-collapse/props.js +20 -0
- package/components/uv-collapse/uv-collapse.vue +86 -0
- package/components/uv-collapse-item/props.js +60 -0
- package/components/uv-collapse-item/uv-collapse-item.vue +228 -0
- package/components/uv-column-notice/props.js +61 -0
- package/components/uv-column-notice/uv-column-notice.vue +176 -0
- package/components/uv-count-down/props.js +25 -0
- package/components/uv-count-down/utils.js +62 -0
- package/components/uv-count-down/uv-count-down.vue +169 -0
- package/components/uv-count-to/props.js +60 -0
- package/components/uv-count-to/uv-count-to.vue +187 -0
- package/components/uv-datetime-picker/props.js +130 -0
- package/components/uv-datetime-picker/uv-datetime-picker.vue +355 -0
- package/components/uv-divider/props.js +45 -0
- package/components/uv-divider/uv-divider.vue +113 -0
- package/components/uv-drop-down/uv-drop-down.vue +135 -0
- package/components/uv-drop-down-item/uv-drop-down-item.vue +169 -0
- package/components/uv-drop-down-popup/uv-drop-down-popup.vue +242 -0
- package/components/uv-empty/props.js +60 -0
- package/components/uv-empty/uv-empty.vue +126 -0
- package/components/uv-form/props.js +46 -0
- package/components/uv-form/uv-form.vue +209 -0
- package/components/uv-form/valid.js +1343 -0
- package/components/uv-form-item/props.js +49 -0
- package/components/uv-form-item/uv-form-item.vue +226 -0
- package/components/uv-gap/props.js +25 -0
- package/components/uv-gap/uv-gap.vue +36 -0
- package/components/uv-grid/props.js +20 -0
- package/components/uv-grid/uv-grid.vue +100 -0
- package/components/uv-grid-item/props.js +15 -0
- package/components/uv-grid-item/uv-grid-item.vue +223 -0
- package/components/uv-icon/icons.js +160 -0
- package/components/uv-icon/props.js +90 -0
- package/components/uv-icon/uv-icon.vue +226 -0
- package/components/uv-icon/uvicons.ttf +0 -0
- package/components/uv-image/props.js +100 -0
- package/components/uv-image/uv-image.vue +296 -0
- package/components/uv-index-anchor/props.js +30 -0
- package/components/uv-index-anchor/uv-index-anchor.vue +98 -0
- package/components/uv-index-item/uv-index-item.vue +87 -0
- package/components/uv-index-list/props.js +30 -0
- package/components/uv-index-list/uv-index-list.vue +461 -0
- package/components/uv-input/props.js +175 -0
- package/components/uv-input/uv-input.vue +348 -0
- package/components/uv-keyboard/props.js +95 -0
- package/components/uv-keyboard/uv-keyboard.vue +180 -0
- package/components/uv-keyboard-car/props.js +24 -0
- package/components/uv-keyboard-car/uv-keyboard-car.vue +347 -0
- package/components/uv-keyboard-number/props.js +19 -0
- package/components/uv-keyboard-number/uv-keyboard-number.vue +201 -0
- package/components/uv-line/props.js +34 -0
- package/components/uv-line/uv-line.vue +60 -0
- package/components/uv-line-progress/props.js +29 -0
- package/components/uv-line-progress/uv-line-progress.vue +146 -0
- package/components/uv-link/props.js +40 -0
- package/components/uv-link/uv-link.vue +83 -0
- package/components/uv-list/uv-list.vue +147 -0
- package/components/uv-list-item/uv-list-item.vue +535 -0
- package/components/uv-load-more/props.js +95 -0
- package/components/uv-load-more/uv-load-more.vue +152 -0
- package/components/uv-loading-icon/props.js +67 -0
- package/components/uv-loading-icon/uv-loading-icon.vue +347 -0
- package/components/uv-loading-page/props.js +55 -0
- package/components/uv-loading-page/uv-loading-page.vue +96 -0
- package/components/uv-modal/props.js +90 -0
- package/components/uv-modal/uv-modal.vue +245 -0
- package/components/uv-navbar/props.js +89 -0
- package/components/uv-navbar/uv-navbar.vue +245 -0
- package/components/uv-no-network/props.js +20 -0
- package/components/uv-no-network/uv-no-network.vue +222 -0
- package/components/uv-notice-bar/props.js +76 -0
- package/components/uv-notice-bar/uv-notice-bar.vue +110 -0
- package/components/uv-notify/props.js +45 -0
- package/components/uv-notify/uv-notify.vue +220 -0
- package/components/uv-number-box/props.js +118 -0
- package/components/uv-number-box/uv-number-box.vue +397 -0
- package/components/uv-overlay/props.js +25 -0
- package/components/uv-overlay/uv-overlay.vue +85 -0
- package/components/uv-parse/node/node.vue +576 -0
- package/components/uv-parse/parser.js +1335 -0
- package/components/uv-parse/uv-parse.vue +498 -0
- package/components/uv-pick-color/colors.js +217 -0
- package/components/uv-pick-color/props.js +47 -0
- package/components/uv-pick-color/uv-pick-color.vue +551 -0
- package/components/uv-picker/props.js +95 -0
- package/components/uv-picker/uv-picker.vue +329 -0
- package/components/uv-popup/keypress.js +45 -0
- package/components/uv-popup/uv-popup.vue +537 -0
- package/components/uv-preview-video/uv-preview-video.vue +52 -0
- package/components/uv-qrcode/cache.js +1 -0
- package/components/uv-qrcode/gcanvas/bridge/bridge-weex.js +241 -0
- package/components/uv-qrcode/gcanvas/context-2d/FillStyleLinearGradient.js +18 -0
- package/components/uv-qrcode/gcanvas/context-2d/FillStylePattern.js +8 -0
- package/components/uv-qrcode/gcanvas/context-2d/FillStyleRadialGradient.js +17 -0
- package/components/uv-qrcode/gcanvas/context-2d/RenderingContext.js +666 -0
- package/components/uv-qrcode/gcanvas/context-webgl/ActiveInfo.js +11 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Buffer.js +21 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Framebuffer.js +21 -0
- package/components/uv-qrcode/gcanvas/context-webgl/GLenum.js +298 -0
- package/components/uv-qrcode/gcanvas/context-webgl/GLmethod.js +142 -0
- package/components/uv-qrcode/gcanvas/context-webgl/GLtype.js +23 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Program.js +21 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Renderbuffer.js +21 -0
- package/components/uv-qrcode/gcanvas/context-webgl/RenderingContext.js +1191 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Shader.js +22 -0
- package/components/uv-qrcode/gcanvas/context-webgl/ShaderPrecisionFormat.js +11 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Texture.js +22 -0
- package/components/uv-qrcode/gcanvas/context-webgl/UniformLocation.js +22 -0
- package/components/uv-qrcode/gcanvas/context-webgl/classUtils.js +3 -0
- package/components/uv-qrcode/gcanvas/env/canvas.js +74 -0
- package/components/uv-qrcode/gcanvas/env/image.js +96 -0
- package/components/uv-qrcode/gcanvas/env/tool.js +24 -0
- package/components/uv-qrcode/gcanvas/index.js +39 -0
- package/components/uv-qrcode/props.js +85 -0
- package/components/uv-qrcode/qrcode.js +34 -0
- package/components/uv-qrcode/queue.js +41 -0
- package/components/uv-qrcode/uv-qrcode.vue +1038 -0
- package/components/uv-radio/props.js +65 -0
- package/components/uv-radio/uv-radio.vue +349 -0
- package/components/uv-radio-group/props.js +89 -0
- package/components/uv-radio-group/uv-radio-group.vue +115 -0
- package/components/uv-rate/props.js +73 -0
- package/components/uv-rate/uv-rate.vue +274 -0
- package/components/uv-read-more/props.js +62 -0
- package/components/uv-read-more/uv-read-more.vue +162 -0
- package/components/uv-row/props.js +20 -0
- package/components/uv-row/uv-row.vue +95 -0
- package/components/uv-row-notice/props.js +40 -0
- package/components/uv-row-notice/uv-row-notice.vue +341 -0
- package/components/uv-safe-bottom/uv-safe-bottom.vue +67 -0
- package/components/uv-scroll-list/nvue.js +29 -0
- package/components/uv-scroll-list/props.js +35 -0
- package/components/uv-scroll-list/scrollWxs.wxs +51 -0
- package/components/uv-scroll-list/uv-scroll-list.vue +218 -0
- package/components/uv-search/props.js +127 -0
- package/components/uv-search/uv-search.vue +311 -0
- package/components/uv-skeleton/props.js +65 -0
- package/components/uv-skeleton/uv-skeleton.vue +250 -0
- package/components/uv-skeletons/uv-skeletons.vue +247 -0
- package/components/uv-slider/props.js +58 -0
- package/components/uv-slider/uv-slider.vue +58 -0
- package/components/uv-status-bar/props.js +8 -0
- package/components/uv-status-bar/uv-status-bar.vue +54 -0
- package/components/uv-steps/props.js +40 -0
- package/components/uv-steps/uv-steps.vue +83 -0
- package/components/uv-steps-item/props.js +25 -0
- package/components/uv-steps-item/uv-steps-item.vue +347 -0
- package/components/uv-sticky/props.js +41 -0
- package/components/uv-sticky/uv-sticky.vue +223 -0
- package/components/uv-subsection/props.js +54 -0
- package/components/uv-subsection/uv-subsection.vue +269 -0
- package/components/uv-swipe-action/props.js +10 -0
- package/components/uv-swipe-action/uv-swipe-action.vue +65 -0
- package/components/uv-swipe-action-item/index - backup.wxs +256 -0
- package/components/uv-swipe-action-item/index.wxs +225 -0
- package/components/uv-swipe-action-item/nvue - backup.js +264 -0
- package/components/uv-swipe-action-item/nvue.js +182 -0
- package/components/uv-swipe-action-item/props.js +40 -0
- package/components/uv-swipe-action-item/uv-swipe-action-item.vue +200 -0
- package/components/uv-swipe-action-item/wxs.js +15 -0
- package/components/uv-swiper/props.js +136 -0
- package/components/uv-swiper/uv-swiper.vue +263 -0
- package/components/uv-swiper-indicator/props.js +30 -0
- package/components/uv-swiper-indicator/uv-swiper-indicator.vue +112 -0
- package/components/uv-switch/props.js +58 -0
- package/components/uv-switch/uv-switch.vue +182 -0
- package/components/uv-tabbar/props.js +50 -0
- package/components/uv-tabbar/uv-tabbar.vue +146 -0
- package/components/uv-tabbar-item/props.js +40 -0
- package/components/uv-tabbar-item/uv-tabbar-item.vue +146 -0
- package/components/uv-tabs/props.js +71 -0
- package/components/uv-tabs/uv-tabs.vue +391 -0
- package/components/uv-tags/props.js +104 -0
- package/components/uv-tags/uv-tags.vue +379 -0
- package/components/uv-text/props.js +113 -0
- package/components/uv-text/uv-text.vue +218 -0
- package/components/uv-text/value.js +87 -0
- package/components/uv-textarea/props.js +138 -0
- package/components/uv-textarea/uv-textarea.vue +238 -0
- package/components/uv-toast/uv-toast.vue +292 -0
- package/components/uv-toolbar/props.js +40 -0
- package/components/uv-toolbar/uv-toolbar.vue +109 -0
- package/components/uv-tooltip/props.js +60 -0
- package/components/uv-tooltip/uv-tooltip.vue +372 -0
- package/components/uv-transition/createAnimation.js +131 -0
- package/components/uv-transition/props.js +31 -0
- package/components/uv-transition/uv-transition.vue +320 -0
- package/components/uv-upload/mixin.js +22 -0
- package/components/uv-upload/props.js +130 -0
- package/components/uv-upload/utils.js +151 -0
- package/components/uv-upload/uv-upload.vue +488 -0
- package/components/uv-vtabs/props.js +79 -0
- package/components/uv-vtabs/uv-vtabs.vue +438 -0
- package/components/uv-vtabs-item/uv-vtabs-item.vue +68 -0
- package/components/uv-waterfall/props.js +69 -0
- package/components/uv-waterfall/uv-waterfall.vue +265 -0
- package/index.js +82 -0
- package/index.scss +7 -0
- package/libs/config/config.js +34 -0
- package/libs/css/color.scss +32 -0
- package/libs/css/common.scss +100 -0
- package/libs/css/components.scss +23 -0
- package/libs/css/variable.scss +111 -0
- package/libs/css/vue.scss +40 -0
- package/libs/function/colorGradient.js +134 -0
- package/libs/function/compress.js +27 -0
- package/libs/function/debounce.js +29 -0
- package/libs/function/digit.js +167 -0
- package/libs/function/index.js +734 -0
- package/libs/function/platform.js +75 -0
- package/libs/function/test.js +287 -0
- package/libs/function/throttle.js +30 -0
- package/libs/luch-request/adapters/index.js +132 -0
- package/libs/luch-request/core/InterceptorManager.js +51 -0
- package/libs/luch-request/core/Request.js +201 -0
- package/libs/luch-request/core/buildFullPath.js +20 -0
- package/libs/luch-request/core/defaults.js +33 -0
- package/libs/luch-request/core/dispatchRequest.js +6 -0
- package/libs/luch-request/core/mergeConfig.js +126 -0
- package/libs/luch-request/core/settle.js +16 -0
- package/libs/luch-request/helpers/buildURL.js +64 -0
- package/libs/luch-request/helpers/combineURLs.js +14 -0
- package/libs/luch-request/helpers/isAbsoluteURL.js +14 -0
- package/libs/luch-request/index.d.ts +197 -0
- package/libs/luch-request/index.js +2 -0
- package/libs/luch-request/utils/clone.js +264 -0
- package/libs/luch-request/utils.js +135 -0
- package/libs/mixin/button.js +13 -0
- package/libs/mixin/mixin.js +172 -0
- package/libs/mixin/mpMixin.js +8 -0
- package/libs/mixin/mpShare.js +13 -0
- package/libs/mixin/openType.js +47 -0
- package/libs/mixin/touch.js +59 -0
- package/libs/util/dayjs.js +216 -0
- package/libs/util/route.js +126 -0
- package/package.json +28 -0
- package/theme.scss +43 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"DEPTH_BUFFER_BIT": 256,
|
|
3
|
+
"STENCIL_BUFFER_BIT": 1024,
|
|
4
|
+
"COLOR_BUFFER_BIT": 16384,
|
|
5
|
+
"POINTS": 0,
|
|
6
|
+
"LINES": 1,
|
|
7
|
+
"LINE_LOOP": 2,
|
|
8
|
+
"LINE_STRIP": 3,
|
|
9
|
+
"TRIANGLES": 4,
|
|
10
|
+
"TRIANGLE_STRIP": 5,
|
|
11
|
+
"TRIANGLE_FAN": 6,
|
|
12
|
+
"ZERO": 0,
|
|
13
|
+
"ONE": 1,
|
|
14
|
+
"SRC_COLOR": 768,
|
|
15
|
+
"ONE_MINUS_SRC_COLOR": 769,
|
|
16
|
+
"SRC_ALPHA": 770,
|
|
17
|
+
"ONE_MINUS_SRC_ALPHA": 771,
|
|
18
|
+
"DST_ALPHA": 772,
|
|
19
|
+
"ONE_MINUS_DST_ALPHA": 773,
|
|
20
|
+
"DST_COLOR": 774,
|
|
21
|
+
"ONE_MINUS_DST_COLOR": 775,
|
|
22
|
+
"SRC_ALPHA_SATURATE": 776,
|
|
23
|
+
"FUNC_ADD": 32774,
|
|
24
|
+
"BLEND_EQUATION": 32777,
|
|
25
|
+
"BLEND_EQUATION_RGB": 32777,
|
|
26
|
+
"BLEND_EQUATION_ALPHA": 34877,
|
|
27
|
+
"FUNC_SUBTRACT": 32778,
|
|
28
|
+
"FUNC_REVERSE_SUBTRACT": 32779,
|
|
29
|
+
"BLEND_DST_RGB": 32968,
|
|
30
|
+
"BLEND_SRC_RGB": 32969,
|
|
31
|
+
"BLEND_DST_ALPHA": 32970,
|
|
32
|
+
"BLEND_SRC_ALPHA": 32971,
|
|
33
|
+
"CONSTANT_COLOR": 32769,
|
|
34
|
+
"ONE_MINUS_CONSTANT_COLOR": 32770,
|
|
35
|
+
"CONSTANT_ALPHA": 32771,
|
|
36
|
+
"ONE_MINUS_CONSTANT_ALPHA": 32772,
|
|
37
|
+
"BLEND_COLOR": 32773,
|
|
38
|
+
"ARRAY_BUFFER": 34962,
|
|
39
|
+
"ELEMENT_ARRAY_BUFFER": 34963,
|
|
40
|
+
"ARRAY_BUFFER_BINDING": 34964,
|
|
41
|
+
"ELEMENT_ARRAY_BUFFER_BINDING": 34965,
|
|
42
|
+
"STREAM_DRAW": 35040,
|
|
43
|
+
"STATIC_DRAW": 35044,
|
|
44
|
+
"DYNAMIC_DRAW": 35048,
|
|
45
|
+
"BUFFER_SIZE": 34660,
|
|
46
|
+
"BUFFER_USAGE": 34661,
|
|
47
|
+
"CURRENT_VERTEX_ATTRIB": 34342,
|
|
48
|
+
"FRONT": 1028,
|
|
49
|
+
"BACK": 1029,
|
|
50
|
+
"FRONT_AND_BACK": 1032,
|
|
51
|
+
"TEXTURE_2D": 3553,
|
|
52
|
+
"CULL_FACE": 2884,
|
|
53
|
+
"BLEND": 3042,
|
|
54
|
+
"DITHER": 3024,
|
|
55
|
+
"STENCIL_TEST": 2960,
|
|
56
|
+
"DEPTH_TEST": 2929,
|
|
57
|
+
"SCISSOR_TEST": 3089,
|
|
58
|
+
"POLYGON_OFFSET_FILL": 32823,
|
|
59
|
+
"SAMPLE_ALPHA_TO_COVERAGE": 32926,
|
|
60
|
+
"SAMPLE_COVERAGE": 32928,
|
|
61
|
+
"NO_ERROR": 0,
|
|
62
|
+
"INVALID_ENUM": 1280,
|
|
63
|
+
"INVALID_VALUE": 1281,
|
|
64
|
+
"INVALID_OPERATION": 1282,
|
|
65
|
+
"OUT_OF_MEMORY": 1285,
|
|
66
|
+
"CW": 2304,
|
|
67
|
+
"CCW": 2305,
|
|
68
|
+
"LINE_WIDTH": 2849,
|
|
69
|
+
"ALIASED_POINT_SIZE_RANGE": 33901,
|
|
70
|
+
"ALIASED_LINE_WIDTH_RANGE": 33902,
|
|
71
|
+
"CULL_FACE_MODE": 2885,
|
|
72
|
+
"FRONT_FACE": 2886,
|
|
73
|
+
"DEPTH_RANGE": 2928,
|
|
74
|
+
"DEPTH_WRITEMASK": 2930,
|
|
75
|
+
"DEPTH_CLEAR_VALUE": 2931,
|
|
76
|
+
"DEPTH_FUNC": 2932,
|
|
77
|
+
"STENCIL_CLEAR_VALUE": 2961,
|
|
78
|
+
"STENCIL_FUNC": 2962,
|
|
79
|
+
"STENCIL_FAIL": 2964,
|
|
80
|
+
"STENCIL_PASS_DEPTH_FAIL": 2965,
|
|
81
|
+
"STENCIL_PASS_DEPTH_PASS": 2966,
|
|
82
|
+
"STENCIL_REF": 2967,
|
|
83
|
+
"STENCIL_VALUE_MASK": 2963,
|
|
84
|
+
"STENCIL_WRITEMASK": 2968,
|
|
85
|
+
"STENCIL_BACK_FUNC": 34816,
|
|
86
|
+
"STENCIL_BACK_FAIL": 34817,
|
|
87
|
+
"STENCIL_BACK_PASS_DEPTH_FAIL": 34818,
|
|
88
|
+
"STENCIL_BACK_PASS_DEPTH_PASS": 34819,
|
|
89
|
+
"STENCIL_BACK_REF": 36003,
|
|
90
|
+
"STENCIL_BACK_VALUE_MASK": 36004,
|
|
91
|
+
"STENCIL_BACK_WRITEMASK": 36005,
|
|
92
|
+
"VIEWPORT": 2978,
|
|
93
|
+
"SCISSOR_BOX": 3088,
|
|
94
|
+
"COLOR_CLEAR_VALUE": 3106,
|
|
95
|
+
"COLOR_WRITEMASK": 3107,
|
|
96
|
+
"UNPACK_ALIGNMENT": 3317,
|
|
97
|
+
"PACK_ALIGNMENT": 3333,
|
|
98
|
+
"MAX_TEXTURE_SIZE": 3379,
|
|
99
|
+
"MAX_VIEWPORT_DIMS": 3386,
|
|
100
|
+
"SUBPIXEL_BITS": 3408,
|
|
101
|
+
"RED_BITS": 3410,
|
|
102
|
+
"GREEN_BITS": 3411,
|
|
103
|
+
"BLUE_BITS": 3412,
|
|
104
|
+
"ALPHA_BITS": 3413,
|
|
105
|
+
"DEPTH_BITS": 3414,
|
|
106
|
+
"STENCIL_BITS": 3415,
|
|
107
|
+
"POLYGON_OFFSET_UNITS": 10752,
|
|
108
|
+
"POLYGON_OFFSET_FACTOR": 32824,
|
|
109
|
+
"TEXTURE_BINDING_2D": 32873,
|
|
110
|
+
"SAMPLE_BUFFERS": 32936,
|
|
111
|
+
"SAMPLES": 32937,
|
|
112
|
+
"SAMPLE_COVERAGE_VALUE": 32938,
|
|
113
|
+
"SAMPLE_COVERAGE_INVERT": 32939,
|
|
114
|
+
"COMPRESSED_TEXTURE_FORMATS": 34467,
|
|
115
|
+
"DONT_CARE": 4352,
|
|
116
|
+
"FASTEST": 4353,
|
|
117
|
+
"NICEST": 4354,
|
|
118
|
+
"GENERATE_MIPMAP_HINT": 33170,
|
|
119
|
+
"BYTE": 5120,
|
|
120
|
+
"UNSIGNED_BYTE": 5121,
|
|
121
|
+
"SHORT": 5122,
|
|
122
|
+
"UNSIGNED_SHORT": 5123,
|
|
123
|
+
"INT": 5124,
|
|
124
|
+
"UNSIGNED_INT": 5125,
|
|
125
|
+
"FLOAT": 5126,
|
|
126
|
+
"DEPTH_COMPONENT": 6402,
|
|
127
|
+
"ALPHA": 6406,
|
|
128
|
+
"RGB": 6407,
|
|
129
|
+
"RGBA": 6408,
|
|
130
|
+
"LUMINANCE": 6409,
|
|
131
|
+
"LUMINANCE_ALPHA": 6410,
|
|
132
|
+
"UNSIGNED_SHORT_4_4_4_4": 32819,
|
|
133
|
+
"UNSIGNED_SHORT_5_5_5_1": 32820,
|
|
134
|
+
"UNSIGNED_SHORT_5_6_5": 33635,
|
|
135
|
+
"FRAGMENT_SHADER": 35632,
|
|
136
|
+
"VERTEX_SHADER": 35633,
|
|
137
|
+
"MAX_VERTEX_ATTRIBS": 34921,
|
|
138
|
+
"MAX_VERTEX_UNIFORM_VECTORS": 36347,
|
|
139
|
+
"MAX_VARYING_VECTORS": 36348,
|
|
140
|
+
"MAX_COMBINED_TEXTURE_IMAGE_UNITS": 35661,
|
|
141
|
+
"MAX_VERTEX_TEXTURE_IMAGE_UNITS": 35660,
|
|
142
|
+
"MAX_TEXTURE_IMAGE_UNITS": 34930,
|
|
143
|
+
"MAX_FRAGMENT_UNIFORM_VECTORS": 36349,
|
|
144
|
+
"SHADER_TYPE": 35663,
|
|
145
|
+
"DELETE_STATUS": 35712,
|
|
146
|
+
"LINK_STATUS": 35714,
|
|
147
|
+
"VALIDATE_STATUS": 35715,
|
|
148
|
+
"ATTACHED_SHADERS": 35717,
|
|
149
|
+
"ACTIVE_UNIFORMS": 35718,
|
|
150
|
+
"ACTIVE_ATTRIBUTES": 35721,
|
|
151
|
+
"SHADING_LANGUAGE_VERSION": 35724,
|
|
152
|
+
"CURRENT_PROGRAM": 35725,
|
|
153
|
+
"NEVER": 512,
|
|
154
|
+
"LESS": 513,
|
|
155
|
+
"EQUAL": 514,
|
|
156
|
+
"LEQUAL": 515,
|
|
157
|
+
"GREATER": 516,
|
|
158
|
+
"NOTEQUAL": 517,
|
|
159
|
+
"GEQUAL": 518,
|
|
160
|
+
"ALWAYS": 519,
|
|
161
|
+
"KEEP": 7680,
|
|
162
|
+
"REPLACE": 7681,
|
|
163
|
+
"INCR": 7682,
|
|
164
|
+
"DECR": 7683,
|
|
165
|
+
"INVERT": 5386,
|
|
166
|
+
"INCR_WRAP": 34055,
|
|
167
|
+
"DECR_WRAP": 34056,
|
|
168
|
+
"VENDOR": 7936,
|
|
169
|
+
"RENDERER": 7937,
|
|
170
|
+
"VERSION": 7938,
|
|
171
|
+
"NEAREST": 9728,
|
|
172
|
+
"LINEAR": 9729,
|
|
173
|
+
"NEAREST_MIPMAP_NEAREST": 9984,
|
|
174
|
+
"LINEAR_MIPMAP_NEAREST": 9985,
|
|
175
|
+
"NEAREST_MIPMAP_LINEAR": 9986,
|
|
176
|
+
"LINEAR_MIPMAP_LINEAR": 9987,
|
|
177
|
+
"TEXTURE_MAG_FILTER": 10240,
|
|
178
|
+
"TEXTURE_MIN_FILTER": 10241,
|
|
179
|
+
"TEXTURE_WRAP_S": 10242,
|
|
180
|
+
"TEXTURE_WRAP_T": 10243,
|
|
181
|
+
"TEXTURE": 5890,
|
|
182
|
+
"TEXTURE_CUBE_MAP": 34067,
|
|
183
|
+
"TEXTURE_BINDING_CUBE_MAP": 34068,
|
|
184
|
+
"TEXTURE_CUBE_MAP_POSITIVE_X": 34069,
|
|
185
|
+
"TEXTURE_CUBE_MAP_NEGATIVE_X": 34070,
|
|
186
|
+
"TEXTURE_CUBE_MAP_POSITIVE_Y": 34071,
|
|
187
|
+
"TEXTURE_CUBE_MAP_NEGATIVE_Y": 34072,
|
|
188
|
+
"TEXTURE_CUBE_MAP_POSITIVE_Z": 34073,
|
|
189
|
+
"TEXTURE_CUBE_MAP_NEGATIVE_Z": 34074,
|
|
190
|
+
"MAX_CUBE_MAP_TEXTURE_SIZE": 34076,
|
|
191
|
+
"TEXTURE0": 33984,
|
|
192
|
+
"TEXTURE1": 33985,
|
|
193
|
+
"TEXTURE2": 33986,
|
|
194
|
+
"TEXTURE3": 33987,
|
|
195
|
+
"TEXTURE4": 33988,
|
|
196
|
+
"TEXTURE5": 33989,
|
|
197
|
+
"TEXTURE6": 33990,
|
|
198
|
+
"TEXTURE7": 33991,
|
|
199
|
+
"TEXTURE8": 33992,
|
|
200
|
+
"TEXTURE9": 33993,
|
|
201
|
+
"TEXTURE10": 33994,
|
|
202
|
+
"TEXTURE11": 33995,
|
|
203
|
+
"TEXTURE12": 33996,
|
|
204
|
+
"TEXTURE13": 33997,
|
|
205
|
+
"TEXTURE14": 33998,
|
|
206
|
+
"TEXTURE15": 33999,
|
|
207
|
+
"TEXTURE16": 34000,
|
|
208
|
+
"TEXTURE17": 34001,
|
|
209
|
+
"TEXTURE18": 34002,
|
|
210
|
+
"TEXTURE19": 34003,
|
|
211
|
+
"TEXTURE20": 34004,
|
|
212
|
+
"TEXTURE21": 34005,
|
|
213
|
+
"TEXTURE22": 34006,
|
|
214
|
+
"TEXTURE23": 34007,
|
|
215
|
+
"TEXTURE24": 34008,
|
|
216
|
+
"TEXTURE25": 34009,
|
|
217
|
+
"TEXTURE26": 34010,
|
|
218
|
+
"TEXTURE27": 34011,
|
|
219
|
+
"TEXTURE28": 34012,
|
|
220
|
+
"TEXTURE29": 34013,
|
|
221
|
+
"TEXTURE30": 34014,
|
|
222
|
+
"TEXTURE31": 34015,
|
|
223
|
+
"ACTIVE_TEXTURE": 34016,
|
|
224
|
+
"REPEAT": 10497,
|
|
225
|
+
"CLAMP_TO_EDGE": 33071,
|
|
226
|
+
"MIRRORED_REPEAT": 33648,
|
|
227
|
+
"FLOAT_VEC2": 35664,
|
|
228
|
+
"FLOAT_VEC3": 35665,
|
|
229
|
+
"FLOAT_VEC4": 35666,
|
|
230
|
+
"INT_VEC2": 35667,
|
|
231
|
+
"INT_VEC3": 35668,
|
|
232
|
+
"INT_VEC4": 35669,
|
|
233
|
+
"BOOL": 35670,
|
|
234
|
+
"BOOL_VEC2": 35671,
|
|
235
|
+
"BOOL_VEC3": 35672,
|
|
236
|
+
"BOOL_VEC4": 35673,
|
|
237
|
+
"FLOAT_MAT2": 35674,
|
|
238
|
+
"FLOAT_MAT3": 35675,
|
|
239
|
+
"FLOAT_MAT4": 35676,
|
|
240
|
+
"SAMPLER_2D": 35678,
|
|
241
|
+
"SAMPLER_CUBE": 35680,
|
|
242
|
+
"VERTEX_ATTRIB_ARRAY_ENABLED": 34338,
|
|
243
|
+
"VERTEX_ATTRIB_ARRAY_SIZE": 34339,
|
|
244
|
+
"VERTEX_ATTRIB_ARRAY_STRIDE": 34340,
|
|
245
|
+
"VERTEX_ATTRIB_ARRAY_TYPE": 34341,
|
|
246
|
+
"VERTEX_ATTRIB_ARRAY_NORMALIZED": 34922,
|
|
247
|
+
"VERTEX_ATTRIB_ARRAY_POINTER": 34373,
|
|
248
|
+
"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING": 34975,
|
|
249
|
+
"IMPLEMENTATION_COLOR_READ_TYPE": 35738,
|
|
250
|
+
"IMPLEMENTATION_COLOR_READ_FORMAT": 35739,
|
|
251
|
+
"COMPILE_STATUS": 35713,
|
|
252
|
+
"LOW_FLOAT": 36336,
|
|
253
|
+
"MEDIUM_FLOAT": 36337,
|
|
254
|
+
"HIGH_FLOAT": 36338,
|
|
255
|
+
"LOW_INT": 36339,
|
|
256
|
+
"MEDIUM_INT": 36340,
|
|
257
|
+
"HIGH_INT": 36341,
|
|
258
|
+
"FRAMEBUFFER": 36160,
|
|
259
|
+
"RENDERBUFFER": 36161,
|
|
260
|
+
"RGBA4": 32854,
|
|
261
|
+
"RGB5_A1": 32855,
|
|
262
|
+
"RGB565": 36194,
|
|
263
|
+
"DEPTH_COMPONENT16": 33189,
|
|
264
|
+
"STENCIL_INDEX8": 36168,
|
|
265
|
+
"DEPTH_STENCIL": 34041,
|
|
266
|
+
"RENDERBUFFER_WIDTH": 36162,
|
|
267
|
+
"RENDERBUFFER_HEIGHT": 36163,
|
|
268
|
+
"RENDERBUFFER_INTERNAL_FORMAT": 36164,
|
|
269
|
+
"RENDERBUFFER_RED_SIZE": 36176,
|
|
270
|
+
"RENDERBUFFER_GREEN_SIZE": 36177,
|
|
271
|
+
"RENDERBUFFER_BLUE_SIZE": 36178,
|
|
272
|
+
"RENDERBUFFER_ALPHA_SIZE": 36179,
|
|
273
|
+
"RENDERBUFFER_DEPTH_SIZE": 36180,
|
|
274
|
+
"RENDERBUFFER_STENCIL_SIZE": 36181,
|
|
275
|
+
"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE": 36048,
|
|
276
|
+
"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME": 36049,
|
|
277
|
+
"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL": 36050,
|
|
278
|
+
"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE": 36051,
|
|
279
|
+
"COLOR_ATTACHMENT0": 36064,
|
|
280
|
+
"DEPTH_ATTACHMENT": 36096,
|
|
281
|
+
"STENCIL_ATTACHMENT": 36128,
|
|
282
|
+
"DEPTH_STENCIL_ATTACHMENT": 33306,
|
|
283
|
+
"NONE": 0,
|
|
284
|
+
"FRAMEBUFFER_COMPLETE": 36053,
|
|
285
|
+
"FRAMEBUFFER_INCOMPLETE_ATTACHMENT": 36054,
|
|
286
|
+
"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT": 36055,
|
|
287
|
+
"FRAMEBUFFER_INCOMPLETE_DIMENSIONS": 36057,
|
|
288
|
+
"FRAMEBUFFER_UNSUPPORTED": 36061,
|
|
289
|
+
"FRAMEBUFFER_BINDING": 36006,
|
|
290
|
+
"RENDERBUFFER_BINDING": 36007,
|
|
291
|
+
"MAX_RENDERBUFFER_SIZE": 34024,
|
|
292
|
+
"INVALID_FRAMEBUFFER_OPERATION": 1286,
|
|
293
|
+
"UNPACK_FLIP_Y_WEBGL": 37440,
|
|
294
|
+
"UNPACK_PREMULTIPLY_ALPHA_WEBGL": 37441,
|
|
295
|
+
"CONTEXT_LOST_WEBGL": 37442,
|
|
296
|
+
"UNPACK_COLORSPACE_CONVERSION_WEBGL": 37443,
|
|
297
|
+
"BROWSER_DEFAULT_WEBGL": 37444
|
|
298
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
let i = 1;
|
|
2
|
+
|
|
3
|
+
const GLmethod = {};
|
|
4
|
+
|
|
5
|
+
GLmethod.activeTexture = i++; //1
|
|
6
|
+
GLmethod.attachShader = i++;
|
|
7
|
+
GLmethod.bindAttribLocation = i++;
|
|
8
|
+
GLmethod.bindBuffer = i++;
|
|
9
|
+
GLmethod.bindFramebuffer = i++;
|
|
10
|
+
GLmethod.bindRenderbuffer = i++;
|
|
11
|
+
GLmethod.bindTexture = i++;
|
|
12
|
+
GLmethod.blendColor = i++;
|
|
13
|
+
GLmethod.blendEquation = i++;
|
|
14
|
+
GLmethod.blendEquationSeparate = i++; //10
|
|
15
|
+
GLmethod.blendFunc = i++;
|
|
16
|
+
GLmethod.blendFuncSeparate = i++;
|
|
17
|
+
GLmethod.bufferData = i++;
|
|
18
|
+
GLmethod.bufferSubData = i++;
|
|
19
|
+
GLmethod.checkFramebufferStatus = i++;
|
|
20
|
+
GLmethod.clear = i++;
|
|
21
|
+
GLmethod.clearColor = i++;
|
|
22
|
+
GLmethod.clearDepth = i++;
|
|
23
|
+
GLmethod.clearStencil = i++;
|
|
24
|
+
GLmethod.colorMask = i++; //20
|
|
25
|
+
GLmethod.compileShader = i++;
|
|
26
|
+
GLmethod.compressedTexImage2D = i++;
|
|
27
|
+
GLmethod.compressedTexSubImage2D = i++;
|
|
28
|
+
GLmethod.copyTexImage2D = i++;
|
|
29
|
+
GLmethod.copyTexSubImage2D = i++;
|
|
30
|
+
GLmethod.createBuffer = i++;
|
|
31
|
+
GLmethod.createFramebuffer = i++;
|
|
32
|
+
GLmethod.createProgram = i++;
|
|
33
|
+
GLmethod.createRenderbuffer = i++;
|
|
34
|
+
GLmethod.createShader = i++; //30
|
|
35
|
+
GLmethod.createTexture = i++;
|
|
36
|
+
GLmethod.cullFace = i++;
|
|
37
|
+
GLmethod.deleteBuffer = i++;
|
|
38
|
+
GLmethod.deleteFramebuffer = i++;
|
|
39
|
+
GLmethod.deleteProgram = i++;
|
|
40
|
+
GLmethod.deleteRenderbuffer = i++;
|
|
41
|
+
GLmethod.deleteShader = i++;
|
|
42
|
+
GLmethod.deleteTexture = i++;
|
|
43
|
+
GLmethod.depthFunc = i++;
|
|
44
|
+
GLmethod.depthMask = i++; //40
|
|
45
|
+
GLmethod.depthRange = i++;
|
|
46
|
+
GLmethod.detachShader = i++;
|
|
47
|
+
GLmethod.disable = i++;
|
|
48
|
+
GLmethod.disableVertexAttribArray = i++;
|
|
49
|
+
GLmethod.drawArrays = i++;
|
|
50
|
+
GLmethod.drawArraysInstancedANGLE = i++;
|
|
51
|
+
GLmethod.drawElements = i++;
|
|
52
|
+
GLmethod.drawElementsInstancedANGLE = i++;
|
|
53
|
+
GLmethod.enable = i++;
|
|
54
|
+
GLmethod.enableVertexAttribArray = i++; //50
|
|
55
|
+
GLmethod.flush = i++;
|
|
56
|
+
GLmethod.framebufferRenderbuffer = i++;
|
|
57
|
+
GLmethod.framebufferTexture2D = i++;
|
|
58
|
+
GLmethod.frontFace = i++;
|
|
59
|
+
GLmethod.generateMipmap = i++;
|
|
60
|
+
GLmethod.getActiveAttrib = i++;
|
|
61
|
+
GLmethod.getActiveUniform = i++;
|
|
62
|
+
GLmethod.getAttachedShaders = i++;
|
|
63
|
+
GLmethod.getAttribLocation = i++;
|
|
64
|
+
GLmethod.getBufferParameter = i++; //60
|
|
65
|
+
GLmethod.getContextAttributes = i++;
|
|
66
|
+
GLmethod.getError = i++;
|
|
67
|
+
GLmethod.getExtension = i++;
|
|
68
|
+
GLmethod.getFramebufferAttachmentParameter = i++;
|
|
69
|
+
GLmethod.getParameter = i++;
|
|
70
|
+
GLmethod.getProgramInfoLog = i++;
|
|
71
|
+
GLmethod.getProgramParameter = i++;
|
|
72
|
+
GLmethod.getRenderbufferParameter = i++;
|
|
73
|
+
GLmethod.getShaderInfoLog = i++;
|
|
74
|
+
GLmethod.getShaderParameter = i++; //70
|
|
75
|
+
GLmethod.getShaderPrecisionFormat = i++;
|
|
76
|
+
GLmethod.getShaderSource = i++;
|
|
77
|
+
GLmethod.getSupportedExtensions = i++;
|
|
78
|
+
GLmethod.getTexParameter = i++;
|
|
79
|
+
GLmethod.getUniform = i++;
|
|
80
|
+
GLmethod.getUniformLocation = i++;
|
|
81
|
+
GLmethod.getVertexAttrib = i++;
|
|
82
|
+
GLmethod.getVertexAttribOffset = i++;
|
|
83
|
+
GLmethod.isBuffer = i++;
|
|
84
|
+
GLmethod.isContextLost = i++; //80
|
|
85
|
+
GLmethod.isEnabled = i++;
|
|
86
|
+
GLmethod.isFramebuffer = i++;
|
|
87
|
+
GLmethod.isProgram = i++;
|
|
88
|
+
GLmethod.isRenderbuffer = i++;
|
|
89
|
+
GLmethod.isShader = i++;
|
|
90
|
+
GLmethod.isTexture = i++;
|
|
91
|
+
GLmethod.lineWidth = i++;
|
|
92
|
+
GLmethod.linkProgram = i++;
|
|
93
|
+
GLmethod.pixelStorei = i++;
|
|
94
|
+
GLmethod.polygonOffset = i++; //90
|
|
95
|
+
GLmethod.readPixels = i++;
|
|
96
|
+
GLmethod.renderbufferStorage = i++;
|
|
97
|
+
GLmethod.sampleCoverage = i++;
|
|
98
|
+
GLmethod.scissor = i++;
|
|
99
|
+
GLmethod.shaderSource = i++;
|
|
100
|
+
GLmethod.stencilFunc = i++;
|
|
101
|
+
GLmethod.stencilFuncSeparate = i++;
|
|
102
|
+
GLmethod.stencilMask = i++;
|
|
103
|
+
GLmethod.stencilMaskSeparate = i++;
|
|
104
|
+
GLmethod.stencilOp = i++; //100
|
|
105
|
+
GLmethod.stencilOpSeparate = i++;
|
|
106
|
+
GLmethod.texImage2D = i++;
|
|
107
|
+
GLmethod.texParameterf = i++;
|
|
108
|
+
GLmethod.texParameteri = i++;
|
|
109
|
+
GLmethod.texSubImage2D = i++;
|
|
110
|
+
GLmethod.uniform1f = i++;
|
|
111
|
+
GLmethod.uniform1fv = i++;
|
|
112
|
+
GLmethod.uniform1i = i++;
|
|
113
|
+
GLmethod.uniform1iv = i++;
|
|
114
|
+
GLmethod.uniform2f = i++; //110
|
|
115
|
+
GLmethod.uniform2fv = i++;
|
|
116
|
+
GLmethod.uniform2i = i++;
|
|
117
|
+
GLmethod.uniform2iv = i++;
|
|
118
|
+
GLmethod.uniform3f = i++;
|
|
119
|
+
GLmethod.uniform3fv = i++;
|
|
120
|
+
GLmethod.uniform3i = i++;
|
|
121
|
+
GLmethod.uniform3iv = i++;
|
|
122
|
+
GLmethod.uniform4f = i++;
|
|
123
|
+
GLmethod.uniform4fv = i++;
|
|
124
|
+
GLmethod.uniform4i = i++; //120
|
|
125
|
+
GLmethod.uniform4iv = i++;
|
|
126
|
+
GLmethod.uniformMatrix2fv = i++;
|
|
127
|
+
GLmethod.uniformMatrix3fv = i++;
|
|
128
|
+
GLmethod.uniformMatrix4fv = i++;
|
|
129
|
+
GLmethod.useProgram = i++;
|
|
130
|
+
GLmethod.validateProgram = i++;
|
|
131
|
+
GLmethod.vertexAttrib1f = i++; //new
|
|
132
|
+
GLmethod.vertexAttrib2f = i++; //new
|
|
133
|
+
GLmethod.vertexAttrib3f = i++; //new
|
|
134
|
+
GLmethod.vertexAttrib4f = i++; //new //130
|
|
135
|
+
GLmethod.vertexAttrib1fv = i++; //new
|
|
136
|
+
GLmethod.vertexAttrib2fv = i++; //new
|
|
137
|
+
GLmethod.vertexAttrib3fv = i++; //new
|
|
138
|
+
GLmethod.vertexAttrib4fv = i++; //new
|
|
139
|
+
GLmethod.vertexAttribPointer = i++;
|
|
140
|
+
GLmethod.viewport = i++;
|
|
141
|
+
|
|
142
|
+
export default GLmethod;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const GLtype = {};
|
|
2
|
+
|
|
3
|
+
[
|
|
4
|
+
"GLbitfield",
|
|
5
|
+
"GLboolean",
|
|
6
|
+
"GLbyte",
|
|
7
|
+
"GLclampf",
|
|
8
|
+
"GLenum",
|
|
9
|
+
"GLfloat",
|
|
10
|
+
"GLint",
|
|
11
|
+
"GLintptr",
|
|
12
|
+
"GLsizei",
|
|
13
|
+
"GLsizeiptr",
|
|
14
|
+
"GLshort",
|
|
15
|
+
"GLubyte",
|
|
16
|
+
"GLuint",
|
|
17
|
+
"GLushort"
|
|
18
|
+
].sort().map((typeName, i) => GLtype[typeName] = 1 >> (i + 1));
|
|
19
|
+
|
|
20
|
+
export default GLtype;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {getTransferedObjectUUID} from './classUtils';
|
|
2
|
+
|
|
3
|
+
const name = 'WebGLProgram';
|
|
4
|
+
|
|
5
|
+
function uuid(id) {
|
|
6
|
+
return getTransferedObjectUUID(name, id);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default class WebGLProgram {
|
|
10
|
+
className = name;
|
|
11
|
+
|
|
12
|
+
constructor(id) {
|
|
13
|
+
this.id = id;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static uuid = uuid;
|
|
17
|
+
|
|
18
|
+
uuid() {
|
|
19
|
+
return uuid(this.id);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {getTransferedObjectUUID} from './classUtils';
|
|
2
|
+
|
|
3
|
+
const name = 'WebGLRenderBuffer';
|
|
4
|
+
|
|
5
|
+
function uuid(id) {
|
|
6
|
+
return getTransferedObjectUUID(name, id);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default class WebGLRenderbuffer {
|
|
10
|
+
className = name;
|
|
11
|
+
|
|
12
|
+
constructor(id) {
|
|
13
|
+
this.id = id;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static uuid = uuid;
|
|
17
|
+
|
|
18
|
+
uuid() {
|
|
19
|
+
return uuid(this.id);
|
|
20
|
+
}
|
|
21
|
+
}
|