How to properly calculate a projection matrix
I’m having some difficulties calculating a projection matrix in C for use with OpenGL.
The task is to write a function that takes the vertical fov, the aspect ratio and the distance from the camera to the near- and far-view-plane.