Open source remastering of the Freespace 2 engine
3dinternal.h File Reference
#include "render/3d.h"

Go to the source code of this file.


void free_temp_point (vertex *p)
vertex ** clip_polygon (vertex **src, vertex **dest, int *nv, ccodes *cc, uint flags)
 Clips a polygon to the viewing pyramid. More...
void init_free_points (void)
void clip_line (vertex **p0, vertex **p1, ubyte codes_or, uint flags)
 Clips a line to the viewing pyramid. More...
int g3_point_behind_user_plane (const vec3d *pnt)


int Canvas_width
int Canvas_height
float Canv_w2
float Canv_h2
vec3d Window_scale
int free_point_num
float View_zoom
vec3d View_position
vec3d Matrix_scale
matrix View_matrix
matrix Unscaled_matrix
int G3_count
int G3_user_clip
vec3d G3_user_clip_normal
vec3d G3_user_clip_point

Function Documentation

void clip_line ( vertex **  p0,
vertex **  p1,
ubyte  codes_or,
uint  flags 

Clips a line to the viewing pyramid.

Definition at line 197 of file 3dclipper.cpp.

vertex** clip_polygon ( vertex **  src,
vertex **  dest,
int nv,
ccodes cc,
uint  flags 

Clips a polygon to the viewing pyramid.

Definition at line 274 of file 3dclipper.cpp.

void free_temp_point ( vertex p)

Definition at line 42 of file 3dclipper.cpp.

int g3_point_behind_user_plane ( const vec3d pnt)

Returns TRUE if point is behind user plane

Definition at line 419 of file 3dsetup.cpp.

void init_free_points ( void  )

Definition at line 21 of file 3dclipper.cpp.

Variable Documentation

float Canv_h2

Definition at line 40 of file 3dsetup.cpp.

float Canv_w2

Definition at line 39 of file 3dsetup.cpp.

int Canvas_height

Definition at line 37 of file 3dsetup.cpp.

int Canvas_width

Definition at line 36 of file 3dsetup.cpp.

int free_point_num

Definition at line 16 of file 3dclipper.cpp.

int G3_count

Definition at line 59 of file 3dsetup.cpp.

int G3_user_clip

Definition at line 360 of file 3dsetup.cpp.

vec3d G3_user_clip_normal

Definition at line 361 of file 3dsetup.cpp.

vec3d G3_user_clip_point

Definition at line 362 of file 3dsetup.cpp.

vec3d Matrix_scale

Definition at line 34 of file 3dsetup.cpp.

matrix Unscaled_matrix

Definition at line 21 of file 3dsetup.cpp.

matrix View_matrix

Definition at line 19 of file 3dsetup.cpp.

vec3d View_position

Definition at line 20 of file 3dsetup.cpp.

float View_zoom

Definition at line 30 of file 3dsetup.cpp.

vec3d Window_scale

Definition at line 33 of file 3dsetup.cpp.