Surface no longer implements/extends PixelBuffer
[org.ibex.core.git] / src / org / ibex / graphics / Surface.java
index 6beebac..82ac330 100644 (file)
@@ -16,7 +16,7 @@ import org.ibex.core.*;  // FIXME
  *  Platform subclasses should include an inner class subclass of
  *  Surface to return from the Platform._createSurface() method
  */
-public abstract class Surface extends PixelBuffer implements Callable {
+public abstract class Surface implements Callable {
 
     // Static Data ////////////////////////////////////////////////////////////////////////////////
 
@@ -67,6 +67,7 @@ public abstract class Surface extends PixelBuffer implements Callable {
     
     // Methods to be overridden by subclasses ///////////////////////////////////////////////////////
 
+    public abstract PixelBuffer getPixelBuffer();      ///< returns a PixelBuffer representing this Surface
     public abstract void toBack();                     ///< should push surface to the back of the stacking order
     public abstract void toFront();                    ///< should pull surface to the front of the stacking order
     public abstract void syncCursor();                 ///< set the actual cursor to this.cursor if they do not match