better api for gl.clear