Using java Syntax Highlighting
- textureAtlas = new BitmapTextureAtlas(2048, 2048, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
- textureAtlas2 = new BitmapTextureAtlas(1024, 2048, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
- foo = BitmapTextureAtlasTextureRegionFactory.createFromAsset(textureAtlas ,this,"foo.png",0,0);
- bar = BitmapTextureAtlasTextureRegionFactory.createFromAsset(textureAtlas2,this,"bar.png",0,0);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
But when I try to use bar this way:
Using java Syntax Highlighting
- Sprite sBar = new Sprite(0,0,bar);
- scene.attachChild(sBar);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
the only thing I can see is the white rectangle instead of my image. And I have no idea what is wrong here.

