Packagelaya.webgl.utils
Classpublic class Buffer
InheritanceBuffer Inheritance laya.resource.Resource
Subclasses Buffer2D, IndexBuffer3D, VertexBuffer3D



Public Properties
 PropertyDefined By
  _bindActive : Object
[static]
Buffer
  _bindVertexBuffer : *
[static]
Buffer
  bufferUsage : int
[read-only]
Buffer
  _byteLength : int = 0
Buffer
  _enableAtributes : Array
[static]
Buffer
Protected Properties
 PropertyDefined By
  _buffer : *
Buffer
  _bufferType : int
Buffer
  _bufferUsage : int
Buffer
  _gl : WebGLContext
[static]
Buffer
  _glBuffer : *
Buffer
Public Methods
 MethodDefined By
  
Buffer
  
_bind():void
Buffer
Protected Methods
 MethodDefined By
  
[override]
Buffer
  
[override]
Buffer
Property Detail
_bindActiveproperty
public static var _bindActive:Object

_bindVertexBufferproperty 
public static var _bindVertexBuffer:*

_bufferproperty 
protected var _buffer:*

_bufferTypeproperty 
protected var _bufferType:int

_bufferUsageproperty 
protected var _bufferUsage:int

_byteLengthproperty 
public var _byteLength:int = 0

_enableAtributesproperty 
public static var _enableAtributes:Array

_glproperty 
protected static var _gl:WebGLContext

_glBufferproperty 
protected var _glBuffer:*

bufferUsageproperty 
bufferUsage:int  [read-only]


Implementation
    public function get bufferUsage():int
Constructor Detail
Buffer()Constructor
public function Buffer()



Method Detail
_bind()method
public function _bind():void

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

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