APISonar


com.badlogic.gdx.Application.ApplicationType.Android

> com > badlogic > gdx > Application > ApplicationType > Android
com APIs badlogic APIs gdx APIs Application APIs ApplicationType APIs Android APIs

Example 1
public static void generateMipMap (Pixmap pixmap, int textureWidth, int textureHeight, boolean disposePixmap) {
		if (!useHWMipMap) {
			generateMipMapCPU(pixmap, textureWidth, textureHeight, disposePixmap);
			return;
		}

		if (Gdx.app.getType() == ApplicationType.Android) {
			if (Gdx.graphics.isGL20Available())
				generateMipMapGLES20(pixmap, disposePixmap);
			else
				generateMipMapCPU(pixmap, textureWidth, textureHeight, disposePixmap);
		} else {
			generateMipMapDesktop(pixmap, textureWidth, textureHeight, disposePixmap);
		}
	}