PCTex_GetTextureWScale and PCTex_GetTextureHScale

This commit is contained in:
krystalgamer 2024-05-25 18:52:55 +02:00
parent c1f3948c2c
commit 8baca6dae0
2 changed files with 20 additions and 1 deletions

View File

@ -10,9 +10,24 @@ void PCTex_SetTextureUserData(int index, Bitmap256* texture)
gGlobalTextures[index].texture = texture;
}
// @NotOk
// globals
float PCTex_GetTextureWScale(int index)
{
return gGlobalTextures[index].wScale;
}
// @NotOk
// globals
float PCTex_GetTextureHScale(int index)
{
return gGlobalTextures[index].hScale;
}
void validate_WeirdTextureHolder(void)
{
VALIDATE_SIZE(WeirdTextureHolder, 0x68);
VALIDATE(WeirdTextureHolder, texture, 0x0);
VALIDATE(WeirdTextureHolder, wScale, 0x4);
}

View File

@ -9,10 +9,14 @@
struct WeirdTextureHolder
{
Bitmap256* texture;
unsigned char pad[0x68-6];
float wScale;
float hScale;
unsigned char pad[0x68-6-4];
};
EXPORT void PCTex_SetTextureUserData(int, Bitmap256*);
EXPORT float PCTex_GetTextureWScale(int);
EXPORT float PCTex_GetTextureHScale(int);
void validate_WeirdTextureHolder(void);