X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FOpenGL.java;h=3b8d68965938d65ea47d55d44693e7453b5c9d70;hb=b213eae7072297f9121511fa671062f9b07fcc59;hp=8abd903d2ec814534a431708395d3d15ea77fbb8;hpb=72e9e5cdb5055acb2c395e629c28042899462462;p=org.ibex.core.git diff --git a/src/org/xwt/plat/OpenGL.java b/src/org/xwt/plat/OpenGL.java index 8abd903..3b8d689 100644 --- a/src/org/xwt/plat/OpenGL.java +++ b/src/org/xwt/plat/OpenGL.java @@ -29,7 +29,7 @@ abstract class OpenGL { } } - // This MUST be called after OpenGL is instansiated (and activateSharedInterpreter is functioning) + // This MUST be called after OpenGL is instansiated (and activateSharedContext is functioning) public void init() throws NotSupportedException { natInit(); glVersion = parseVersion(version); @@ -47,7 +47,7 @@ abstract class OpenGL { Log.diag(this,"Max rectangular texture size: " + maxRectTexSize); } - protected abstract void activateSharedInterpreter(); + protected abstract void activateSharedContext(); public static class NotSupportedException extends Exception { public NotSupportedException(String s) { super(s); } @@ -67,7 +67,7 @@ abstract class OpenGL { } // This should activate the drawing context and prepare the double buffer for drawing - protected abstract void activateInterpreter(); + protected abstract void activateContext(); protected static native void drawableInit(int w, int h); @@ -89,7 +89,7 @@ abstract class OpenGL { } private void drawPicture_(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int color) { - activateInterpreter(); + activateContext(); setColor(color); GLPicture p = getInnerPicture(source, gl); p.draw(dx,dy,cx1,cy1,cx2,cy2);