dxx-rebirth/common/3d/globvars.cpp
Kp 079ab168a4 Move View_zoom out of global scope
It is only used briefly, so it can be local.
2021-08-26 03:13:45 +00:00

42 lines
813 B
C++

/*
* This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
* It is copyright by its individual contributors, as recorded in the
* project's Git history. See COPYING.txt at the top level for license
* terms and a link to the Git history.
*/
/*
*
* Global variables for 3d
*
*/
#include "3d.h"
#include "globvars.h"
namespace dcx {
vms_vector View_position;
vms_matrix Unscaled_matrix; //before scaling
vms_matrix View_matrix;
vms_vector Window_scale; //scaling for window aspect
vms_vector Matrix_scale; //how the matrix is scaled, window_scale * zoom
fix Canv_w2; //fixed-point width/2
fix Canv_h2; //fixed-point height/2
#ifdef __powerc
double fCanv_w2;
double fCanv_h2;
#endif
//vertex buffers for polygon drawing and clipping
//list of 2d coords
}