
games.rednblack.editor.renderer.utils.TmpFloatArray Maven / Gradle / Ivy
package games.rednblack.editor.renderer.utils;
import com.badlogic.gdx.utils.IntMap;
public class TmpFloatArray {
private final IntMap cache = new IntMap<>();
public float[] getTemporaryArray(int size) {
if (!cache.containsKey(size))
cache.put(size, new float[size]);
return cache.get(size);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy