public static void dispose() { texture.dispose(); bgTexture.dispose(); bgBackTexture.dispose(); robotoLt.dispose(); robotoBlk.dispose(); panel.dispose(); fontFilter.dispose(); fontFilter2.dispose(); menuBack.dispose(); smoke.dispose(); fbShare.dispose(); collision.dispose(); jump.dispose(); jumpSound.dispose(); dblJump.dispose(); milestone50.dispose(); run.dispose(); hit.dispose(); milestone.dispose(); milestone50.dispose(); select.dispose(); highScore.dispose(); smokeParticle.dispose(); starParticle.dispose(); platform.dispose(); nanoRun.dispose(); // gpgsAtlas.dispose(); }
@Override public void dispose() { if (cache != null) cache.dispose(); for (TextureAtlas atlas : atlases.values()) atlas.dispose(); watcher.removeListener(this); }
@Override public void dispose() { batch.dispose(); leftWallTextureAtlas.dispose(); rightWallTextureAtlas.dispose(); // batch.dispose(); // texture.dispose(); }
@Override public void dispose() { stage.dispose(); skin.dispose(); atlas.dispose(); font.dispose(); }
@Override public void dispose() { super.dispose(); res.dispose(); textureAtlas.dispose(); batch.dispose(); }
@Override public void dispose() { texture.dispose(); batch.dispose(); hero1Atlas.dispose(); HUDBatch.dispose(); font1.dispose(); }
public static void dispose() { textures.dispose(); timerFont.dispose(); fight.dispose(); for (int i = 0; i < 7; i++) { hitSounds.get(i).dispose(); } }
@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; }
private void updateAtlas(FileHandle file) { String relativePath = fileAccess.relativizeToAssetsFolder(file); TextureAtlas atlas = atlases.get(relativePath); if (atlas != null) { atlases.remove(relativePath); atlas.dispose(); } if (file.exists()) { atlases.put(relativePath, new TextureAtlas(file)); App.eventBus.post(new ResourceReloadedEvent(ResourceReloadedEvent.RESOURCE_TEXTURES)); App.eventBus.post(new ResourceReloadedEvent(ResourceReloadedEvent.RESOURCE_TEXTURE_ATLASES)); } }
@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(); }
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; }
public static void Dispose() { atlas.dispose(); }
public void dispose() { batch.dispose(); backgroundTexture.dispose(); textureAtlas.dispose(); }
@Override public void dispose() { super.dispose(); batch.dispose(); atlas.dispose(); }
@Override public void dispose() { atlas.dispose(); fonts.defaultSmall.dispose(); }
public void dispose() { stage.dispose(); atlas.dispose(); skin.dispose(); }