1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
/*
* 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
|