Refactored OpenGL cbinding.