Is it possible to port OpenGL, GLUT projects to Android JNI.

I can handle events from Java via. JNI like this:

void on_surface_created(const char* path) {}
void on_surface_changed(int width,...