APIdia Launch Partner
Top Description Methods
com.badlogic.gdx.graphics.g3d

public Interface RenderableProvider

Known Direct Subinterfaces
com.badlogic.gdx.graphics.g3d.particles.batches.ParticleBatch
Known Direct Implementers
com.badlogic.gdx.graphics.g3d.particles.ParticleSystem, com.badlogic.gdx.graphics.g3d.utils.ShapeCache, com.badlogic.gdx.graphics.g3d.ModelCache, com.badlogic.gdx.graphics.g3d.ModelInstance
Imports
com.badlogic.gdx.utils.Array, .Pool

Returns a list of Renderable instances to be rendered by a ModelBatch.
Author
badlogic

Method Summary

Modifier and TypeMethod and Description
public void
getRenderables(Array<Renderable>
the output array
renderables
,
Pool<Renderable>
the pool to obtain Renderables from
pool
)

Returns Renderable instances.

Method Detail

getRenderablesback to summary
public void getRenderables(Array<Renderable> renderables, Pool<Renderable> pool)

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.

Parameters
renderables:Array<Renderable>

the output array

pool:Pool<Renderable>

the pool to obtain Renderables from