亚洲动漫在线观看-亚洲动漫第一页-亚洲丁香婷婷-亚洲丶国产丶欧美一区二区三区-亚洲第一综合网站-亚洲第一永久色

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.');
}
主站蜘蛛池模板: 爆操萝莉| 欧美成人免费草草影院视频 | 国产3级在线 | 青青热久免费精品视频精品 | 日本加勒比在线精品视频 | 亚洲精品国产精品麻豆99 | xxx美国| 欧美日韩亚洲国内综合网香蕉 | 亚洲 欧美 国产 综合 在线 | 寡妇快点好大好爽视频 | 公妇仑乱在线观看 | 羞羞一区二区三区四区片 | 教师系列 大桥未久在线 | 99热国产在线观看 | 阿v天堂2020 α片免费 | 99精品视频在线观看 | 四虎在线永久视频观看 | 成人网18免费网 | 国产精品福利久久2020 | 啊好痛嗯轻一点免费 | 99久久这里只有精品 | ass日本乱妇ass | 亚洲国产天堂久久综合网站 | 日本在线观看免费观看完整版 | 亚洲啊v| 大吊操 | 草莓视频在线免费观看 | 日韩在线视频在线 | 午夜福利理论片高清在线 | 国产日韩欧美一区 | 五月天黄网 | 疯狂激吻添下边小说 | 欧美日韩在线观看精品 | 日本一二线不卡在线观看 | 久九九精品免费视频 | 欧美另类变态 | 婚色阿花在线全文免费笔 | 韩国最新理论三级在线观看 | 久久九九久精品国产尤物 | 久久久精品免费视频 | 唯美 清纯 另类 亚洲制服 |