Class ModelInstanceParticleBatch
java.lang.Object
com.badlogic.gdx.graphics.g3d.particles.batches.ModelInstanceParticleBatch
- All Implemented Interfaces:
ParticleBatch<ModelInstanceControllerRenderData>
,ResourceData.Configurable
,RenderableProvider
public class ModelInstanceParticleBatch
extends Object
implements ParticleBatch<ModelInstanceControllerRenderData>
This class is used to render particles having a model instance channel.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
Must be called once before any drawing operationvoid
void
end()
Must be called after all the drawing operationsint
void
getRenderables
(Array<Renderable> renderables, Pool<Renderable> pool) ReturnsRenderable
instances.void
load
(AssetManager manager, ResourceData assetDependencyData) void
save
(AssetManager manager, ResourceData assetDependencyData)
-
Constructor Details
-
ModelInstanceParticleBatch
public ModelInstanceParticleBatch()
-
-
Method Details
-
getRenderables
Description copied from interface:RenderableProvider
ReturnsRenderable
instances. Renderables are obtained from the providedPool
and added to the provided array. The Renderables obtained usingPool.obtain()
will later be put back into the pool, do not store them internally. The resulting array can be rendered via aModelBatch
.- Specified by:
getRenderables
in interfaceRenderableProvider
- Parameters:
renderables
- the output arraypool
- the pool to obtain Renderables from
-
getBufferedCount
public int getBufferedCount() -
begin
public void begin()Description copied from interface:ParticleBatch
Must be called once before any drawing operation- Specified by:
begin
in interfaceParticleBatch<ModelInstanceControllerRenderData>
-
end
public void end()Description copied from interface:ParticleBatch
Must be called after all the drawing operations- Specified by:
end
in interfaceParticleBatch<ModelInstanceControllerRenderData>
-
draw
- Specified by:
draw
in interfaceParticleBatch<ModelInstanceControllerRenderData>
-
save
- Specified by:
save
in interfaceParticleBatch<ModelInstanceControllerRenderData>
- Specified by:
save
in interfaceResourceData.Configurable
-
load
- Specified by:
load
in interfaceParticleBatch<ModelInstanceControllerRenderData>
- Specified by:
load
in interfaceResourceData.Configurable
-