Overlay / GUI / UI

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?

? but more importantly how do I add and overlay that will always stay in the same position in the window?

By specifying a separate viewport and orthographic projection matrix for your GUI

How do I do that?

Don’t worry figured it out myself :slight_smile: