Package | laya.webgl.utils |
Class | public class VertexBuffer2D |
Inheritance | VertexBuffer2D 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] | VertexBuffer2D | ||
_enableAtributes : Array [static] | Buffer | ||
_upload : Boolean = true | Buffer2D | ||
vertexStride : int [read-only] | VertexBuffer2D |
Property | Defined By | ||
---|---|---|---|
_buffer : * | Buffer | ||
_bufferType : int | Buffer | ||
_bufferUsage : int | Buffer | ||
_floatArray32 : Float32Array | VertexBuffer2D | ||
_gl : WebGLContext [static] | Buffer | ||
_glBuffer : * | Buffer | ||
_maxsize : int = 0 | Buffer2D | ||
_uploadSize : int = 0 | Buffer2D |
Method | Defined By | ||
---|---|---|---|
VertexBuffer2D(vertexStride:int, bufferUsage:int) | VertexBuffer2D | ||
__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 | ||
bind(ibBuffer:IndexBuffer2D):void | VertexBuffer2D | ||
bind_upload(ibBuffer:IndexBuffer2D):void | VertexBuffer2D | ||
clear():void | Buffer2D | ||
destory():void | VertexBuffer2D | ||
getBuffer():ArrayBuffer | Buffer2D | ||
getFloat32Array():* | VertexBuffer2D | ||
getNeedUpload():Boolean | Buffer2D | ||
insertData(data:Array, pos:int):void | VertexBuffer2D | ||
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] | VertexBuffer2D | ||
detoryResource():void [override] | VertexBuffer2D | ||
recreateResource():void [override] | Buffer |
_floatArray32 | property |
protected var _floatArray32:Float32Array
create | property |
public static var create:Function
vertexStride | property |
vertexStride:int
[read-only] public function get vertexStride():int
VertexBuffer2D | () | Constructor |
public function VertexBuffer2D(vertexStride:int, bufferUsage:int)
vertexStride:int | |
bufferUsage:int |
_checkArrayUse | () | method |
override protected function _checkArrayUse():void
bind | () | method |
bind_upload | () | method |
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 |