Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. BitmapTextureAtlas splashTextureAtlas = new BitmapTextureAtlas(this.getTextureManager(), 1920, 1080, TextureOptions.DEFAULT);
  2. splashTextureRegion = BitmapTextureAtlasTextureRegionFactory.createFromAsset(splashTextureAtlas, this, "new/splash_bg1.JPG", 0, 0);
  3. splashTextureAtlas.load();
  4.  
  5. Sprite splash = new Sprite(0, 0, splashTextureRegion, mEngine.getVertexBufferObjectManager());
  6. splash.setScale(mainScaleX);
  7.  
  8. Sprite splash = new Sprite(0, 0, splashTextureRegion, mEngine.getVertexBufferObjectManager()) {
  9.  
  10. protected void preDraw(GLState pGLState, Camera pCamera) {
  11. super.preDraw(pGlState, pCamera);
  12. pGlState.enableDither();
  13. }
  14.  
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement