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