Package | laya.d3.graphics |
Class | public class SubMeshStaticBatch |
Inheritance | SubMeshStaticBatch StaticBatch Object |
SubMeshStaticBatch
类用于网格静态合并。
Method | Defined By | ||
---|---|---|---|
SubMeshStaticBatch(key:String, manager:StaticBatchManager, rootOwner:Sprite3D, vertexDeclaration:VertexDeclaration, material:BaseMaterial)
创建一个 SubMeshStaticBatch 实例。
| SubMeshStaticBatch | ||
_beforeRender(state:RenderState):Boolean [override]
| SubMeshStaticBatch | ||
_finshInit():void [override]
| SubMeshStaticBatch | ||
StaticBatch | |||
_getVertexBuffer(index:int = 0):VertexBuffer3D [override] | SubMeshStaticBatch | ||
_render(state:RenderState):void [override]
| SubMeshStaticBatch | ||
_renderRuntime(conchGraphics3D:*, renderElement:RenderElement, state:RenderState):void NATIVE | StaticBatch | ||
[static]
兼容性接口,请使用StaticBatchManager.combine()代替。
| StaticBatch | ||
dispose():void [override]
| SubMeshStaticBatch |
Method | Defined By | ||
---|---|---|---|
_compareBatchRenderElement(a:RenderElement, b:RenderElement):Boolean [override]
| SubMeshStaticBatch | ||
_getCombineRenderElementFromPool():RenderElement [override]
| SubMeshStaticBatch | ||
[override]
| SubMeshStaticBatch |
SubMeshStaticBatch | () | Constructor |
public function SubMeshStaticBatch(key:String, manager:StaticBatchManager, rootOwner:Sprite3D, vertexDeclaration:VertexDeclaration, material:BaseMaterial)
创建一个 SubMeshStaticBatch
实例。
key:String | |
manager:StaticBatchManager | |
rootOwner:Sprite3D | |
vertexDeclaration:VertexDeclaration | |
material:BaseMaterial |
_beforeRender | () | method |
override public function _beforeRender(state:RenderState):Boolean
Parameters
state:RenderState |
Boolean |
_compareBatchRenderElement | () | method |
override protected function _compareBatchRenderElement(a:RenderElement, b:RenderElement):Boolean
Parameters
a:RenderElement | |
b:RenderElement |
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 )
|
VertexBuffer3D |
_render | () | method |
dispose | () | method |
override public function dispose():void