Skip to content

mini2Dx/gdx-collections

Repository files navigation

gdx-collections

LibGDX collection classes extracted into a standalone library (i.e. no OpenGL, LWJGL, etc. required)

This is useful for those who need high performance collections on the JVM but aren't building an application with LibGDX.

Mechanism

The gradle build will checkout a specific version of libgdx, copy the collections source files into src/main/java, rename the packages from com.badlogic to org.mini2Dx and compile the standalone jar.

However MathUtils, RandomXS128 and com.badlogic.gdx.util.reflect classes are required for the collection classes. To allow the collection classes to remain standalone, these classes are copied into org.mini2Dx.gdx.utils.compat and the references are updated in the collections classes.

Usage

compile "org.mini2Dx:gdx-collections:1.9.13"

Included Classes