Files
tww/include/JSystem/J2DGraph/J2DScreen.h
T
Jasper St. Pierre 1ff5175bb7 J2DScreen 90%
2023-10-11 18:50:03 -07:00

35 lines
1.1 KiB
C++

#ifndef J2DSCREEN_H
#define J2DSCREEN_H
#include "JSystem/J2DGraph/J2DPane.h"
#include "dolphin/gx/GX.h"
class JKRArchive;
class J2DScreen : public J2DPane {
public:
virtual ~J2DScreen();
virtual u16 getTypeID() { return 17; }
virtual void calcMtx() { makeMatrix(mBounds.i.x, mBounds.i.y); }
virtual void drawSelf(f32 arg1, f32 arg2, Mtx* mtx);
virtual J2DPane* search(u32 tag);
virtual J2DPane* createPane(J2DPane::J2DScrnBlockHeader const & header, JSURandomInputStream * pStream, J2DPane * pParent);
protected:
void draw(f32 x, f32 y, const J2DGrafContext * pCtx);
bool set(const char *pName, JKRArchive * pArc);
bool set(JSURandomInputStream * pStream);
s32 makeHierarchyPanes(J2DPane * pParent, JSURandomInputStream * pStream);
bool checkSignature(JSURandomInputStream * pStream);
bool getScreenInformation(JSURandomInputStream * pStream);
private:
/* 0xCC */ bool mbClipToParent;
/* 0xCD */ u8 pad_0xcd[3];
/* 0xD0 */ GXColor mColor;
};
STATIC_ASSERT(sizeof(J2DScreen) == 0xD4);
#endif /* J2DSCREEN_H */