- removed a few more dependencies on Build includes.

This commit is contained in:
Christoph Oelckers 2020-06-20 18:17:49 +02:00
parent 83a760874b
commit 1bb7da173a
5 changed files with 58 additions and 9 deletions

View file

@ -9,6 +9,7 @@
#include "xs_Float.h"
#include "m_alloc.h"
#include "intvec.h"
////////// Compiler detection //////////
@ -629,10 +630,6 @@ typedef struct MAY_ALIAS {
int32_t x, y;
} vec2_t;
typedef struct MAY_ALIAS {
int16_t x, y;
} vec2_16_t;
typedef struct {
uint32_t x, y;
} vec2u_t;

53
source/core/intvec.h Normal file
View file

@ -0,0 +1,53 @@
#pragma once
struct vec2_16_t
{
int16_t x, y;
};
#if 0
struct vec2_t
{
int32_t x, y;
};
struct vec2u_t
{
uint32_t x, y;
};
struct vec2f_t
{
float x, y;
};
struct vec2d_t
{
double x, y;
};
struct vec3_t
{
union
{
struct
{
int32_t x, y, z;
};
vec2_t vec2;
};
};
struct vec3_16_t
{
union
{
struct
{
int16_t x, y, z;
};
vec2_16_t vec2;
};
};
#endif

View file

@ -35,7 +35,6 @@
#include "m_crc32.h"
#include "i_specialpaths.h"
#include "i_system.h"
#include "compat.h"
#include "gameconfigfile.h"
#include "cmdlib.h"
#include "utf8.h"

View file

@ -524,8 +524,8 @@ void BuildTiles::PostLoadSetup()
if (rep.palnum == DETAILPAL)
{
detailTex = rep.faces[0];
scalex = rep.scale.x;
scaley = rep.scale.y;
scalex = rep.scale.X;
scaley = rep.scale.Y;
}
}
if (!detailTex && !glowTex && !normalTex && !specTex) continue; // if there's no layers there's nothing to do.

View file

@ -3,7 +3,7 @@
#include "textures.h"
#include "image.h"
#include "i_time.h"
#include "compat.h"
#include "intvec.h"
// picanm[].sf:
// |bit(1<<7)
@ -70,7 +70,7 @@ struct rottile_t
struct HightileReplacement
{
FGameTexture* faces[6]; // only one gets used by a texture, the other 5 are for skyboxes only
vec2f_t scale;
FVector2 scale;
float alphacut, specpower, specfactor;
uint16_t palnum, flags;
};