Packagelaya.webgl.utils
Classpublic class IndexBuffer2D
InheritanceIndexBuffer2D Inheritance Buffer2D Inheritance Buffer Inheritance laya.resource.Resource



Public Properties
 PropertyDefined By
 Inherited_bindActive : Object
[static]
Buffer
 Inherited_bindVertexBuffer : *
[static]
Buffer
 InheritedbufferLength : int
[read-only]
Buffer2D
 InheritedbufferUsage : int
[read-only]
Buffer
 InheritedbyteLength : int
[write-only]
Buffer2D
 Inherited_byteLength : int = 0
Buffer
  create : Function
[static]
IndexBuffer2D
 Inherited_enableAtributes : Array
[static]
Buffer
  QuadrangleIB : IndexBuffer2D
[static]
IndexBuffer2D
 Inherited_upload : Boolean = true
Buffer2D
Protected Properties
 PropertyDefined By
 Inherited_buffer : *
Buffer
 Inherited_bufferType : int
Buffer
 Inherited_bufferUsage : int
Buffer
 Inherited_gl : WebGLContext
[static]
Buffer
 Inherited_glBuffer : *
Buffer
 Inherited_maxsize : int = 0
Buffer2D
  _uint16Array : Uint16Array
IndexBuffer2D
  _uint8Array : Uint8Array
IndexBuffer2D
 Inherited_uploadSize : int = 0
Buffer2D
Public Methods
 MethodDefined By
  
IndexBuffer2D(bufferUsage:int)
IndexBuffer2D
 Inherited
[static]
Buffer2D
 Inherited
_bind():void
Buffer
 Inherited
_bind_subUpload(offset:int = 0, dataStart:int = 0, dataLength:int = 0):Boolean
Buffer2D
 Inherited
_bind_upload():Boolean
Buffer2D
 Inherited
_resizeBuffer(nsz:int, copy:Boolean):Buffer2D
Buffer2D
 Inherited
append(data:*):void
Buffer2D
 Inherited
appendEx(data:*, type:Class):void
Buffer2D
 Inherited
appendEx2(data:*, type:Class, dataLen:int, perDataLen:int = 1):void
Buffer2D
 Inherited
clear():void
Buffer2D
  
destory():void
IndexBuffer2D
 Inherited
getBuffer():ArrayBuffer
Buffer2D
 Inherited
getNeedUpload():Boolean
Buffer2D
  
getUint16Array():Uint16Array
IndexBuffer2D
  
getUint8Array():Uint8Array
IndexBuffer2D
 Inherited
Buffer2D
 Inherited
subUpload(offset:int = 0, dataStart:int = 0, dataLength:int = 0):Boolean
Buffer2D
 Inherited
upload():Boolean
Buffer2D
Protected Methods
 MethodDefined By
 Inherited
Buffer2D
 Inherited
_bufferSubData(offset:int = 0, dataStart:int = 0, dataLength:int = 0):void
Buffer2D
  
[override]
IndexBuffer2D
 Inherited
[override]
Buffer2D
 Inherited
[override]
Buffer
Public Constants
 ConstantDefined By
 InheritedFLOAT32 : int = 4
[static]
Buffer2D
 InheritedSHORT : int = 2
[static]
Buffer2D
Property Detail
_uint16Arrayproperty
protected var _uint16Array:Uint16Array

_uint8Arrayproperty 
protected var _uint8Array:Uint8Array

createproperty 
public static var create:Function

QuadrangleIBproperty 
public static var QuadrangleIB:IndexBuffer2D

Constructor Detail
IndexBuffer2D()Constructor
public function IndexBuffer2D(bufferUsage:int)



Parameters
bufferUsage:int (default = NaN)
Method Detail
_checkArrayUse()method
override protected function _checkArrayUse():void

destory()method 
public function destory():void

getUint16Array()method 
public function getUint16Array():Uint16Array

Returns
Uint16Array
getUint8Array()method 
public function getUint8Array():Uint8Array

Returns
Uint8Array