Implemented GL interop fucntions.