Hey guys, I was wondering if someone could list some pitfalls when trying to render UI elements with OpenGL rather than a 3D scene. For example, you don't want to just call glViewport() when your window is resized because everything will be squished, but the devil is in the details.
I would like to know what people use for internal FBO resolution (if one is used), how the viewport is handled, what needs to be handled on window resize, where/how to implement pixel snapping, etc. Also, what do I have to know to manually handle things like DPI awareness?