public class ModelInstanceParticleBatch extends java.lang.Object implements ParticleBatch<ModelInstanceControllerRenderData>
| Constructor and Description |
|---|
ModelInstanceParticleBatch() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Must be called once before any drawing operation
|
void |
draw(ModelInstanceControllerRenderData data) |
void |
end()
Must be called after all the drawing operations
|
int |
getBufferedCount() |
void |
getRenderables(Array<Renderable> renderables,
Pool<Renderable> pool)
Returns
Renderable instances. |
void |
load(AssetManager manager,
ResourceData assetDependencyData) |
void |
save(AssetManager manager,
ResourceData assetDependencyData) |
public void getRenderables(Array<Renderable> renderables, Pool<Renderable> pool)
RenderableProviderRenderable instances. Renderables are obtained from the provided Pool and added to the provided
array. The Renderables obtained using Pool.obtain() will later be put back into the pool, do not store them
internally. The resulting array can be rendered via a ModelBatch.getRenderables in interface RenderableProviderrenderables - the output arraypool - the pool to obtain Renderables frompublic int getBufferedCount()
public void begin()
ParticleBatchbegin in interface ParticleBatch<ModelInstanceControllerRenderData>public void end()
ParticleBatchend in interface ParticleBatch<ModelInstanceControllerRenderData>public void draw(ModelInstanceControllerRenderData data)
draw in interface ParticleBatch<ModelInstanceControllerRenderData>public void save(AssetManager manager, ResourceData assetDependencyData)
save in interface ParticleBatch<ModelInstanceControllerRenderData>save in interface ResourceData.Configurablepublic void load(AssetManager manager, ResourceData assetDependencyData)
load in interface ParticleBatch<ModelInstanceControllerRenderData>load in interface ResourceData.Configurable