$darkmode
Suckless OGL
1.0.0
A lean, high-performance C11 PBR Renderer
Back to Docs
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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 */
camera_input_handle_mouse
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
camera_input_handle_key
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
camera_input_handle_scroll
void camera_input_handle_scroll(Camera *cam, double yoffset)
Processes a scroll event to adjust camera speed or zoom.
Definition:
camera_input.c:48
Camera
Represents a 3D camera with orientation, movement, and physical properties.
Definition:
camera.h:40
include
camera_input.h
Generated by
1.9.1