Open source remastering of the Freespace 2 engine
camera.cpp File Reference
#include "camera/camera.h"
#include "globalincs/alphacolors.h"
#include "globalincs/linklist.h"
#include "globalincs/systemvars.h"
#include "graphics/font.h"
#include "hud/hud.h"
#include "math/vecmat.h"
#include "mod_table/mod_table.h"
#include "model/model.h"
#include "parse/parselo.h"
#include "playerman/player.h"
#include "ship/ship.h"

Go to the source code of this file.




eyeget_submodel_eye (polymodel *pm, int submodel_num)
void cam_init ()
void cam_close ()
int cam_get_next_sig ()
camid cam_create (char *n_name, vec3d *n_pos, vec3d *n_norm, object *n_object, int n_object_host_submodel)
camid cam_create (char *n_name, vec3d *n_pos, matrix *n_ori, object *n_object, int n_object_host_submodel)
void cam_delete (camid cid)
void cam_do_frame (float frametime)
camid cam_get_camera (uint idx)
camid cam_get_current ()
uint cam_get_num ()
camid cam_lookup (char *name)
bool cam_set_camera (camid cid)
void cam_reset_camera ()
void subtitles_close ()
void subtitles_do_frame (float frametime)
void subtitles_do_frame_post_shaded (float frametime)
void get_turret_cam_pos (camera *cam, vec3d *pos)
void get_turret_cam_orient (camera *cam, matrix *ori)


float Sexp_fov = 0.0f
warp_camera Warp_camera
SCP_vector< subtitleSubtitles
SCP_vector< camera * > Cameras
camid Current_camera
camid Main_camera
vec3d normal_cache

Macro Definition Documentation


Definition at line 542 of file camera.cpp.

Function Documentation

void cam_close ( )

Definition at line 872 of file camera.cpp.

camid cam_create ( char *  n_name,
vec3d n_pos,
vec3d n_norm,
object n_object,
int  n_object_host_submodel 

Definition at line 888 of file camera.cpp.

camid cam_create ( char *  n_name,
vec3d n_pos,
matrix n_ori,
object n_object,
int  n_object_host_submodel 

Definition at line 895 of file camera.cpp.

void cam_delete ( camid  cid)

Definition at line 926 of file camera.cpp.

void cam_do_frame ( float  frametime)

Definition at line 934 of file camera.cpp.

camid cam_get_camera ( uint  idx)

Definition at line 944 of file camera.cpp.

camid cam_get_current ( )

Definition at line 952 of file camera.cpp.

int cam_get_next_sig ( )

Definition at line 882 of file camera.cpp.

uint cam_get_num ( )

Definition at line 957 of file camera.cpp.

void cam_init ( )

Definition at line 866 of file camera.cpp.

camid cam_lookup ( char *  name)

Looks up camera by name, returns -1 on failure

Definition at line 965 of file camera.cpp.

void cam_reset_camera ( )

Definition at line 1002 of file camera.cpp.

bool cam_set_camera ( camid  cid)

Definition at line 980 of file camera.cpp.

eye * get_submodel_eye ( polymodel pm,
int  submodel_num 

Definition at line 1069 of file camera.cpp.

void get_turret_cam_orient ( camera cam,
matrix ori 

Definition at line 1061 of file camera.cpp.

void get_turret_cam_pos ( camera cam,
vec3d pos 

Definition at line 1040 of file camera.cpp.

void subtitles_close ( )

Definition at line 1013 of file camera.cpp.

void subtitles_do_frame ( float  frametime)

Definition at line 1018 of file camera.cpp.

void subtitles_do_frame_post_shaded ( float  frametime)

Definition at line 1028 of file camera.cpp.

Variable Documentation

SCP_vector<camera*> Cameras

Definition at line 22 of file camera.cpp.

camid Current_camera

Definition at line 24 of file camera.cpp.

camid Main_camera

Definition at line 25 of file camera.cpp.

vec3d normal_cache

Definition at line 1038 of file camera.cpp.

float Sexp_fov = 0.0f

Definition at line 16 of file camera.cpp.

SCP_vector<subtitle> Subtitles

Definition at line 21 of file camera.cpp.


Definition at line 15 of file camera.cpp.

warp_camera Warp_camera

Definition at line 17 of file camera.cpp.