Package com.badlogic.gdx.graphics.g3d
Interface RenderableProvider
-
- All Known Subinterfaces:
ParticleBatch<T>
- All Known Implementing Classes:
BillboardParticleBatch,BufferedParticleBatch,ModelCache,ModelInstance,ModelInstanceParticleBatch,ParticleSystem,PointSpriteParticleBatch,ShapeCache
public interface RenderableProviderReturns a list ofRenderableinstances to be rendered by aModelBatch.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgetRenderables(Array<Renderable> renderables, Pool<Renderable> pool)ReturnsRenderableinstances.
-
-
-
Method Detail
-
getRenderables
void getRenderables(Array<Renderable> renderables, Pool<Renderable> pool)
ReturnsRenderableinstances. 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.- Parameters:
renderables- the output arraypool- the pool to obtain Renderables from
-
-