Functions for initializing and managing the camera. More...
Functions | |
void | init_camera (Camera *c) |
Initializes the camera. | |
void | camera_projection (Camera *c, struct WorldShaders *shaders) |
Sets up the camera projection. | |
Functions for initializing and managing the camera.
void init_camera | ( | Camera * | c | ) |
Initializes the camera.
This function sets up the initial state of the camera, including its position, orientation, and any other relevant parameters. It must be called before using the camera in rendering operations.
c | Pointer to a Camera structure that will be initialized. |
void camera_projection | ( | Camera * | c, |
struct WorldShaders * | shaders | ||
) |
Sets up the camera projection.
This function configures the camera's projection matrix and applies it to the provided shaders. It ensures that the rendered scene is correctly projected from the camera's point of view.
c | Pointer to a Camera structure that contains the camera's parameters. |
shaders | Pointer to a WorldShaders structure that will be updated with the camera's projection matrix. |