PDA

View Full Version : Overlay / GUI / UI



Fezziwig
04-01-2012, 03:33 AM
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?

BionicBytes
04-01-2012, 06:56 AM
? 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

Fezziwig
04-01-2012, 08:30 AM
How do I do that?

Fezziwig
04-01-2012, 10:26 AM
Don't worry figured it out myself :)