婷婷久久网-婷婷久久久久-婷婷久久久-婷婷久-国产微拍精品一区-国产网址在线观看

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.');
}
主站蜘蛛池模板: 陈建斌梅婷新剧《不惑之旅》| 电影《uhaw》免费观看| 公共安全教育第一课| 诱惑的艺术| 免费播放电影大全免费观看| 定型枕什么时候能给宝宝用| 中转停留| 常乐镇| 40集电视连续剧人生之路| 五猖会原文加批注图片| 野孩子美剧| 老阿姨电视剧在线观看| 镍多少钱一公斤| 罪孽天使| 黑龙江卫视节目| 消防知识问答100题| 巩俐吻戏| 五年级上册白鹭笔记| hd经典复古性mature| 麻豆视频观看| 电影《埋葬巴斯托》| 丰满少妇a级片| 电视剧热播剧大全| 荡寇电视剧演员表| 世界赋予我的 二声部合唱谱| 日本电影高校教师| 回收名表价格查询| 深夜影院一级毛片| 林正英演什么电影遇到真鬼了 | 《假期》电影| 黑帆第三季电视剧完整免费观看高清| doors2怪物图鉴| 寡妇激情| 91天堂素人97年清纯嫩模| 杨贵妃1992版电影完整| 爱情与灵药 电影| 时代少年团壁纸| 志村大爆笑| 来生缘吉他谱c调| 王清河| 意大利a级情欲片女人城|