
 
        
       
       
<?xml version="1.0" encoding="utf-8"?>
<Screen name="render" descriptors="xworker.libgdx.Screen" width="1024" height="768" red="0" green="0" blue="0" alpha="0">
    <actions>
        <GroovyAction name="render">
            <code><![CDATA[import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
batch.begin();
try{
    def text = "accel: {" + 
        Gdx.input.getAccelerometerX() + "," + 
        Gdx.input.getAccelerometerY() + "," + 
        Gdx.input.getAccelerometerZ() + "}\n" + 
        "orientation: " + Gdx.input.getNativeOrientation() + "\n" + 
        "rotation: "	+ Gdx.input.getRotation() + "\n" + 
        "wh: " + Gdx.graphics.getDesktopDisplayMode() + "\n";
    font.draw(batch, text, 0, 200);
	//println(font);
}finally{
    batch.end();
}]]></code>
        </GroovyAction>
    </actions>
    <Resources>
        <FileResource name="bitmapFontFile" type="fileHandle" file="\data\arial-32.fnt"></FileResource>
        <BitmapFont name="font" constructor="fontFile_flip" flip="false" fontFile="bitmapFontFile" imageFile="bitmapFontImage"></BitmapFont>
        <SpriteBatch name="batch" constructor="default"></SpriteBatch>
    </Resources>
</Screen>