Packagelaya.webgl.submit
Classpublic class Submit
InheritanceSubmit Inheritance Object
Implements ISubmit
Subclasses SubmitCanvas, SubmitTexture



Public Properties
 PropertyDefined By
  RENDERBASE : Submit
[static]
Submit
  _renderType : int
Submit
  shaderValue : Value2D
Submit
  _startIdx : int
Submit
  _vb : VertexBuffer2D
Submit
Protected Properties
 PropertyDefined By
  _blendFn : Function
Submit
  _ib : IndexBuffer2D
Submit
  _selfVb : VertexBuffer2D
Submit
Public Methods
 MethodDefined By
  
Submit(renderType:int)
Submit
  
__init__():void
[static]
Submit
  
createShape(ctx:WebGLContext2D, ib:IndexBuffer2D, vb:VertexBuffer2D, numEle:int, offset:int, sv:Value2D):Submit
[static]
Submit
  
[static]
Submit
  
Submit
  
Submit
  
Submit
Public Constants
 ConstantDefined By
  TYPE_2D : int = 10000
[static]
Submit
  TYPE_BLURRT : int = 10006
[static]
Submit
  TYPE_BLUR_RT : int = 10012
[static]
Submit
  TYPE_CANVAS : int = 10003
[static]
Submit
  TYPE_CHANGE_VALUE : int = 10014
[static]
Submit
  TYPE_CMDDESTORYPRERT : int = 10007
[static]
Submit
  TYPE_CMDSETRT : int = 10004
[static]
Submit
  TYPE_CUSTOM : int = 10005
[static]
Submit
  TYPE_DISABLESTENCIL : int = 10008
[static]
Submit
  TYPE_FILLTEXTURE : int = 10017
[static]
Submit
  TYPE_OTHERIBVB : int = 10009
[static]
Submit
  TYPE_PRIMITIVE : int = 10010
[static]
Submit
  TYPE_RT : int = 10011
[static]
Submit
  TYPE_SHAPE : int = 10015
[static]
Submit
  TYPE_TARGET : int = 10013
[static]
Submit
  TYPE_TEXTURE : int = 10016
[static]
Submit
Property Detail
_blendFnproperty
protected var _blendFn:Function

_ibproperty 
protected var _ib:IndexBuffer2D

_renderTypeproperty 
public var _renderType:int

_selfVbproperty 
protected var _selfVb:VertexBuffer2D

_startIdxproperty 
public var _startIdx:int

_vbproperty 
public var _vb:VertexBuffer2D

RENDERBASEproperty 
public static var RENDERBASE:Submit

shaderValueproperty 
public var shaderValue:Value2D

Constructor Detail
Submit()Constructor
public function Submit(renderType:int)



Parameters
renderType:int (default = NaN)
Method Detail
__init__()method
public static function __init__():void

createShape()method 
public static function createShape(ctx:WebGLContext2D, ib:IndexBuffer2D, vb:VertexBuffer2D, numEle:int, offset:int, sv:Value2D):Submit

Parameters

ctx:WebGLContext2D
 
ib:IndexBuffer2D
 
vb:VertexBuffer2D
 
numEle:int
 
offset:int
 
sv:Value2D

Returns
Submit
createSubmit()method 
public static function createSubmit(context:WebGLContext2D, ib:IndexBuffer2D, vb:VertexBuffer2D, pos:int, sv:Value2D):Submit

Parameters

context:WebGLContext2D
 
ib:IndexBuffer2D
 
vb:VertexBuffer2D
 
pos:int
 
sv:Value2D

Returns
Submit
getRenderType()method 
public function getRenderType():int

Returns
int
releaseRender()method 
public function releaseRender():void

renderSubmit()method 
public function renderSubmit():int

Returns
int
Constant Detail
TYPE_2DConstant
public static const TYPE_2D:int = 10000

TYPE_BLUR_RTConstant 
public static const TYPE_BLUR_RT:int = 10012

TYPE_BLURRTConstant 
public static const TYPE_BLURRT:int = 10006

TYPE_CANVASConstant 
public static const TYPE_CANVAS:int = 10003

TYPE_CHANGE_VALUEConstant 
public static const TYPE_CHANGE_VALUE:int = 10014

TYPE_CMDDESTORYPRERTConstant 
public static const TYPE_CMDDESTORYPRERT:int = 10007

TYPE_CMDSETRTConstant 
public static const TYPE_CMDSETRT:int = 10004

TYPE_CUSTOMConstant 
public static const TYPE_CUSTOM:int = 10005

TYPE_DISABLESTENCILConstant 
public static const TYPE_DISABLESTENCIL:int = 10008

TYPE_FILLTEXTUREConstant 
public static const TYPE_FILLTEXTURE:int = 10017

TYPE_OTHERIBVBConstant 
public static const TYPE_OTHERIBVB:int = 10009

TYPE_PRIMITIVEConstant 
public static const TYPE_PRIMITIVE:int = 10010

TYPE_RTConstant 
public static const TYPE_RT:int = 10011

TYPE_SHAPEConstant 
public static const TYPE_SHAPE:int = 10015

TYPE_TARGETConstant 
public static const TYPE_TARGET:int = 10013

TYPE_TEXTUREConstant 
public static const TYPE_TEXTURE:int = 10016