move conversion from webglutil to screengl