国产久_亚欧精品一区_久久亚洲美女_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.');
}
主站蜘蛛池模板: 麻豆剧场 | 91视频国产免费 | 色综五月亚洲欧美婷婷 | 麻豆免费入口 | 一级在线免费观看 | 欧美色窝79yyyycom | 黄页嫩草| 东京色| 中文字幕高清视频 | 一区二区三区电影在线观看 | 91丨九色丨国 | 日韩精品久久一区二区 | 久久久久久欧美精品色一二三四 | 免费黄色高清视频 | 日本一区二区视频在线观看 | 精品人伦一区二区三区四区蜜桃牛 | 日韩视频成人 | 亚洲欧洲精品在线 | 久久久久久久久久久久久久久久久久久 | 成人黄色免费观看 | 黑料视频在线观看 | 久草超碰 | 欧美一级特黄aaaaaa大片在线观看 | 欧美一区二区三区激情视频 | 26uuu亚洲| 亚洲三级在线 | 成人精品在线观看 | 国产日产久久欧美清爽 | 成人激情视频网站 | 成人av电影免费观看 | 114三级视频在线观看 | 黄色软件app大全 | 成人久久18免费网站图片 | 九九热99视频 | 激情视频网址 | 深夜免费福利视频 | 成年人在线免费看的惊悚动作片 | 特级毛片av| 欧美日韩在线视频免费观看 | 亚洲视频二区 | 毛片免费网站 |