Example usage for com.badlogic.gdx.utils IntMap remove

List of usage examples for com.badlogic.gdx.utils IntMap remove

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils IntMap remove.

Prototype

public V remove(int key) 

Source Link

Usage

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   ww w .j a v  a 2 s .  c  om
        pictures.clear();
    } else {
        PictureRef pRef = pictures.remove(posZkey);
        if (pRef != null)
            pRef.textureRegion.dispose();
    }
}