Original Post
Hello,
I'm implementing a simple 2d renderer and I wanted to add a camera support that would allow me to rotate, translate and zoom the displayed view.
Can anyone explain to me how can I implement a function that returns 3x3 projection matrix, built from camera position, zoom factor and rotation angle?
This could be a prototype
Matrix3x3 MakeProjection(Vector2 vCenter, Vector2 vecZoom, float angle)
Maybe someone have a link to article or other resource covering this topic?
I'm implementing a simple 2d renderer and I wanted to add a camera support that would allow me to rotate, translate and zoom the displayed view.
Can anyone explain to me how can I implement a function that returns 3x3 projection matrix, built from camera position, zoom factor and rotation angle?
This could be a prototype
Matrix3x3 MakeProjection(Vector2 vCenter, Vector2 vecZoom, float angle)
Maybe someone have a link to article or other resource covering this topic?