GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
camera.c File Reference
#include <gpac/internal/camera.h>
#include <gpac/options.h>
#include "visual_manager.h"
+ Include dependency graph for camera.c:

Macros

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

Functions

GF_Cameranew_camera ()
 
void delete_camera (GF_Camera *cam)
 
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 camera_layout)
 
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)
 
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

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

Function Documentation

GF_Camera* new_camera ( )
void delete_camera ( GF_Camera cam)

+ Here is the call graph for this function:

void camera_invalidate ( GF_Camera cam)

+ Here is the caller graph for this function:

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:

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:

void camera_set_2d ( GF_Camera cam)

+ Here is the caller graph for this function:

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  camera_layout 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

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:

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:

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:

void camera_stop_anim ( GF_Camera cam)

+ Here is the caller graph for this function:

void camera_jump ( GF_Camera cam)

+ Here is the caller graph for this function:

Bool camera_animate ( GF_Camera cam)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SFVec3f camera_get_pos_dir ( GF_Camera cam)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SFVec3f camera_get_target_dir ( GF_Camera cam)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SFVec3f camera_get_right_dir ( GF_Camera cam)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: