So I appologize in advance if this is a basic question, but its hard to find anything regarding what I need because of the keywords involved.
But here is the issue:
I want to draw 2d buttons using primitives, but I need the buttons to always be at the bottom of the screen even if I am changing where the camera is positioned and what direction it is looking at.
Do I always need to draw them based on the camera location? or is there a simpler way to do this?
You could always move the camera (the scene, actually) after you’ve drawn the buttons, for instance.
Alternatively, to avoid unnecessary glitches you can switch to the orthographic projection (glOrtho) after you’ve drawn the scene, clear the depth buffer but not the color one, then just draw the buttons on top of the picture.