构造函数
属性
_byteLength
_byteLength: number = 0
_glBuffer
_glBuffer: WebGLBuffer
_glTarget
_glTarget: number
访问器
方法
bindBufferBase
bindBufferBase(glPointer: number): void
bindBufferRange
bindBufferRange(glPointer: number, offset: number, byteCount: number): void 参数
- glPointer: number
- offset: number
- byteCount: number
返回 void
resizeBuffer
resizeBuffer(dataLength: number): void
setData
setData(srcData: ArrayBuffer, offset: number): void 参数
- srcData: ArrayBuffer
- offset: number
返回 void
setDataEx
setDataEx( srcData: ArrayBuffer | ArrayBufferView, offset: number, length: number,): void 参数
- srcData: ArrayBuffer | ArrayBufferView
- offset: number
- length: number
返回 void
setDataLength
setDataLength(srcData: number): void
WebglObject 基类