Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
Camera Functions

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.
 

Detailed Description

Functions for initializing and managing the camera.

Function Documentation

◆ init_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.

Parameters
cPointer to a Camera structure that will be initialized.

◆ camera_projection()

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.

Parameters
cPointer to a Camera structure that contains the camera's parameters.
shadersPointer to a WorldShaders structure that will be updated with the camera's projection matrix.