Last active
December 7, 2015 19:57
-
-
Save metaphore/9dfd4127422bac399876 to your computer and use it in GitHub Desktop.
[LibGDX] How to obtain pixmap from texture
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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