use of com.badlogic.gdx.Application in project libgdx by libgdx.
the class Texture method getManagedStatus.
public static String getManagedStatus() {
StringBuilder builder = new StringBuilder();
builder.append("Managed textures/app: { ");
for (Application app : managedTextures.keySet()) {
builder.append(managedTextures.get(app).size);
builder.append(" ");
}
builder.append("}");
return builder.toString();
}
use of com.badlogic.gdx.Application in project libgdx by libgdx.
the class GLFrameBuffer method getManagedStatus.
public static StringBuilder getManagedStatus(final StringBuilder builder) {
builder.append("Managed buffers/app: { ");
for (Application app : buffers.keySet()) {
builder.append(buffers.get(app).size);
builder.append(" ");
}
builder.append("}");
return builder;
}
use of com.badlogic.gdx.Application in project commons-gdx by gemserk.
the class GpuMemUtils method getTextures.
private static List<Texture> getTextures() throws NoSuchFieldException, IllegalAccessException {
Field managedTexturesField = Texture.class.getDeclaredField("managedTextures");
managedTexturesField.setAccessible(true);
Map<Application, List<Texture>> managedTexturesPerApp = (Map<Application, List<Texture>>) managedTexturesField.get(null);
List<Texture> managedTextures = managedTexturesPerApp.get(Gdx.app);
return managedTextures;
}
Aggregations