I'm still having problems. I create a TexLoader with this code:
public class JMETexLoader implements Callable<Node>{
private ByteBuffer bytes;
private Format format;
private int width;
private int height;
private int idTextura;
private DebugGameState state;
public JMETexLoader(DebugGameState state, Format formatoImagen, int width, int height, ByteBuffer bufferDatos,int idTextura){
this.format=formatoImagen;
this.width=width;
this.height=height;
this.bytes = bufferDatos;
this.idTextura=idTextura;
this.state=state;
}
public Node call() throws Exception {
//Creo la imagen con los datos binarios
Image img = new Image(format,width,height,bytes);
//Creo un Texture State
TextureState ts = DisplaySystem.getDisplaySystem().getRenderer().createTextureState();
//Me creo una textura 2D
Texture tex = new Texture2D();
//Indico que filtros voy a utilizar
tex.setMinificationFilter(MinificationFilter.NearestNeighborNoMipMaps);
tex.setMagnificationFilter(MagnificationFilter.NearestNeighbor);
//Digo que imagen tiene que utilizar la textura
tex.setImage(img);