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 java.lang.Object implements ParticleBatch<ModelInstanceControllerRenderData>
This class is used to render particles having a model instance channel.
-
-
Constructor Summary
Constructors Constructor Description ModelInstanceParticleBatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()Must be called once before any drawing operationvoiddraw(ModelInstanceControllerRenderData data)voidend()Must be called after all the drawing operationsintgetBufferedCount()voidgetRenderables(Array<Renderable> renderables, Pool<Renderable> pool)ReturnsRenderableinstances.voidload(AssetManager manager, ResourceData assetDependencyData)voidsave(AssetManager manager, ResourceData assetDependencyData)
-
-
-
Method Detail
-
getRenderables
public void getRenderables(Array<Renderable> renderables, Pool<Renderable> pool)
Description copied from interface:RenderableProviderReturnsRenderableinstances. Renderables are obtained from the providedPooland 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:
getRenderablesin interfaceRenderableProvider- Parameters:
renderables- the output arraypool- the pool to obtain Renderables from
-
getBufferedCount
public int getBufferedCount()
-
begin
public void begin()
Description copied from interface:ParticleBatchMust be called once before any drawing operation- Specified by:
beginin interfaceParticleBatch<ModelInstanceControllerRenderData>
-
end
public void end()
Description copied from interface:ParticleBatchMust be called after all the drawing operations- Specified by:
endin interfaceParticleBatch<ModelInstanceControllerRenderData>
-
draw
public void draw(ModelInstanceControllerRenderData data)
- Specified by:
drawin interfaceParticleBatch<ModelInstanceControllerRenderData>
-
save
public void save(AssetManager manager, ResourceData assetDependencyData)
- Specified by:
savein interfaceParticleBatch<ModelInstanceControllerRenderData>- Specified by:
savein interfaceResourceData.Configurable
-
load
public void load(AssetManager manager, ResourceData assetDependencyData)
- Specified by:
loadin interfaceParticleBatch<ModelInstanceControllerRenderData>- Specified by:
loadin interfaceResourceData.Configurable
-
-