mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-23 13:29:48 +00:00
Panel_Init
This commit is contained in:
parent
b87150baaf
commit
b4424fd080
2
main.cpp
2
main.cpp
@ -389,6 +389,8 @@ i32 validate(void)
|
|||||||
validate_DXPOLY();
|
validate_DXPOLY();
|
||||||
validate_SFontEntry();
|
validate_SFontEntry();
|
||||||
validate_SDataGlyph();
|
validate_SDataGlyph();
|
||||||
|
validate_POLY_FT4();
|
||||||
|
validate_POLY_GT4();
|
||||||
|
|
||||||
puts("[*] Validation done!");
|
puts("[*] Validation done!");
|
||||||
|
|
||||||
|
117
panel.cpp
117
panel.cpp
@ -1,6 +1,115 @@
|
|||||||
#include "panel.h"
|
#include "panel.h"
|
||||||
|
#include "spool.h"
|
||||||
#include "validate.h"
|
#include "validate.h"
|
||||||
|
|
||||||
|
EXPORT SAnimFrame* gAnimSp;
|
||||||
|
EXPORT SAnimFrame* gAnimCompass;
|
||||||
|
EXPORT SAnimFrame* gAnimWebcart;
|
||||||
|
|
||||||
|
// @MEDIUMTODO
|
||||||
|
void DCDrawGouraudPoly(float,POLY_GT4 *,Texture *,i32)
|
||||||
|
{
|
||||||
|
printf("DCDrawGouraudPoly(float,POLY_GT4 *,Texture *,i32)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @MEDIUMTODO
|
||||||
|
void DCDrawGouraudPoly(float,i32,i32,i32,i32,u32,u32,u32,u32,i32)
|
||||||
|
{
|
||||||
|
printf("DCDrawGouraudPoly(float,i32,i32,i32,i32,u32,u32,u32,u32,i32)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @MEDIUMTODO
|
||||||
|
void DCPanel_DrawFlatShadedPoly(float,i32,i32,i32,i32,u8,u8,u8,i32,i32)
|
||||||
|
{
|
||||||
|
printf("DCPanel_DrawFlatShadedPoly(float,i32,i32,i32,i32,u8,u8,u8,i32,i32)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @MEDIUMTODO
|
||||||
|
void DCPanel_DrawTexturedPoly(float,POLY_FT4 *,SAnimFrame const *,i32,i32,i32,i32,i32,u32)
|
||||||
|
{
|
||||||
|
printf("DCPanel_DrawTexturedPoly(float,POLY_FT4 *,SAnimFrame const *,i32,i32,i32,i32,i32,u32)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @MEDIUMTODO
|
||||||
|
void DCPanel_DrawTexturedPoly(float,POLY_FT4 *,SAnimFrame const *,u32)
|
||||||
|
{
|
||||||
|
printf("DCPanel_DrawTexturedPoly(float,POLY_FT4 *,SAnimFrame const *,u32)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @MEDIUMTODO
|
||||||
|
void DCPanel_DrawTexturedPoly(float,POLY_FT4 *,Texture const *,u32)
|
||||||
|
{
|
||||||
|
printf("DCPanel_DrawTexturedPoly(float,POLY_FT4 *,Texture const *,u32)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @SMALLTODO
|
||||||
|
void Panel_CreateCompass(CVector *)
|
||||||
|
{
|
||||||
|
printf("Panel_CreateCompass(CVector *)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @SMALLTODO
|
||||||
|
void Panel_DestroyHealthBar(void)
|
||||||
|
{
|
||||||
|
printf("Panel_DestroyHealthBar(void)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @MEDIUMTODO
|
||||||
|
void Panel_Display(void)
|
||||||
|
{
|
||||||
|
printf("Panel_Display(void)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @MEDIUMTODO
|
||||||
|
void Panel_DisplayCompass(void)
|
||||||
|
{
|
||||||
|
printf("Panel_DisplayCompass(void)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @MEDIUMTODO
|
||||||
|
void Panel_DisplayHealthBar(void)
|
||||||
|
{
|
||||||
|
printf("Panel_DisplayHealthBar(void)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @MEDIUMTODO
|
||||||
|
void Panel_DisplayTimer(void)
|
||||||
|
{
|
||||||
|
printf("Panel_DisplayTimer(void)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @SMALLTODO
|
||||||
|
void Panel_DrawFlatShadedPoly(i32,i32,i32,i32,u8,u8,u8,i32,i32)
|
||||||
|
{
|
||||||
|
printf("Panel_DrawFlatShadedPoly(i32,i32,i32,i32,u8,u8,u8,i32,i32)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @Ok
|
||||||
|
// @Matching
|
||||||
|
void Panel_Init(void)
|
||||||
|
{
|
||||||
|
Spool_AnimAccess("Sp", &gAnimSp);
|
||||||
|
Spool_AnimAccess("Compass", &gAnimCompass);
|
||||||
|
Spool_AnimAccess("Webcart", &gAnimWebcart);
|
||||||
|
}
|
||||||
|
|
||||||
|
// @SMALLTODO
|
||||||
|
void Panel_SetStretchedScreenCoords(i32,i32,POLY_FT4 *,SAnimFrame *,i32,i32)
|
||||||
|
{
|
||||||
|
printf("Panel_SetStretchedScreenCoords(i32,i32,POLY_FT4 *,SAnimFrame *,i32,i32)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @SMALLTODO
|
||||||
|
void Panel_SetStretchedScreenCoords(i32,i32,POLY_FT4 *,Texture const *,i32,i32)
|
||||||
|
{
|
||||||
|
printf("Panel_SetStretchedScreenCoords(i32,i32,POLY_FT4 *,Texture const *,i32,i32)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// @SMALLTODO
|
||||||
|
void Panel_UpdateTimer(void)
|
||||||
|
{
|
||||||
|
printf("Panel_UpdateTimer(void)");
|
||||||
|
}
|
||||||
|
|
||||||
// @SMALLTODO
|
// @SMALLTODO
|
||||||
void Panel_CreateHealthBar(const CBody*, int)
|
void Panel_CreateHealthBar(const CBody*, int)
|
||||||
@ -66,3 +175,11 @@ void validate_Texture(void)
|
|||||||
VALIDATE(Texture, Checksum, 0x14);
|
VALIDATE(Texture, Checksum, 0x14);
|
||||||
VALIDATE(Texture, pNext, 0x20);
|
VALIDATE(Texture, pNext, 0x20);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void validate_POLY_FT4(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void validate_POLY_GT4(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
29
panel.h
29
panel.h
@ -18,13 +18,42 @@ struct SAnimFrame
|
|||||||
Texture *pTexture;
|
Texture *pTexture;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct POLY_FT4
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
struct POLY_GT4
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
EXPORT void Panel_CreateHealthBar(const CBody*, int);
|
EXPORT void Panel_CreateHealthBar(const CBody*, int);
|
||||||
EXPORT void Panel_DestroyCompass(void);
|
EXPORT void Panel_DestroyCompass(void);
|
||||||
EXPORT void Panel_DestroyHealthbar(void);
|
EXPORT void Panel_DestroyHealthbar(void);
|
||||||
EXPORT int Panel_DrawTexturedPoly(SAnimFrame*, int);
|
EXPORT int Panel_DrawTexturedPoly(SAnimFrame*, int);
|
||||||
EXPORT int Panel_DrawTexturedPoly(Texture*, int);
|
EXPORT int Panel_DrawTexturedPoly(Texture*, int);
|
||||||
|
|
||||||
|
EXPORT void DCDrawGouraudPoly(float,POLY_GT4 *,Texture *,i32);
|
||||||
|
EXPORT void DCDrawGouraudPoly(float,i32,i32,i32,i32,u32,u32,u32,u32,i32);
|
||||||
|
EXPORT void DCPanel_DrawFlatShadedPoly(float,i32,i32,i32,i32,u8,u8,u8,i32,i32);
|
||||||
|
EXPORT void DCPanel_DrawTexturedPoly(float,POLY_FT4 *,SAnimFrame const *,i32,i32,i32,i32,i32,u32);
|
||||||
|
EXPORT void DCPanel_DrawTexturedPoly(float,POLY_FT4 *,SAnimFrame const *,u32);
|
||||||
|
EXPORT void DCPanel_DrawTexturedPoly(float,POLY_FT4 *,Texture const *,u32);
|
||||||
|
|
||||||
|
EXPORT void Panel_CreateCompass(CVector *);
|
||||||
|
EXPORT void Panel_DestroyHealthBar(void);
|
||||||
|
EXPORT void Panel_Display(void);
|
||||||
|
EXPORT void Panel_DisplayCompass(void);
|
||||||
|
EXPORT void Panel_DisplayHealthBar(void);
|
||||||
|
EXPORT void Panel_DisplayTimer(void);
|
||||||
|
EXPORT void Panel_DrawFlatShadedPoly(i32,i32,i32,i32,u8,u8,u8,i32,i32);
|
||||||
|
EXPORT void Panel_Init(void);
|
||||||
|
EXPORT void Panel_SetStretchedScreenCoords(i32,i32,POLY_FT4 *,SAnimFrame *,i32,i32);
|
||||||
|
EXPORT void Panel_SetStretchedScreenCoords(i32,i32,POLY_FT4 *,Texture const *,i32,i32);
|
||||||
|
EXPORT void Panel_UpdateTimer(void);
|
||||||
|
|
||||||
void validate_SAnimFrame(void);
|
void validate_SAnimFrame(void);
|
||||||
void validate_Texture(void);
|
void validate_Texture(void);
|
||||||
|
void validate_POLY_FT4(void);
|
||||||
|
void validate_POLY_GT4(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user