So im trying to call the dispose method in this class by writing
Pixmap.dispose():
but this error comes up: Cannot make a static reference to the non-static method dispose() from the type Pixmap
So as i go to change the dispose() method to a static method i get this error: Illegal modifier for the interface method dispose; only public & abstract are permitted
Is there any work around to this?
This is the pixmap class
package com.reed.snow.framework;
import com.reed.snow.framework.Graphics.PixmapFormat;
public interface Pixmap {
public int getWidth();
public int getHeight();
public PixmapFormat getFormat();
public void dispose();
}