ComponentDatatype

                WebGL組件數據類型。組件是內部函數,它形成屬性,形成頂點。

                Members

                (static, constant) BYTE : Number

                對應gl.BYTEInt8Array中元素類型的8位有符號字節。

                (static, constant) FLOAT : Number

                FLOATFloat32Array中元素類型對應的32位浮點。

                (static, constant) SHORT : Number

                SHORTInt16Array中元素類型相對應的16位有符號短。

                (static, constant) UNSIGNED_BYTE : Number

                對應于UNSIGNED_BYTEUint8Array中元素類型的8位無符號字節。

                (static, constant) UNSIGNED_SHORT : Number

                對應于UNSIGNED_SHORTUint16Array中元素類型的16位無符號短。

                Methods

                (static) createArrayBufferView(componentDatatype, buffer, byteOffset, length) → {Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array}
                創建字節數組的類型化視圖。
                Parameters:
                componentDatatype (ComponentDatatype) 要創建的視圖的類型。
                buffer (ArrayBuffer) 用于視圖的緩沖區存儲。
                byteOffset (Number) 到視圖中第一個元素的偏移量(以字節為單位)。
                length (Number) 視圖中的元素數。
                Throws
                (static) createTypedArray(componentDatatype, valuesOrLength) → {Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array}
                創建與組件數據類型對應的類型化數組。
                Parameters:
                componentDatatype (ComponentDatatype) 組件數據類型。
                valuesOrLength ((Number | Array)) 要創建的數組或數組的長度。
                Example
                // creates a Float32Array with length of 100
                var typedArray = bmgl.ComponentDatatype.createTypedArray(bmgl.ComponentDatatype.FLOAT, 100);
                Throws
                (static) fromName(name) → {ComponentDatatype}
                從其名稱中獲取componentdatatype。
                Parameters:
                name (String) componentdatatype的名稱。
                Throws
                (static) fromTypedArray(array) → {ComponentDatatype}
                獲取提供的typedarray實例的ComponentDatatype
                Parameters:
                array (TypedArray) 類型化數組。
                (static) getSizeInBytes(componentDatatype) → {Number}
                返回相應數據類型的大小(以字節為單位)。
                Parameters:
                componentDatatype (ComponentDatatype) 要獲取大小的組件數據類型。
                Example
                // Returns Int8Array.BYTES_PER_ELEMENT
                var size = bmgl.ComponentDatatype.getSizeInBytes(bmgl.ComponentDatatype.BYTE);
                Throws
                (static) validate(componentDatatype) → {Boolean}
                驗證提供的組件數據類型是否有效ComponentDatatype
                Parameters:
                componentDatatype (ComponentDatatype) 要驗證的組件數據類型。
                Example
                if (!bmgl.ComponentDatatype.validate(componentDatatype)) {
                  throw new bmgl.DeveloperError('componentDatatype must be a valid value.');
                }
                主站蜘蛛池模板: 精品黑人一区二区三区| 日本免费xxxx| 好大好硬好深好爽的视频| 亚洲区小说区图片区qvod| 经典欧美gifxxoo动态图暗网| 国产精品免费视频网站| 久久久精品2019中文字幕2020 | 亚洲图片校园春色| 成人看片黄在线观看| 无遮无挡非常色的视频免费| 亚洲欧美在线观看首页| 香蕉在线精品一区二区| 在线成人综合色一区| 亚洲一区二区三区在线网站| 精品久久久久久久中文字幕| 国产精品无圣光一区二区| 久久天天躁狠狠躁夜夜免费观看 | 国产午夜a理论毛片在线影院| 91大神在线免费观看| 日本无卡码免费一区二区三区| 十六以下岁女子毛片免费| 黑人3p波多野结衣在线观看| 婷婷丁香五月中文字幕| 久久精品国产精品亚洲| 看一级特黄a大一片| 国产亚州精品女人久久久久久| 三级网站免费观看| 护士撩起裙子让你桶的视频 | 午夜a成v人电影| 青草资源视频在线高清观看| 国产精品一二三区| 99ri在线观看| 日本免费精品一区二区三区| 亚洲国产成人久久一区www| 色偷偷AV老熟女| 国产成人精品曰本亚洲78| 一本色道久久HEZYO无码| 欧美乱xxxxx| 交换韩国伦理片| 香蕉97超级碰碰碰碰碰久| 国产精品成人一区无码|