
<?xml version="1.0" encoding="utf-8"?>
<Screen name="AlphaTest" descriptors="xworker.libgdx.Screen" red="0" green="0" blue="0" alpha="1">
<actions>
<GroovyAction name="render">
<code><![CDATA[import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.Pixmap.Format;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.ScreenUtils;
batch.begin();
batch.draw(texture, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
batch.end();
Pixmap pixmap = ScreenUtils.getFrameBufferPixmap(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
int color = pixmap.getPixel(0, pixmap.getHeight() - 1);
Gdx.app.log("AlphaTest", Integer.toHexString(color));
pixmap.dispose();]]></code>
</GroovyAction>
</actions>
<Resources>
<SpriteBatch name="batch" constructor="default"></SpriteBatch>
<Color name="pixmapColor" r="1" g="0" b="0" a="1"></Color>
<Pixmap name="pixmap" constructor="width_height_format" width="256" height="256" format="RGBA8888" color="pixmapColor"></Pixmap>
<Texture name="texture" constructor="pixmap_useMipMaps" useMipMaps="false" pixmap="pixmap" minFilter="Linear" magFilter="Linear"></Texture>
</Resources>
</Screen>