Guest User

Untitled

a guest
Dec 13th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. // Create a Bitmap
  2. Bitmap b = Utils.makeBitmapFromResourceId(this, R.drawable.nombretextura);
  3.  
  4. // Create a TextureManager and assign it a textureId
  5. Shared.textureManager().addTextureId(b, "textura1", false);
  6.  
  7. // recycle the Bitmap
  8. b.recycle();
  9.  
  10. // Create a TextureVo using the textureId
  11. TextureVo texture = new TextureVo("textura1");
  12.  
  13. AnimationObject3d animation = parser.getParsedAnimationObject();
  14. animation.doubleSidedEnabled(true);
  15.  
  16. animation.textures().addReplace(texture);
Add Comment
Please, Sign In to add comment