X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FOpenGL.java;h=5367cb6489bc80ca0b3a48e601029bef829c74e7;hb=6c325e065eb458510c01999804a54c5c3e94e7d6;hp=6e89350232d9c246b52bde1034cdb44d1e90d967;hpb=42da60bd167403eccc3466575772819007388cfd;p=org.ibex.core.git diff --git a/src/org/xwt/plat/OpenGL.java b/src/org/xwt/plat/OpenGL.java index 6e89350..5367cb6 100644 --- a/src/org/xwt/plat/OpenGL.java +++ b/src/org/xwt/plat/OpenGL.java @@ -30,7 +30,7 @@ abstract class OpenGL { public void init() throws NotSupportedException { natInit(); float v = parseVersion(version); - // FIXME: enable linear filtering for OpenGL >= 1.2 + // FEATURE: enable linear filtering for OpenGL >= 1.2 // If we disable linear filtering (and therefor GL_CLAMP_TO_EDGE) we could probably get by with less if(v < 1.1) throw new NotSupportedException("OpenGL 1.1 or greater is required. (you have: " + version +" - " + v + ")"); if(pretendToBeACrappyVideoCard) { @@ -74,13 +74,17 @@ abstract class OpenGL { public native void setClip(int x, int y, int x2, int y2); public native void resetClip(); - public native void fillRect(int x, int y, int x2, int y2, int color); public native void fillTrapezoid(int x1, int x2, int y1, int x3, int x4, int y2, int color); public void drawString(String font, String text, int x, int y, int color) { //System.out.println("drawString(): " + text); } + //public native void drawPictureAlphaOnly(Picture source, int dx1, int dy1, int dx2, int dy2, + //int sx1, int sy1, int sx2, int sy2, int rgb); + public void drawPictureAlphaOnly(Picture source, int dx1, int dy1, int dx2, int dy2, + int sx1, int sy1, int sx2, int sy2, int rgb) { } + public void drawPicture(org.xwt.Picture source, int x, int y) { activateContext(); GLPicture p = (GLPicture) source;