mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
Improved layout of FMultiPatchTexture::TexPart structure
Removed "gaps" between members (for 64-bit targets) and initialized them in place
This commit is contained in:
parent
d95ac93376
commit
9b52c18ef6
1 changed files with 8 additions and 26 deletions
|
@ -175,15 +175,14 @@ protected:
|
||||||
|
|
||||||
struct TexPart
|
struct TexPart
|
||||||
{
|
{
|
||||||
int16_t OriginX, OriginY;
|
FRemapTable *Translation = nullptr;
|
||||||
uint8_t Rotate;
|
FTexture *Texture = nullptr;
|
||||||
uint8_t op;
|
PalEntry Blend = 0;
|
||||||
FRemapTable *Translation;
|
blend_t Alpha = FRACUNIT;
|
||||||
PalEntry Blend;
|
int16_t OriginX = 0;
|
||||||
FTexture *Texture;
|
int16_t OriginY = 0;
|
||||||
blend_t Alpha;
|
uint8_t Rotate = 0;
|
||||||
|
uint8_t op = OP_COPY;
|
||||||
TexPart();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TexInit
|
struct TexInit
|
||||||
|
@ -797,23 +796,6 @@ FTexture *FMultiPatchTexture::GetRawTexture()
|
||||||
return NumParts == 1 ? Parts->Texture : this;
|
return NumParts == 1 ? Parts->Texture : this;
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
|
||||||
//
|
|
||||||
// FMultiPatchTexture :: TexPart :: TexPart
|
|
||||||
//
|
|
||||||
//==========================================================================
|
|
||||||
|
|
||||||
FMultiPatchTexture::TexPart::TexPart()
|
|
||||||
{
|
|
||||||
OriginX = OriginY = 0;
|
|
||||||
Rotate = 0;
|
|
||||||
Texture = NULL;
|
|
||||||
Translation = NULL;
|
|
||||||
Blend = 0;
|
|
||||||
Alpha = FRACUNIT;
|
|
||||||
op = OP_COPY;
|
|
||||||
}
|
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
// FTextureManager :: AddTexturesLump
|
// FTextureManager :: AddTexturesLump
|
||||||
|
|
Loading…
Reference in a new issue