}
}
- // 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);
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); }
}
// 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);
}
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);