Packagelaya.d3.graphics
Classpublic class SubMeshStaticBatch
InheritanceSubMeshStaticBatch Inheritance StaticBatch Inheritance Object

SubMeshStaticBatch 类用于网格静态合并。



Public Properties
 PropertyDefined By
 InheritedtriangleCount : int
[read-only]
StaticBatch
 Inherited_vertexBufferCount : int
[read-only]
StaticBatch
Public Methods
 MethodDefined By
  
SubMeshStaticBatch(key:String, manager:StaticBatchManager, rootOwner:Sprite3D, vertexDeclaration:VertexDeclaration, material:BaseMaterial)
创建一个 SubMeshStaticBatch 实例。
SubMeshStaticBatch
  
_beforeRender(state:RenderState):Boolean
[override]
SubMeshStaticBatch
  
_finshInit():void
[override]
SubMeshStaticBatch
 Inherited
StaticBatch
  
[override]
SubMeshStaticBatch
  
_render(state:RenderState):void
[override]
SubMeshStaticBatch
 Inherited
_renderRuntime(conchGraphics3D:*, renderElement:RenderElement, state:RenderState):void
NATIVE
StaticBatch
 Inherited
combine(staticBatchRoot:Sprite3D):void
[static] 兼容性接口,请使用StaticBatchManager.combine()代替。
StaticBatch
  
dispose():void
[override]
SubMeshStaticBatch
Protected Methods
 MethodDefined By
  
_compareBatchRenderElement(a:RenderElement, b:RenderElement):Boolean
[override]
SubMeshStaticBatch
  
[override]
SubMeshStaticBatch
  
_getRenderElement(renderQueueElements:Array, scene:Scene, projectionView:Matrix4x4):void
[override]
SubMeshStaticBatch
Constructor Detail
SubMeshStaticBatch()Constructor
public function SubMeshStaticBatch(key:String, manager:StaticBatchManager, rootOwner:Sprite3D, vertexDeclaration:VertexDeclaration, material:BaseMaterial)

创建一个 SubMeshStaticBatch 实例。

Parameters
key:String
 
manager:StaticBatchManager
 
rootOwner:Sprite3D
 
vertexDeclaration:VertexDeclaration
 
material:BaseMaterial
Method Detail
_beforeRender()method
override public function _beforeRender(state:RenderState):Boolean

Parameters

state:RenderState

Returns
Boolean
_compareBatchRenderElement()method 
override protected function _compareBatchRenderElement(a:RenderElement, b:RenderElement):Boolean

Parameters

a:RenderElement
 
b:RenderElement

Returns
Boolean
_finshInit()method 
override public function _finshInit():void

_getCombineRenderElementFromPool()method 
override protected function _getCombineRenderElementFromPool():RenderElement

Returns
RenderElement
_getRenderElement()method 
override protected function _getRenderElement(renderQueueElements:Array, scene:Scene, projectionView:Matrix4x4):void

Parameters

renderQueueElements:Array
 
scene:Scene
 
projectionView:Matrix4x4

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

Parameters

index:int (default = 0)

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

Parameters

state:RenderState

dispose()method 
override public function dispose():void