Open source remastering of the Freespace 2 engine
missiongrid.cpp File Reference
#include "graphics/2d.h"
#include "io/key.h"
#include "math/fvi.h"
#include "mission/missiongrid.h"
#include "render/3d.h"

Go to the source code of this file.


void grid_read_camera_controls (control_info *ci, float frametime)
void maybe_create_new_grid (grid *gridp, vec3d *pos, matrix *orient, int force)
gridcreate_grid (grid *gridp, vec3d *forward, vec3d *right, vec3d *center, int nrows, int ncols, float square_size)
gridcreate_default_grid (void)
void rpd_line (vec3d *v0, vec3d *v1)
void modify_grid (grid *gridp)
void grid_render_elevation_line (vec3d *pos, grid *gridp)


grid Global_grid
int double_fine_gridlines = 0

Function Documentation

grid* create_default_grid ( void  )

Definition at line 229 of file missiongrid.cpp.

grid* create_grid ( grid gridp,
vec3d forward,
vec3d right,
vec3d center,
int  nrows,
int  ncols,
float  square_size 

Definition at line 141 of file missiongrid.cpp.

void grid_read_camera_controls ( control_info ci,
float  frametime 

Definition at line 23 of file missiongrid.cpp.

void grid_render_elevation_line ( vec3d pos,
grid gridp 

Definition at line 261 of file missiongrid.cpp.

void maybe_create_new_grid ( grid gridp,
vec3d pos,
matrix orient,
int  force 

Definition at line 66 of file missiongrid.cpp.

void modify_grid ( grid gridp)

Definition at line 255 of file missiongrid.cpp.

void rpd_line ( vec3d v0,
vec3d v1 

Definition at line 245 of file missiongrid.cpp.

Variable Documentation

int double_fine_gridlines = 0

Definition at line 21 of file missiongrid.cpp.

grid Global_grid

Definition at line 19 of file missiongrid.cpp.

grid* The_grid

Definition at line 20 of file missiongrid.cpp.