In a simple top-down shooter shooter I’m making to make the camera follow the character i put
glTranslatef(Player_1.x - Player_1.next_x, Player_1.y - Player_1.next_y, 0);
at the beginning of the display function. Is this the correct way of doing it? but more importantly how do I add and overlay that will always stay in the same position in the window?