FS2_Open
Open source remastering of the Freespace 2 engine
3dinternal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef _3DINTERNAL_H
13 #define _3DINTERNAL_H
14 
15 #include "render/3d.h"
16 
17 extern int Canvas_width,Canvas_height; //the actual width & height
18 extern float Canv_w2,Canv_h2; //fixed-point width,height/2
19 
20 extern vec3d Window_scale;
21 extern int free_point_num;
22 
23 extern float View_zoom;
26 
27 extern void free_temp_point(vertex *p);
28 extern vertex **clip_polygon(vertex **src,vertex **dest,int *nv,ccodes *cc,uint flags);
29 extern void init_free_points(void);
30 extern void clip_line(vertex **p0,vertex **p1,ubyte codes_or, uint flags);
31 
32 extern int G3_count;
33 
34 extern int G3_user_clip;
37 
38 // Returns TRUE if point is behind user plane
39 extern int g3_point_behind_user_plane( const vec3d *pnt );
40 
41 #endif
float Canv_w2
Definition: 3dsetup.cpp:39
int G3_user_clip
Definition: 3dsetup.cpp:360
void free_temp_point(vertex *p)
Definition: 3dclipper.cpp:42
void clip_line(vertex **p0, vertex **p1, ubyte codes_or, uint flags)
Clips a line to the viewing pyramid.
Definition: 3dclipper.cpp:197
vec3d Window_scale
Definition: 3dsetup.cpp:33
Definition: pstypes.h:88
hull_check p0
Definition: lua.cpp:5051
matrix Unscaled_matrix
Definition: 3dsetup.cpp:21
vec3d View_position
Definition: 3dsetup.cpp:20
int g3_point_behind_user_plane(const vec3d *pnt)
Definition: 3dsetup.cpp:419
vec3d G3_user_clip_point
Definition: 3dsetup.cpp:362
vec3d G3_user_clip_normal
Definition: 3dsetup.cpp:361
Definition: pstypes.h:70
unsigned int uint
Definition: pstypes.h:64
hull_check p1
Definition: lua.cpp:5052
int Canvas_width
Definition: 3dsetup.cpp:36
int free_point_num
Definition: 3dclipper.cpp:16
vec3d Matrix_scale
Definition: 3dsetup.cpp:34
unsigned char ubyte
Definition: pstypes.h:62
GLbitfield flags
Definition: Glext.h:6722
void init_free_points(void)
Definition: 3dclipper.cpp:21
GLfloat GLfloat p
Definition: Glext.h:8373
matrix View_matrix
Definition: 3dsetup.cpp:19
GLenum src
Definition: Glext.h:5917
vertex ** clip_polygon(vertex **src, vertex **dest, int *nv, ccodes *cc, uint flags)
Clips a polygon to the viewing pyramid.
Definition: 3dclipper.cpp:274
float View_zoom
Definition: 3dsetup.cpp:30
int G3_count
Definition: 3dsetup.cpp:59
float Canv_h2
Definition: 3dsetup.cpp:40
int Canvas_height
Definition: 3dsetup.cpp:37