GLVIEWPORT
glViewport is an OpenGL function that defines the viewport, the rectangular region of the window where the final image is rasterized, and sets the mapping from normalized device coordinates to window coordinates. This mapping determines how clip space coordinates are converted to screen-space pixels during rasterization.
The function signature is void glViewport(GLint x, GLint y, GLsizei width, GLsizei height). The parameters x
In practice, OpenGL maps normalized device coordinates, which range from -1 to 1 in all three axes,
The viewport is commonly updated when a window is created or resized to match the current window
Overall, glViewport controls where rendering occurs in the window and how clip-space coordinates are converted to