List of usage examples for com.badlogic.gdx.utils IntMap clear
public void clear()
From source file:com.ridiculousRPG.ui.MessagingService.java
License:Apache License
public void removePicture(int posZkey) { IntMap<PictureRef> pictures = msgData.get().pictures; if (posZkey == -1) { for (PictureRef pic : pictures.values()) { pic.textureRegion.dispose(); }/*from w w w.java2s . com*/ pictures.clear(); } else { PictureRef pRef = pictures.remove(posZkey); if (pRef != null) pRef.textureRegion.dispose(); } }