]> icculus.org git repositories - btb/d2x.git/blob - 3d/globvars.h
use the orientation parameter of g3_draw_bitmap
[btb/d2x.git] / 3d / globvars.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
11 COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13 /*
14  * 
15  * Private (internal) header for 3d library
16  * 
17  */
18
19 #ifndef _GLOBVARS_H
20 #define _GLOBVARS_H
21
22 #define MAX_POINTS_IN_POLY 100
23
24 extern int Canvas_width,Canvas_height;  //the actual width & height
25 extern fix Canv_w2,Canv_h2;                             //fixed-point width,height/2
26
27 #ifdef __powerc
28 extern double fCanv_w2, fCanv_h2;
29 #endif
30
31 extern vms_vector Window_scale;
32 extern int free_point_num;
33
34 extern fix View_zoom;
35 extern vms_vector View_position,Matrix_scale;
36 extern vms_matrix View_matrix,Unscaled_matrix;
37
38
39 //vertex buffers for polygon drawing and clipping
40 extern g3s_point *Vbuf0[];
41 extern g3s_point *Vbuf1[];
42
43 //list of 2d coords
44 extern fix Vertex_list[];
45
46 #endif