writing gl binding