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

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

Introduction

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

Prototype

public void clear() 

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  w  w w.java2s .  com*/
        pictures.clear();
    } else {
        PictureRef pRef = pictures.remove(posZkey);
        if (pRef != null)
            pRef.textureRegion.dispose();
    }
}