|
LibGame
v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
|
11 #define LG_CAMERA_ORIGIN 0.0, 0.0, 0.0
12 #define LG_CAMERA_TARGET 0.0, 0.0, -1.0
13 #define LG_CAMERA_UP 0.0, 1.0, 0.0
17 #define LG_Z_FAR 1000.0
float lg_point_to_norm_plane_distance(vec3_t *v, LG_Plane *p)
Definition: lg_camera.c:584
void lg_camera_override_zfar(LG_Camera *cam, float z_far)
Definition: lg_camera.c:512
zboolean is_in_frustum(vec3_t *v, LG_Frustum *frustum)
Definition: lg_camera.c:448
int lg_camera_init(LG_Camera *cam)
Definition: lg_camera.c:100
Definition: lg_3d_primitives.h:64
void lg_update_all_cam_m(LG_Camera *cam)
Definition: lg_camera.c:231
Definition: lg_quaternions.h:29
int lg_camera_set_all(LG_Camera *cam, vec3_t position, vec3_t target, vec3_t up, float v_fov, float z_near, float z_far)
Definition: lg_camera.c:142
int lg_camera_rotate_by_quat(LG_Camera *cam, LG_Quat q)
Definition: lg_camera.c:297
Definition: lg_quaternions.h:16
void lg_camera_get_frustum(LG_Camera *cam, LG_Frustum *frustum)
Definition: lg_camera.c:376
LG_Camera lg_camera()
Definition: lg_camera.c:77
zboolean lg_cuboid_is_in_frustum(LG_Cuboid *cuboid, LG_Frustum *frustum, zboolean fully)
Definition: lg_camera.c:470
int lg_camera_set_rot_by_eu(LG_Camera *cam, LG_EulerAng ang, const char *rot_order)
Definition: lg_camera.c:330
Definition: lg_camera.h:39
void lg_frustum_info(LG_Frustum *frustum)
Definition: lg_camera.c:623
zboolean lg_mesh_is_in_frustum(LG_Mesh *mesh, LG_Frustum *frustum, zboolean fully)
Definition: lg_camera.c:499
int lg_plane_normalize(LG_Plane *p)
Definition: lg_camera.c:544
Definition: math_3d.h:111
Definition: lg_camera.h:19
mat4_t lg_camera_compute_view_proj_matrix(LG_Camera *cam)
Definition: lg_camera.c:218
int lg_camera_reset(LG_Camera *cam)
Definition: lg_camera.c:176
mat4_t lg_camera_compute_proj_matrix(LG_Camera *cam)
Definition: lg_camera.c:203
void lg_camera_info(LG_Camera *cam)
Definition: lg_camera.c:594
mat4_t lg_camera_compute_view_matrix(LG_Camera *cam)
Definition: lg_camera.c:189
void lg_camera_orbit_around(LG_Camera *cam, vec3_t center, float radius, float angle)
Definition: lg_camera.c:530
float lg_point_to_plane_distance(vec3_t *v, LG_Plane *p)
Definition: lg_camera.c:571
int lg_camera_move_to(LG_Camera *cam, vec3_t transl)
Definition: lg_camera.c:251
int lg_camera_set_rot_by_quat(LG_Camera *cam, LG_Quat q)
Definition: lg_camera.c:344
int lg_camera_rotate_by_eu(LG_Camera *cam, LG_EulerAng ang, const char *rot_order)
Definition: lg_camera.c:281
Definition: lg_camera.h:35
Definition: math_3d.h:167