Package | laya.webgl.utils |
Class | public class IndexBuffer2D |
Inheritance | IndexBuffer2D Buffer2D Buffer laya.resource.Resource |
Property | Defined By | ||
---|---|---|---|
_bindActive : Object [static] | Buffer | ||
_bindVertexBuffer : * [static] | Buffer | ||
bufferLength : int [read-only] | Buffer2D | ||
bufferUsage : int [read-only] | Buffer | ||
byteLength : int [write-only] | Buffer2D | ||
_byteLength : int = 0 | Buffer | ||
create : Function [static] | IndexBuffer2D | ||
_enableAtributes : Array [static] | Buffer | ||
QuadrangleIB : IndexBuffer2D [static] | IndexBuffer2D | ||
_upload : Boolean = true | Buffer2D |
Property | Defined By | ||
---|---|---|---|
_buffer : * | Buffer | ||
_bufferType : int | Buffer | ||
_bufferUsage : int | Buffer | ||
_gl : WebGLContext [static] | Buffer | ||
_glBuffer : * | Buffer | ||
_maxsize : int = 0 | Buffer2D | ||
_uint16Array : Uint16Array | IndexBuffer2D | ||
_uint8Array : Uint8Array | IndexBuffer2D | ||
_uploadSize : int = 0 | Buffer2D |
Method | Defined By | ||
---|---|---|---|
IndexBuffer2D(bufferUsage:int) | IndexBuffer2D | ||
__int__(gl:WebGLContext):void [static] | Buffer2D | ||
_bind():void | Buffer | ||
_bind_subUpload(offset:int = 0, dataStart:int = 0, dataLength:int = 0):Boolean | Buffer2D | ||
_bind_upload():Boolean | Buffer2D | ||
_resizeBuffer(nsz:int, copy:Boolean):Buffer2D | Buffer2D | ||
append(data:*):void | Buffer2D | ||
appendEx(data:*, type:Class):void | Buffer2D | ||
appendEx2(data:*, type:Class, dataLen:int, perDataLen:int = 1):void | Buffer2D | ||
clear():void | Buffer2D | ||
destory():void | IndexBuffer2D | ||
getBuffer():ArrayBuffer | Buffer2D | ||
getNeedUpload():Boolean | Buffer2D | ||
getUint16Array():Uint16Array | IndexBuffer2D | ||
getUint8Array():Uint8Array | IndexBuffer2D | ||
setNeedUpload():void | Buffer2D | ||
subUpload(offset:int = 0, dataStart:int = 0, dataLength:int = 0):Boolean | Buffer2D | ||
upload():Boolean | Buffer2D |
Method | Defined By | ||
---|---|---|---|
_bufferData():void | Buffer2D | ||
_bufferSubData(offset:int = 0, dataStart:int = 0, dataLength:int = 0):void | Buffer2D | ||
_checkArrayUse():void [override] | IndexBuffer2D | ||
detoryResource():void [override] | Buffer2D | ||
recreateResource():void [override] | Buffer |
_uint16Array | property |
protected var _uint16Array:Uint16Array
_uint8Array | property |
protected var _uint8Array:Uint8Array
create | property |
public static var create:Function
QuadrangleIB | property |
public static var QuadrangleIB:IndexBuffer2D
IndexBuffer2D | () | Constructor |
public function IndexBuffer2D(bufferUsage:int)
bufferUsage:int (default = NaN )
|
_checkArrayUse | () | method |
override protected function _checkArrayUse():void
destory | () | method |
public function destory():void
getUint16Array | () | method |
public function getUint16Array():Uint16Array
ReturnsUint16Array |
getUint8Array | () | method |
public function getUint8Array():Uint8Array
ReturnsUint8Array |