All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bigcustard.scene2dplus.image.DisposableImage Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.bigcustard.scene2dplus.image;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.utils.Disposable;

public class DisposableImage extends Image implements Disposable {
    private final Texture texture;
    private static int count;

    public DisposableImage(Texture texture) {
        super(texture);
        this.texture = texture;
    }

    @Override
    public void dispose() {
        texture.dispose();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy