Updates for GZDoom 4.12, part 1 (new functions, variables, flags, etc.).
This commit is contained in:
parent
1fb4c27383
commit
f38db38751
79 changed files with 349 additions and 183 deletions
|
|
@ -9,7 +9,7 @@ Struct SWWMProjectionData
|
|||
extend Class SWWMUtility
|
||||
{
|
||||
// gutamatics caching
|
||||
static void PrepareProjData( out SWWMProjectionData d, Vector3 viewpos, double angle, double pitch, double roll, double fov )
|
||||
static void PrepareProjData( SWWMProjectionData &d, Vector3 viewpos, double angle, double pitch, double roll, double fov )
|
||||
{
|
||||
double aspect = Screen.GetAspectRatio();
|
||||
// vertical fov
|
||||
|
|
@ -50,16 +50,16 @@ extend Class SWWMUtility
|
|||
}
|
||||
|
||||
// less code duplication
|
||||
static void AdjustClean_1( out double x, out double y )
|
||||
static void AdjustClean_1( double &x, double &y )
|
||||
{
|
||||
x = (x-160)*CleanXFac_1+(Screen.GetWidth()*.5);
|
||||
y = (y-100)*CleanYFac_1+(Screen.GetHeight()*.5);
|
||||
}
|
||||
static void AdjustClean_1x( out double x )
|
||||
static void AdjustClean_1x( double &x )
|
||||
{
|
||||
x = (x-160)*CleanXFac_1+(Screen.GetWidth()*.5);
|
||||
}
|
||||
static void AdjustClean_1y( out double y )
|
||||
static void AdjustClean_1y( double &y )
|
||||
{
|
||||
y = (y-100)*CleanYFac_1+(Screen.GetHeight()*.5);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue