Пример #1
0
 @Override
 public void dispose() {
   texture.dispose();
   batch.dispose();
   hero1Atlas.dispose();
   HUDBatch.dispose();
   font1.dispose();
 }
Пример #2
0
  @Override
  public void dispose() {
    Gdx.input.setInputProcessor(null);

    if (disposeCount == 1) return;
    butBatch.dispose();
    splashBatch.dispose();
    logoMenuBatch.dispose();
    butAtlas.dispose();
    font1.dispose();
    butSkin.dispose();
    stage.dispose();
    disposeCount = 1;
  }
Пример #3
0
 @Override
 public void dispose() {
   spriteBatch.dispose();
   background.dispose();
   logo.dispose();
   font.dispose();
 }
Пример #4
0
 @Override
 public void dispose() {
   stage.dispose();
   game.dispose();
   skin.dispose();
   batch.dispose();
 }
 @Override
 public void dispose() {
   spriteBatch.dispose();
   background1.dispose();
   background2.dispose();
   background3.dispose();
 }
Пример #6
0
 @Override
 public void dispose() {
   // TODO Auto-generated method stub
   font.dispose();
   shapeRenderer.dispose();
   batch.dispose();
 }
 @Override
 public void dispose() {
   super.dispose();
   spriteBatch.dispose();
   shapeRenderer.dispose();
   resourceManager.unloadAll();
 }
Пример #8
0
  @Override
  public void dispose() {
    // TODO Auto-generated method stub
    Gdx.input.setInputProcessor(null);

    spritebatch.dispose();
  }
Пример #9
0
 @Override
 public void dispose() {
   dropImage.dispose();
   bucketImage.dispose();
   dropSound.dispose();
   rainMusic.dispose();
   batch.dispose();
 }
Пример #10
0
  /**
   * Is called by the application lifecycle when the game is shut down. Should dispose everything
   * that was allocated.
   */
  @Override
  public void dispose() {
    batch.dispose();
    StyleHelper.getInstance().dispose();

    // release catching of back key (no idea if necessary)
    Gdx.input.setCatchBackKey(false);
  }
Пример #11
0
  @Override
  public void dispose() {
    super.dispose();

    res.dispose();
    textureAtlas.dispose();
    batch.dispose();
  }
Пример #12
0
 @Override
 public void dispose() {
   Gdx.app.log(LOG, "Disposing screen: " + getName());
   uiStage.dispose();
   // skin.dispose();
   // reaktio.dispose();
   batch.dispose();
 }
Пример #13
0
 @Override
 public void dispose() {
   world.dispose();
   batch.dispose();
   bodies.clear();
   mpHandler.dispose();
   super.dispose();
 }
Пример #14
0
 /*
  * Dispose all objects used in this class
  * @see com.badlogic.gdx.Screen#dispose()
  */
 @Override
 public void dispose() {
   ownCamera = null;
   texture.dispose();
   batch.dispose();
   oldTime = 0;
   // toast = null;
 }
Пример #15
0
 @Override
 public void dispose() {
   modelBatch.dispose();
   shadowBatch.dispose();
   shapeRenderer.dispose();
   spriteBatch.dispose();
   font.dispose();
   shadowLight.dispose();
 }
 @Override
 public void dispose() {
   // dispose of all the native resources
   dropImage.dispose();
   bucketImage.dispose();
   //        dropSound.dispose();
   //        rainMusic.dispose();
   batch.dispose();
 }
Пример #17
0
 @Override
 public void dispose() {
   bigFont.dispose();
   hugeFont.dispose();
   sb.dispose();
   world.dispose();
   player.dispose();
   Globals.atlas.dispose();
 }
Пример #18
0
  public void dispose() {
    blurTargetA.dispose();
    blurTargetB.dispose();
    blurShader.dispose();

    batch.dispose();

    shapeRenderer.dispose();
  }
Пример #19
0
 @Override
 public void dispose() {
   timer.cancel();
   vialTexture.dispose();
   ballTexture.dispose();
   spriteBatch.dispose();
   font.dispose();
   world.dispose();
 }
Пример #20
0
 @Override
 public void dispose() {
   batch.dispose();
   ui.dispose();
   fontLabel.dispose();
   stage.dispose();
   skin.dispose();
   tiledMap.dispose();
 }
Пример #21
0
 public static void dispose() {
   modelBatch.dispose();
   spriteBatch.dispose();
   frameBuffer.dispose();
   tempBuffer.dispose();
   shaderProvider.dispose();
   for (ShaderProgram s : Bdx.matShaders.values()) {
     s.dispose();
   }
 }
Пример #22
0
  @Override
  public void dispose() {
    batch.dispose();
    leftWallTextureAtlas.dispose();
    rightWallTextureAtlas.dispose();

    // batch.dispose();
    // texture.dispose();

  }
Пример #23
0
 @Override
 public void dispose() {
   // Eliminar basura
   principal.dispose();
   batch.dispose();
   texturaBtnContinue.dispose();
   texturaBtnMenu.dispose();
   texturaFondo.dispose();
   this.efectoMuerteNinja.dispose();
   this.efectoClick.dispose();
 }
Пример #24
0
  public void dispose() {

    try {

      spriteBatch.dispose();

      texture.dispose();
      textureRegions.clear();
    } catch (Exception e) {

    }
  }
Пример #25
0
  @Override
  public void dispose() {
    if (mapRenderer != null) {
      mapRenderer.dispose();
      mapRenderer = null;
    }

    batch.dispose();
    shapeRenderer.dispose();
    box2DRenderer.dispose();
    //		particleFrameBuffer.dispose();
  }
Пример #26
0
  @Override
  public void dispose() {
    Gdx.app.log(BeatBlaster.LOG, "Disposing screen: " + getName());

    // the following call disposes the screen's stage, but on my computer it
    // crashes the game so I commented it out; more info can be found at:
    // http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=3624
    // stage.dispose();

    // as the collaborators are lazily loaded, they may be null
    if (font != null) font.dispose();
    if (batch != null) batch.dispose();
    if (skin != null) skin.dispose();
    if (atlas != null) atlas.dispose();
  }
Пример #27
0
  @Override
  public void dispose() {

    planetTexture.dispose();
    backgroundTexture.dispose();
    planetCoreTexture.dispose();
    ballTexture.dispose();
    batch.dispose();
    font.dispose();

    // disposing bodies
    world.destroyBody(planetCoreModel);
    world.destroyBody(planetModel);
    for (int i = 0; i < MAX_BALLS; i++) world.destroyBody(ballModels[i]);
    world.dispose();
  }
Пример #28
0
  @Override
  public void render(float delta) {
    super.render(delta);
    SpriteBatch batch = new SpriteBatch();

    BitmapFont font = new BitmapFont();
    font.getData().setScale(2f, 2f);
    font.setColor(Color.GREEN);

    batch.begin();
    font.draw(batch, Integer.toString(getGame().getHighScore()), 360, 310);
    font.draw(batch, Integer.toString(getGame().getCurrentScore()), 360, 280);
    batch.end();

    batch.dispose();
  }
  private TextureRegion createBgIcon(String atlas, String region) {
    TextureAtlas a =
        new TextureAtlas(
            Gdx.files.absolute(
                Ctx.project.getProjectPath()
                    + "/"
                    + Project.ATLASES_PATH
                    + "/1/"
                    + atlas
                    + ".atlas"));
    AtlasRegion r = a.findRegion(region);
    FrameBuffer fbo =
        new FrameBuffer(
            Format.RGBA8888, 200, (int) (r.getRegionHeight() * 200f / r.getRegionWidth()), false);

    SpriteBatch fboBatch = new SpriteBatch();
    fboBatch.setColor(Color.WHITE);
    OrthographicCamera camera = new OrthographicCamera();
    camera.setToOrtho(false, fbo.getWidth(), fbo.getHeight());
    fboBatch.setProjectionMatrix(camera.combined);

    Gdx.gl.glDisable(GL20.GL_SCISSOR_TEST);
    fbo.begin();
    fboBatch.begin();
    fboBatch.draw(r, 0, 0, fbo.getWidth(), fbo.getHeight());
    fboBatch.end();

    TextureRegion tex = ScreenUtils.getFrameBufferTexture(0, 0, fbo.getWidth(), fbo.getHeight());
    //		tex.flip(false, true);

    fbo.end();
    Gdx.gl.glEnable(GL20.GL_SCISSOR_TEST);

    fbo.dispose();
    a.dispose();
    fboBatch.dispose();

    return tex;
  }
Пример #30
0
 @Override
 public void dispose() {
   batch.dispose();
   font.dispose();
 }