Hello since im new to Texturing i am gonna need to ask you another question and hope you can help again
i am quiet confused because i worked out how to blit tetures to use them as gui elements and so i implemented 2 buttons with 4 textures 2 per each (one pressed one normal)
everything works fine the emulator shows all the buttons and the clicking effects working nicely
but now i loaded the .apk to my smartphone and i cant see any of the buttons i added i thought blitting is for android
i checked twice if i had exported the rigth way etc i dont know what i am doing false everything runs on smartphone without errors but no buttons are visible
here i add the textures to the texturemanager in the onsurfacecreated method
bhn = new Texture(getAssets().open("Buttons/bhn.png"));
bhp = new Texture(getAssets().open("Buttons/bhp.png"));
bfn = new Texture(getAssets().open("Buttons/bfn.png"));
bfp = new Texture(getAssets().open("Buttons/bfp.png"));
} catch (IOException e) {
e.printStackTrace();
}
if(!tm.containsTexture("bhn"))
tm.addTexture("bhn", bhn);
if(!tm.containsTexture("bhp"))
tm.addTexture("bhp", bhp);
if(!tm.containsTexture("bfn"))
tm.addTexture("bfn", bfn);
if(!tm.containsTexture("bfp"))
tm.addTexture("bfp", bfp);
}
and here i blit them in the ondrawframe method
fb.clear(back);
world.renderScene(fb);
world.draw(fb);
//Blitting
fb.blit(tm.getTexture(bh), 0, 0, bhnX, bhnY
,128 ,128 , buttonWidth, buttonHeight, 100, false, null);
fb.blit(tm.getTexture(bf), 0, 0, bfnX, bfnY
,128 ,128 , buttonWidth, buttonHeight, 100, false, null);
fb.display();
i am kind of helpless rigth here because i am new to jpct ae and all that stuff and there is no error output i could watch
i hope you guys can think of a cause for my problem or maybe you had the same so please share your opinions with me
thank you all for your help