Exemple #1
0
  @Override
  public AnimationObject3d getParsedAnimationObject() {
    Log.d(Min3d.TAG, "Start object creation");
    Bitmap texture = null;
    AnimationObject3d animObj;

    if (textureAtlas.hasBitmaps()) {
      textureAtlas.generate();
      texture = textureAtlas.getBitmap();
      Shared.textureManager().addTextureId(texture, textureAtlas.getId(), generateMipMap);
    }

    Log.d(Min3d.TAG, "Creating object " + co.name);
    animObj = co.getParsedObject(textureAtlas, materialMap, frames);

    if (textureAtlas.hasBitmaps()) {
      if (texture != null) texture.recycle();
    }
    Log.d(Min3d.TAG, "Object creation finished");

    super.cleanup();

    return animObj;
  }
Exemple #2
0
 public void actionPerformed(ActionEvent event) {
   parser.setString(textcomponent.getText());
 }