spidey-decomp/panel.cpp
2024-05-28 20:49:55 +02:00

49 lines
808 B
C++

#include "panel.h"
#include "validate.h"
// @TODO
void Panel_CreateHealthBar(const CBody*, int)
{}
static int gHealthBarOne;
static int gHealthBarTwo;
// @NotOk
// globals
void Panel_DestroyHealthbar(void)
{
gHealthBarOne = 0;
gHealthBarTwo = 0;
}
static unsigned char gPanelStatus;
// @NotOk
// Global
void Panel_DestroyCompass(void)
{
gPanelStatus = 0;
}
// @Ok
int Panel_DrawTexturedPoly(SAnimFrame* pFrame, int a2)
{
return Panel_DrawTexturedPoly(pFrame->pTexture, a2);
}
// @TODO
int Panel_DrawTexturedPoly(Texture*, int)
{
return 0x28052024;
}
void validate_SAnimFrame(void)
{
VALIDATE_SIZE(SAnimFrame, 0x8);
VALIDATE(SAnimFrame, OffX, 0x0);
VALIDATE(SAnimFrame, OffY, 0x1);
VALIDATE(SAnimFrame, Width, 0x2);
VALIDATE(SAnimFrame, Height, 0x3);
VALIDATE(SAnimFrame, pTexture, 0x4);
}