すべてのフォーラムを検索しましたが、動作するコードを取得できません。AndEngine GLES2 で SD カードから画像をスプライトとしてロードしたいのですが、コードを教えていただけますか?
どんな助けでも感謝されます。これが私が試したことです。
File imageFile = new File(pFilePath);
BitmapTextureAtlas texture = new BitmapTextureAtlas(myCxt.getTextureManager(),540 , 960 , TextureOptions.DEFAULT);
FileBitmapTextureAtlasSource fileTextureSource = new FileBitmapTextureAtlasSource(imageFile);
TextureRegion textureRegion = TextureRegionFactory.createFromSource(texture,fileTextureSource ,0,0, true);
このコードは andEngine1 では機能しますが、GLES2 では、以下の行でコンパイル時エラー
「Construtor FileBitmapTextureAtlasSource(file) is undefined」が生成されます。
FileBitmapTextureAtlasSource fileTextureSource = new FileBitmapTextureAtlasSource(imageFile);
SD カードから画像をスプライトとしてロードする方法を教えてください。