gl calls in cpp