The easiest way to have UI with openGL is to use ImGui https://github.com/ocornut/imgui
Very simple and powerfull!