So im trying to call the dispose method in this class by writing
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
1 2 3 4 5 6 7 8 9 10 11 12 13
| 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(); } |