1 package com.badlogic.gdx.tests.utils; 2 3 import com.badlogic.gdx.Gdx; 4 import com.badlogic.gdx.graphics.GL20; 5 import com.badlogic.gdx.graphics.Texture; 6 import com.badlogic.gdx.graphics.g2d.SpriteBatch; 7 8 /** 9 * Placeholder class that's wired up with all backends so i can quickly test out 10 * issues... 11 * @author badlogic 12 * 13 */ 14 public class IssueTest extends GdxTest { 15 SpriteBatch batch; 16 Texture img; 17 Texture img2; 18 19 @Override create()20 public void create () { 21 batch = new SpriteBatch(); 22 img = new Texture("data/issue/bark.png"); 23 img2 = new Texture("data/issue/leaf.png"); 24 } 25 26 @Override render()27 public void render () { 28 Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); 29 batch.begin(); 30 batch.draw(img, 0, 0); 31 batch.draw(img2, 512, 0); 32 batch.end(); 33 } 34 } 35