Package | laya.d3.graphics |
Class | public class StaticBatch |
Inheritance | StaticBatch Object |
Implements | IRenderable, laya.resource.IDispose |
Subclasses | SubMeshStaticBatch |
StaticBatch
类用于静态合并的父类,该类为抽象类。
Property | Defined By | ||
---|---|---|---|
triangleCount : int [read-only] | StaticBatch | ||
_vertexBufferCount : int [read-only] | StaticBatch |
Method | Defined By | ||
---|---|---|---|
StaticBatch(key:String, manager:StaticBatchManager, rootOwner:Sprite3D)
创建一个 StaticBatch 实例。
| StaticBatch | ||
_beforeRender(state:RenderState):Boolean | StaticBatch | ||
StaticBatch | |||
_getVertexBuffer(index:int = 0):VertexBuffer3D | StaticBatch | ||
_render(state:RenderState):void | StaticBatch | ||
_renderRuntime(conchGraphics3D:*, renderElement:RenderElement, state:RenderState):void NATIVE | StaticBatch | ||
[static]
兼容性接口,请使用StaticBatchManager.combine()代替。
| StaticBatch |
_vertexBufferCount | property |
_vertexBufferCount:int
[read-only] public function get _vertexBufferCount():int
triangleCount | property |
triangleCount:int
[read-only] public function get triangleCount():int
StaticBatch | () | Constructor |
public function StaticBatch(key:String, manager:StaticBatchManager, rootOwner:Sprite3D)
创建一个 StaticBatch
实例。
key:String | |
manager:StaticBatchManager | |
rootOwner:Sprite3D |
_beforeRender | () | method |
_getIndexBuffer | () | method |
_getVertexBuffer | () | method |
public function _getVertexBuffer(index:int = 0):VertexBuffer3D
Parameters
index:int (default = 0 )
|
VertexBuffer3D |
_render | () | method |
_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 |