1 /* $Id: globvars.c,v 1.4 2002-07-17 21:55:19 bradleyb Exp $ */
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
16 * Global variables for 3d
20 * Revision 1.2 1995/09/13 11:30:47 allender
21 * added fCanv_w2 and vCanv_h2 for PPC implementation
23 * Revision 1.1 1995/05/05 08:50:48 allender
26 * Revision 1.1 1995/04/17 04:24:57 matt
37 static char rcsid[] = "$Id: globvars.c,v 1.4 2002-07-17 21:55:19 bradleyb Exp $";
43 vms_vector View_position;
46 vms_matrix Unscaled_matrix; //before scaling
47 vms_matrix View_matrix;
49 vms_vector Window_scale; //scaling for window aspect
50 vms_vector Matrix_scale; //how the matrix is scaled, window_scale * zoom
52 int Canvas_width; //the actual width
53 int Canvas_height; //the actual height
55 fix Canv_w2; //fixed-point width/2
56 fix Canv_h2; //fixed-point height/2
63 //vertex buffers for polygon drawing and clipping
64 g3s_point * Vbuf0[MAX_POINTS_IN_POLY];
65 g3s_point *Vbuf1[MAX_POINTS_IN_POLY];
68 fix Vertex_list[MAX_POINTS_IN_POLY*2];