$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
camera_input.h
Go to the documentation of this file.
1 #ifndef CAMERA_INPUT_H
2 #define CAMERA_INPUT_H
3 
4 /* Forward declaration */
5 typedef struct Camera Camera;
6 
25 void camera_input_handle_key(Camera* cam, int key, int action);
26 
37 void camera_input_handle_mouse(Camera* cam, double xpos, double ypos);
38 
45 void camera_input_handle_scroll(Camera* cam, double yoffset);
46 
47 #endif /* CAMERA_INPUT_H */
void camera_input_handle_mouse(Camera *cam, double xpos, double ypos)
Processes a mouse movement event to update camera orientation.
Definition: camera_input.c:30
void camera_input_handle_key(Camera *cam, int key, int action)
Processes a keyboard event to update camera movement flags.
Definition: camera_input.c:6
void camera_input_handle_scroll(Camera *cam, double yoffset)
Processes a scroll event to adjust camera speed or zoom.
Definition: camera_input.c:48
Represents a 3D camera with orientation, movement, and physical properties.
Definition: camera.h:40