LibGame  v0.4.0
The LG Game Engine - Copyright (C) 2024-2025 ETMSoftware
lg_cam_controls.c File Reference

Functions

void lg_camera_apply_ui (LG_Camera *cam, LG_Cam_K *k_cam)
 

Function Documentation

◆ lg_camera_apply_ui()

void lg_camera_apply_ui ( LG_Camera cam,
LG_Cam_K k_cam 
)

=== Check cam->input_state and move/rotate the cam ===

apply_ui here means apply user input (not apply user interface)

typedef struct {
float k_move_forward;
float k_move_up;
float k_cam_truck;
float k_yaw;
float k_pitch;
float k_roll;
const char *rot_order;
float k_h_orbit;
float k_v_orbit;
vec3_t orbit_center;
zboolean slow_motion;

rot_order = the rotations order - one of "XYZ", "YXZ", "ZXY", "ZYX", "YZX", "XZY"

Parameters
camPointer to a LG_Camera
k_camPointer to a LG_Cam_K
LG_Cam_K
Definition: lg_cam_controls.h:12
vec3_t
Definition: math_3d.h:128