2011-07-25 2 views
1

(0,0,480,320)。問題(Andengine)

final Engine engine = new Engine(new EngineOptions(true, 

ScreenOrientation.LANDSCAPE、新しいFillResolutionPolicy()、this.mCamera))。

this.mCamera = new Camera(0、0、CAMERA_WIDTH、CAMERA_HEIGHT);

final Engine engine = new Engine(new EngineOptions(true, 

ScreenOrientation.LANDSCAPE、新しいFillResolutionPolicy()、this.mCamera))。

// ----

this.mTexture =新しいテクスチャ(2048、512、TextureOptions.BILINEAR_PREMULTIPLYALPHA)。 this.mbgTextureRegion = TextureRegionFactory.createFromAsset(this.mTexture、this、 "gfx/bg.png"、0、0);

 this.mEngine.getTextureManager().loadTexture(this.mTexture); 

whats maximumテクスチャサイズは、andengineで使用されます。私は2048、その問題を作る、PLZの助けを使用した?

答えて

1

最大テクスチャサイズはデバイスによって異なります。 新しいデバイスのみが2048x2048をサポートします。私の経験では、1024x1024は今日の時点でより良くサポートされています。

実行時に最大サイズを見つけることもできます。 How can I find the maximum texture size for different phones?