2 * $Logfile: /Freespace2/code/Render/3dInternal.h $
7 * Used internally by the 3d renderer lib
10 * Revision 1.1 2002/05/03 03:28:12 root
14 * 2 10/07/98 10:53a Dave
17 * 1 10/07/98 10:51a Dave
19 * 5 3/16/98 4:51p John
20 * Added low-level code to clip all polygons against an arbritary plane.
21 * Took out all old model_interp_zclip and used this new method instead.
23 * 4 4/29/97 9:55a John
25 * 3 2/17/97 5:18p John
26 * Added a bunch of RCS headers to a bunch of old files that don't have
37 extern int Canvas_width,Canvas_height; //the actual width & height
38 extern float Canv_w2,Canv_h2; //fixed-point width,height/2
40 extern vector Window_scale;
41 extern int free_point_num;
43 extern float View_zoom;
44 extern vector View_position,Matrix_scale;
45 extern matrix View_matrix,Unscaled_matrix;
48 //vertex buffers for polygon drawing and clipping
49 extern vertex *Vbuf0[];
50 extern vertex *Vbuf1[];
52 extern void free_temp_point(vertex *p);
53 extern vertex **clip_polygon(vertex **src,vertex **dest,int *nv,ccodes *cc,uint flags);
54 extern void init_free_points(void);
55 extern void clip_line(vertex **p0,vertex **p1,ubyte codes_or, uint flags);
59 extern int G3_user_clip;
60 extern vector G3_user_clip_normal;
61 extern vector G3_user_clip_point;
63 // Returns TRUE if point is behind user plane
64 extern int g3_point_behind_user_plane( vector *pnt );