Hola,estoy usando la libreria libgdx.
He importado una imagen para que me salga de fondo,pero no se ve nada...
Y me sale un error que no se como solucionarlo :/
tid 1075: eglGetConfigAttrib(605): error 0x3004 (EGL_ BAD_ ATTRIBUTE)
[getAttribValue] Bad attribute idx
¿A que se debe esto?
import javax.microedition.khronos.opengles.GL10;
import android.os.Bundle;
import android.view.Menu;    
import android.widget.Button; 
import android.content.Intent; 
import android.view.View;
import android.view.MenuItem;
import android.support.v7.app.ActionBarActivity; /
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Game; 
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture; 
import com.badlogic.gdx.graphics.g2d.Sprite; 
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class texture implements Screen {
    Texture texturaFondo;  
    Sprite FondoSprite; 
    SpriteBatch batcher; 
    Principal juego;
    public texture(Principal game) {
        // TODO Auto-generated constructor stub
    {  this.juego = game ;
    texturaFondo = new Texture ("Fondo.jpg"); 
    batcher = new SpriteBatch(); 
    }
    }
    public void dispose() { 
        batcher.dispose();
        texturaFondo.dispose(); 
    }
    public void hide() {
        // TODO Auto-generated method stub
        batcher.dispose();
        texturaFondo.dispose(); 
    }
    @Override
    public void pause() {
        batcher.dispose();
        texturaFondo.dispose();
    }
    public void render (float delta){ 
    Gdx.gl.glClearColor(0,0,0,1); 
    Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); 
    batcher.begin(); 
    batcher.draw(texturaFondo,0, 0 , Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); 
    batcher.end(); /// 
    }
    @Override
    public void resize(int arg0, int arg1) {
    }
    @Override
    public void resume() {
    }
    public void show() { 
         texturaFondo = new Texture ("Fondo.jpg");
        batcher = new SpriteBatch ();       
    }
    }


