Packagelaya.d3.graphics
Classpublic class StaticBatch
InheritanceStaticBatch Inheritance Object
Implements IRenderable, laya.resource.IDispose
Subclasses SubMeshStaticBatch

StaticBatch 类用于静态合并的父类,该类为抽象类。



Public Properties
 PropertyDefined By
  triangleCount : int
[read-only]
StaticBatch
  _vertexBufferCount : int
[read-only]
StaticBatch
Public Methods
 MethodDefined By
  
StaticBatch(key:String, manager:StaticBatchManager, rootOwner:Sprite3D)
创建一个 StaticBatch 实例。
StaticBatch
  
_beforeRender(state:RenderState):Boolean
StaticBatch
  
StaticBatch
  
StaticBatch
  
_render(state:RenderState):void
StaticBatch
  
_renderRuntime(conchGraphics3D:*, renderElement:RenderElement, state:RenderState):void
NATIVE
StaticBatch
  
combine(staticBatchRoot:Sprite3D):void
[static] 兼容性接口,请使用StaticBatchManager.combine()代替。
StaticBatch
Property Detail
_vertexBufferCountproperty
_vertexBufferCount:int  [read-only]


Implementation
    public function get _vertexBufferCount():int
triangleCountproperty 
triangleCount:int  [read-only]


Implementation
    public function get triangleCount():int
Constructor Detail
StaticBatch()Constructor
public function StaticBatch(key:String, manager:StaticBatchManager, rootOwner:Sprite3D)

创建一个 StaticBatch 实例。

Parameters
key:String
 
manager:StaticBatchManager
 
rootOwner:Sprite3D
Method Detail
_beforeRender()method
public function _beforeRender(state:RenderState):Boolean

Parameters

state:RenderState

Returns
Boolean
_getIndexBuffer()method 
public function _getIndexBuffer():IndexBuffer3D

Returns
IndexBuffer3D
_getVertexBuffer()method 
public function _getVertexBuffer(index:int = 0):VertexBuffer3D

Parameters

index:int (default = 0)

Returns
VertexBuffer3D
_render()method 
public function _render(state:RenderState):void

Parameters

state:RenderState

_renderRuntime()method 
public function _renderRuntime(conchGraphics3D:*, renderElement:RenderElement, state:RenderState):void

NATIVE

Parameters

conchGraphics3D:*
 
renderElement:RenderElement
 
state:RenderState

combine()method 
public static function combine(staticBatchRoot:Sprite3D):void

兼容性接口,请使用StaticBatchManager.combine()代替。

Parameters

staticBatchRoot:Sprite3D