function pointers for rendergl api