added missing patches to move to fillTriangle() and Mesh
[org.ibex.core.git] / src / org / ibex / plat / OpenGL.java
index 5b9590a..a7aa726 100644 (file)
@@ -58,6 +58,9 @@ abstract class OpenGL {
     public static abstract class GLPixelBuffer implements PixelBuffer {
         protected int width;
         protected int height;
+        public void fillTriangle(int x1, int y1, int x2, int y2, int x3, int y3, int argb) { throw new Error("not implemented"); }
+        public void drawPicture(Picture p, Affine a, Mesh h) { throw new Error("drawPicture() not implemented"); }
+        public void drawGlyph(Font.Glyph source,Affine a,Mesh h,int rgb,int bg) { throw new Error("drawGlyph() not implemented"); }
         public int getWidth() { return width; }
         public int getHeight() { return height; }
         
@@ -143,7 +146,7 @@ abstract class OpenGL {
     public void deleteTexture(final int tex) {
         // CHECKME: Is this safe to do from finalize()?
         // natDeleteTexture MUST be run from the message queue thread
-        Scheduler.add(new Callable() { public Object run(Object o) { natDeleteTexture(tex); return null; }});
+        Platform.Scheduler.add(new Callable() { public Object run(Object o) { natDeleteTexture(tex); return null; }});
     }
     
     private static abstract class GLPicture {