libgpac
Documentation of the core library of GPAC
camera.c File Reference
+ Include dependency graph for camera.c:

Macros

#define FORCE_CAMERA_3D
 
#define FAR_PLANE_2D   -10000
 
#define NEAR_PLANE_2D   1000
 

Functions

void camera_invalidate (GF_Camera *cam)
 
static void camera_frustum_from_matrix (GF_Camera *cam, GF_Matrix *mx)
 
SFRotation camera_get_orientation (SFVec3f pos, SFVec3f target, SFVec3f up)
 
void camera_set_2d (GF_Camera *cam)
 
void camera_update_stereo (GF_Camera *cam, GF_Matrix2D *user_transform, Bool center_coords, Fixed horizontal_shift, Fixed nominal_view_distance, Fixed view_distance_offset, u32 camlay)
 
void camera_update (GF_Camera *cam, GF_Matrix2D *user_transform, Bool center_coords)
 
void camera_set_vectors (GF_Camera *cam, SFVec3f pos, SFRotation ori, Fixed fov)
 
void camera_reset_viewpoint (GF_Camera *cam, Bool animate)
 
void camera_move_to (GF_Camera *cam, SFVec3f pos, SFVec3f target, SFVec3f up)
 
void camera_stop_anim (GF_Camera *cam)
 
void camera_jump (GF_Camera *cam)
 
Bool camera_animate (GF_Camera *cam, void *_compositor)
 
SFVec3f camera_get_pos_dir (GF_Camera *cam)
 
SFVec3f camera_get_target_dir (GF_Camera *cam)
 
SFVec3f camera_get_right_dir (GF_Camera *cam)
 

Macro Definition Documentation

◆ FORCE_CAMERA_3D

#define FORCE_CAMERA_3D

◆ FAR_PLANE_2D

#define FAR_PLANE_2D   -10000

◆ NEAR_PLANE_2D

#define NEAR_PLANE_2D   1000

Function Documentation

◆ camera_invalidate()

void camera_invalidate ( GF_Camera cam)
+ Here is the caller graph for this function:

◆ camera_frustum_from_matrix()

static void camera_frustum_from_matrix ( GF_Camera cam,
GF_Matrix mx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ camera_get_orientation()

SFRotation camera_get_orientation ( SFVec3f  pos,
SFVec3f  target,
SFVec3f  up 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ camera_set_2d()

void camera_set_2d ( GF_Camera cam)
+ Here is the caller graph for this function:

◆ camera_update_stereo()

void camera_update_stereo ( GF_Camera cam,
GF_Matrix2D user_transform,
Bool  center_coords,
Fixed  horizontal_shift,
Fixed  nominal_view_distance,
Fixed  view_distance_offset,
u32  camlay 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ camera_update()

void camera_update ( GF_Camera cam,
GF_Matrix2D user_transform,
Bool  center_coords 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ camera_set_vectors()

void camera_set_vectors ( GF_Camera cam,
SFVec3f  pos,
SFRotation  ori,
Fixed  fov 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ camera_reset_viewpoint()

void camera_reset_viewpoint ( GF_Camera cam,
Bool  animate 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ camera_move_to()

void camera_move_to ( GF_Camera cam,
SFVec3f  pos,
SFVec3f  target,
SFVec3f  up 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ camera_stop_anim()

void camera_stop_anim ( GF_Camera cam)
+ Here is the caller graph for this function:

◆ camera_jump()

void camera_jump ( GF_Camera cam)
+ Here is the caller graph for this function:

◆ camera_animate()

Bool camera_animate ( GF_Camera cam,
void *  _compositor 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ camera_get_pos_dir()

SFVec3f camera_get_pos_dir ( GF_Camera cam)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ camera_get_target_dir()

SFVec3f camera_get_target_dir ( GF_Camera cam)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ camera_get_right_dir()

SFVec3f camera_get_right_dir ( GF_Camera cam)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: