Package com.badlogic.gdx.graphics

Examples of com.badlogic.gdx.graphics.TextureData.prepare()


   
    @Override
    public boolean isTransparent(int x, int y){
        TextureData data = image.getTexture().getTextureData();
        if (!data.isPrepared()){
            data.prepare();
        }
        int pixel = data.consumePixmap().getPixel(x, y);
        pixel &= 0x000000ff;
        return pixel == 0;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.