Camera Function [Behind the Scene]

Can anyone tell me, what exactly happens when i compile/run below part of code

glTranslatef(xtrans, ytrans, -5);
glRotatef(updateY, 1, 0, 0);
glRotatef(updateX, 0, 1, 0);
glTranslatef(-1, -1, 0);

its related to movement of camera but i want to know some basic what exactly happens?

maybe,
each line could represent a matrix since they do transformations.
You can, quick & dirty, look at a matrix as a position & a direction
You have an idea of what a matrix DOES.
Now, you have an approximation to what it IS
By matrix-multiplying them together, they ‘add’ up the transformations.
Each function you use has come from a library where you’ve picked them, so you can read the specifics there, or ask yourself why you chose the specific function.
I believe that a position and a direction is also known as a ‘pose’, and, eventually a frame of reference.
ups …
I think that I missed your question
The bowls is a book-keeping of a lot of sums and products.

1 Like

That’s awesome…I got it. Thank you for helping :blush:!