Skip to content

Instantly share code, notes, and snippets.

@metaphore
Last active December 7, 2015 19:57
Show Gist options
  • Save metaphore/9dfd4127422bac399876 to your computer and use it in GitHub Desktop.
Save metaphore/9dfd4127422bac399876 to your computer and use it in GitHub Desktop.
[LibGDX] How to obtain pixmap from texture
TextureData textureData = getTexture().getTextureData();
if (!textureData.isPrepared()) {
textureData.prepare();
}
Pixmap pixmap = textureData.consumePixmap();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment