APIdia Launch Partner
Top Inners Fields Constructors Methods
com.badlogic.gdx.graphics.g2d

public Class ParticleEffectPool

extends Pool<ParticleEffectPool.PooledEffect>
Class Inheritance
Imports
com.badlogic.gdx.graphics.g2d.ParticleEffectPool.PooledEffect, com.badlogic.gdx.utils.Array, .Pool

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class

Field Summary

Modifier and TypeField and Description
private final ParticleEffect
Inherited from com.badlogic.gdx.utils.Pool:
maxpeak

Constructor Summary

AccessConstructor and Description
public
ParticleEffectPool(ParticleEffect effect, int initialCapacity, int max)

Method Summary

Modifier and TypeMethod and Description
public void
free(ParticleEffectPool.PooledEffect effect)

Overrides com.badlogic.gdx.utils.Pool.free.

Puts the specified object in the pool, making it eligible to be returned by obtain().

protected ParticleEffectPool.PooledEffect
Inherited from com.badlogic.gdx.utils.Pool:
cleardiscardfillfreeAllgetFreeobtainreset

Field Detail

effectback to summary
private final ParticleEffect effect

Constructor Detail

ParticleEffectPoolback to summary
public ParticleEffectPool(ParticleEffect effect, int initialCapacity, int max)

Method Detail

freeback to summary
public void free(ParticleEffectPool.PooledEffect effect)

Overrides com.badlogic.gdx.utils.Pool.free.

Doc from com.badlogic.gdx.utils.Pool.free.

Puts the specified object in the pool, making it eligible to be returned by obtain(). If the pool already contains max free objects, the specified object is discarded, it is not reset and not added to the pool.

The pool does not check if an object is already freed, so the same object must not be freed multiple times.

newObjectback to summary
protected ParticleEffectPool.PooledEffect newObject()

Implements abstract com.badlogic.gdx.utils.Pool.newObject.

com.badlogic.gdx.graphics.g2d back to summary

public Class ParticleEffectPool.PooledEffect

extends ParticleEffect
Class Inheritance

Field Summary

Inherited from com.badlogic.gdx.graphics.g2d.ParticleEffect:
motionScalexSizeScaleySizeScale

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
free()

Inherited from com.badlogic.gdx.graphics.g2d.ParticleEffect:
allowCompletiondisposedrawdrawfindEmitterflipYgetBoundingBoxgetEmittersisCompleteloadloadloadloadEmitterImagesloadEmitterImagesloadEmitterImagesloadEmittersloadTexturenewEmitternewEmitterpreAllocateParticlesresetresetresetsavescaleEffectscaleEffectscaleEffectsetDurationsetEmittersCleanUpBlendFunctionsetFlipsetPositionstartupdate

Constructor Detail

PooledEffectback to summary
pack-priv PooledEffect(ParticleEffect effect)

Method Detail

freeback to summary
public void free()