Mesh replaces Polygon
[org.ibex.core.git] / src / org / ibex / plat / OpenGL.java
index b852437..674a80a 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; }
         
@@ -86,9 +89,9 @@ abstract class OpenGL {
             fillTrapezoid(x1, x1, y1, x2, x2, y2, color);
         }
 
-        public void stroke(Polygon p, int color) { p.stroke(this, color); }
-        public native void natFill(Polygon p, int color);
-        public void fill(Polygon p, Paint paint) { natFill(p, ((Paint.SingleColorPaint)paint).color); }
+        public void stroke(Mesh p, int color) { /*p.stroke(this, color);*/ }
+        public native void natFill(Mesh p, int color);
+        public void fill(Mesh p, Paint paint) { natFill(p, ((Paint.SingleColorPaint)paint).color); }
 
         public void drawGlyph(org.ibex.graphics.Font.Glyph source, int dx, int dy,
                               int cx1, int cy1, int cx2, int cy2, int rgb, int pc) {