begining adaptation of openGL4 to libGDL