mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-27 15:20:25 +00:00
PCTex_GetTextureWScale and PCTex_GetTextureHScale
This commit is contained in:
parent
c1f3948c2c
commit
8baca6dae0
15
PCTex.cpp
15
PCTex.cpp
@ -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);
|
||||
}
|
||||
|
6
PCTex.h
6
PCTex.h
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user