APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.graphics.g3d.particles.batches

public Class ModelInstanceParticleBatch

extends Object
implements ParticleBatch<ModelInstanceControllerRenderData>
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch, com.badlogic.gdx.graphics.g3d.particles.ResourceData.Configurable, com.badlogic.gdx.graphics.g3d.RenderableProvider
Imports
com.badlogic.gdx.assets.AssetManager, com.badlogic.gdx.graphics.g3d.Renderable, com.badlogic.gdx.graphics.g3d.particles.ResourceData, com.badlogic.gdx.graphics.g3d.particles.renderers.ModelInstanceControllerRenderData, com.badlogic.gdx.utils.Array, .Pool

This class is used to render particles having a model instance channel.
Author
Inferno

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv Array<ModelInstanceControllerRenderData>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
begin()

Implements com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch.begin.

Must be called once before any drawing operation

public void
public void
end()

Implements com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch.end.

Must be called after all the drawing operations

public int
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferedParticlesCountback to summary
pack-priv int bufferedParticlesCount
controllersRenderDataback to summary
pack-priv Array<ModelInstanceControllerRenderData> controllersRenderData

Constructor Detail

ModelInstanceParticleBatchback to summary
public ModelInstanceParticleBatch()

Method Detail

beginback to summary
public void begin()

Implements com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch.begin.

Doc from com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch.begin.

Must be called once before any drawing operation

Annotations
@Override
drawback to summary
public void draw(ModelInstanceControllerRenderData data)

Implements com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch.draw.

Annotations
@Override
endback to summary
public void end()

Implements com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch.end.

Doc from com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch.end.

Must be called after all the drawing operations

Annotations
@Override
getBufferedCountback to summary
public int getBufferedCount()
getRenderablesback to summary
public void getRenderables(Array<Renderable> renderables, Pool<Renderable> pool)

Implements com.badlogic.gdx.graphics.g3d.RenderableProvider.getRenderables.

Doc from com.badlogic.gdx.graphics.g3d.RenderableProvider.getRenderables.

Returns Renderable 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.

Annotations
@Override
loadback to summary
public void load(AssetManager manager, ResourceData<T> assetDependencyData)

Implements com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch.load.

Annotations
@Override
saveback to summary
public void save(AssetManager manager, ResourceData<T> assetDependencyData)

Implements com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch.save.

Annotations
@Override