国产久_亚欧精品一区_久久亚洲美女_99精品在线观看_日韩成人三级_久久精品久久久久

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.');
}
主站蜘蛛池模板: 欧美在线www | 日韩一级网站 | 亚洲1区| 日本岛国片在线观看 | 成人av电影免费观看 | 国产一区二区三区四区五区六区 | 精品福利一区 | 亚洲免费视 | 久久艹这里只有精品 | 国产中文一区二区三区 | 亚洲一区二区三区在线看 | 日日夜夜爱 | 成人宗合 | 亚洲经典视频 | 久久久久久久久久久综合 | 久久福利精品 | 一级片视频免费看 | 日韩欧美在线播放 | 色噜噜噜噜噜 | 欧美日韩精品免费 | 日日日人人人 | 我朋友的妈妈完整版 | 91性高潮久久久久久久 | 在线播放精品 | 欧美综合色区 | 中国黄页网址大全免费 | 国产乱码一区二区 | 国产黄色免费在线观看 | 国产三级免费观看 | 中文视频在线观看 | 欧美色图一区二区三区 | a级毛片黄色 | 久久久久久久久99精品 | 免费电影一区二区 | 成人一区二区三区在线观看 | 一级欧美视频 | 欧美精品久久久久久久久 | 亚洲一区二区三区播放 | 久久免费国产精品 | 亚洲最黄视频 | 亚洲成人自拍 |