mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 04:49:39 -10:00
I've tested this through compiling and through hand checking. Normalises line endings in ALL files to \n.
42 lines
1.0 KiB
C
42 lines
1.0 KiB
C
/*
|
|
* Copyright (C) Volition, Inc. 1999. All rights reserved.
|
|
*
|
|
* All source code herein is the property of Volition, Inc. You may not sell
|
|
* or otherwise commercially exploit the source or things you created based on the
|
|
* source.
|
|
*
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _3DINTERNAL_H
|
|
#define _3DINTERNAL_H
|
|
|
|
#include "render/3d.h"
|
|
|
|
extern int Canvas_width,Canvas_height; //the actual width & height
|
|
extern float Canv_w2,Canv_h2; //fixed-point width,height/2
|
|
|
|
extern vec3d Window_scale;
|
|
extern int free_point_num;
|
|
|
|
extern float View_zoom;
|
|
extern vec3d View_position,Matrix_scale;
|
|
extern matrix View_matrix,Unscaled_matrix;
|
|
|
|
extern void free_temp_point(vertex *p);
|
|
extern vertex **clip_polygon(vertex **src,vertex **dest,int *nv,ccodes *cc,uint flags);
|
|
extern void init_free_points(void);
|
|
extern void clip_line(vertex **p0,vertex **p1,ubyte codes_or, uint flags);
|
|
|
|
extern int G3_count;
|
|
|
|
extern int G3_user_clip;
|
|
extern vec3d G3_user_clip_normal;
|
|
extern vec3d G3_user_clip_point;
|
|
|
|
// Returns TRUE if point is behind user plane
|
|
extern int g3_point_behind_user_plane( vec3d *pnt );
|
|
|
|
#endif
|