Packagelaya.webgl.utils
Classpublic class VertexBuffer2D
InheritanceVertexBuffer2D 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]
VertexBuffer2D
 Inherited_enableAtributes : Array
[static]
Buffer
 Inherited_upload : Boolean = true
Buffer2D
  vertexStride : int
[read-only]
VertexBuffer2D
Protected Properties
 PropertyDefined By
 Inherited_buffer : *
Buffer
 Inherited_bufferType : int
Buffer
 Inherited_bufferUsage : int
Buffer
  _floatArray32 : Float32Array
VertexBuffer2D
 Inherited_gl : WebGLContext
[static]
Buffer
 Inherited_glBuffer : *
Buffer
 Inherited_maxsize : int = 0
Buffer2D
 Inherited_uploadSize : int = 0
Buffer2D
Public Methods
 MethodDefined By
  
VertexBuffer2D(vertexStride:int, bufferUsage:int)
VertexBuffer2D
 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
  
bind(ibBuffer:IndexBuffer2D):void
VertexBuffer2D
  
bind_upload(ibBuffer:IndexBuffer2D):void
VertexBuffer2D
 Inherited
clear():void
Buffer2D
  
destory():void
VertexBuffer2D
 Inherited
getBuffer():ArrayBuffer
Buffer2D
  
VertexBuffer2D
 Inherited
getNeedUpload():Boolean
Buffer2D
  
insertData(data:Array, pos:int):void
VertexBuffer2D
 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]
VertexBuffer2D
  
[override]
VertexBuffer2D
 Inherited
[override]
Buffer
Public Constants
 ConstantDefined By
 InheritedFLOAT32 : int = 4
[static]
Buffer2D
 InheritedSHORT : int = 2
[static]
Buffer2D
Property Detail
_floatArray32property
protected var _floatArray32:Float32Array

createproperty 
public static var create:Function

vertexStrideproperty 
vertexStride:int  [read-only]


Implementation
    public function get vertexStride():int
Constructor Detail
VertexBuffer2D()Constructor
public function VertexBuffer2D(vertexStride:int, bufferUsage:int)



Parameters
vertexStride:int
 
bufferUsage:int
Method Detail
_checkArrayUse()method
override protected function _checkArrayUse():void

bind()method 
public function bind(ibBuffer:IndexBuffer2D):void

Parameters

ibBuffer:IndexBuffer2D

bind_upload()method 
public function bind_upload(ibBuffer:IndexBuffer2D):void

Parameters

ibBuffer:IndexBuffer2D

destory()method 
public function destory():void

detoryResource()method 
override protected function detoryResource():void

getFloat32Array()method 
public function getFloat32Array():*

Returns
*
insertData()method 
public function insertData(data:Array, pos:int):void

Parameters

data:Array
 
pos:int