X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FOpenGL.java;h=16f8d75e3175a1d7db2b96ce9211f9a5c6dcb69e;hb=47f708e9d75f65e097c5968653139859047ec5a0;hp=20fbacb593300ca6a4c6ef14b604448302ab33c3;hpb=c2a138c3882a4bd8dce0212ac59765af5cb126c6;p=org.ibex.core.git diff --git a/src/org/xwt/plat/OpenGL.java b/src/org/xwt/plat/OpenGL.java index 20fbacb..16f8d75 100644 --- a/src/org/xwt/plat/OpenGL.java +++ b/src/org/xwt/plat/OpenGL.java @@ -28,7 +28,7 @@ abstract class OpenGL { } } - // This MUST be called after OpenGL is instansiated (and activateSharedJSContext is functioning) + // This MUST be called after OpenGL is instansiated (and activateSharedInterpreter is functioning) public void init() throws NotSupportedException { natInit(); glVersion = parseVersion(version); @@ -46,7 +46,7 @@ abstract class OpenGL { Log.log(this,"Max rectangular texture size: " + maxRectTexSize); } - protected abstract void activateSharedJSContext(); + protected abstract void activateSharedInterpreter(); public static class NotSupportedException extends Exception { public NotSupportedException(String s) { super(s); } @@ -66,7 +66,7 @@ abstract class OpenGL { } // This should activate the drawing context and prepare the double buffer for drawing - protected abstract void activateJSContext(); + protected abstract void activateInterpreter(); protected static native void drawableInit(int w, int h); @@ -88,7 +88,7 @@ abstract class OpenGL { } private void drawPicture_(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int color) { - activateJSContext(); + activateInterpreter(); setColor(color); GLPicture p = (GLPicture) source; p.draw(dx,dy,cx1,cy1,cx2,cy2);