diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2023-05-12 12:10:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-12 12:10:14 -0700 |
| commit | 221f40e6097dfe76c76602aa21aa07d5f760dce4 (patch) | |
| tree | b8f2549712927365bcffd13688729555a4276ff1 /include/JSystem/J2DGraph | |
| parent | 8c7cda85891b41cfdbce72ed4efb00292f34a16a (diff) | |
Remove #includes from headers (#334)
* add "global.h" to files that use it
* add MSL_C includes to files that use them
* remove dolphin includes from headers that don't need them
* remove JSupport includes from headers that don't need them
* remove JKernel includes from headers that don't need them
* remove JUtility includes from headers that don't need them
* remove J3D includes from headers that don't need them
* remove J2D includes from headers that don't need them
* remove JAudio2 includes from headers that don't need them
* remove Z2AudioLib includes from headers that don't need them
* remove JMessage includes from headers that don't need them
* remove JParticle includes from headers that don't need them
* remove SComponent includes from headers that don't need them
* remove dol includes from headers that don't need them
* sort includes
Diffstat (limited to 'include/JSystem/J2DGraph')
| -rw-r--r-- | include/JSystem/J2DGraph/J2DAnimation.h | 8 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DAnmLoader.h | 1 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DManage.h | 3 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DMatBlock.h | 11 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DMaterial.h | 1 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DMaterialFactory.h | 18 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DPane.h | 21 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DPicture.h | 10 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DPictureEx.h | 5 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DPrint.h | 2 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DScreen.h | 6 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DTevs.h | 2 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DTextBox.h | 3 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DTextBoxEx.h | 5 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DWindow.h | 4 | ||||
| -rw-r--r-- | include/JSystem/J2DGraph/J2DWindowEx.h | 1 |
16 files changed, 73 insertions, 28 deletions
diff --git a/include/JSystem/J2DGraph/J2DAnimation.h b/include/JSystem/J2DGraph/J2DAnimation.h index 1cb44c0f04..325172b664 100644 --- a/include/JSystem/J2DGraph/J2DAnimation.h +++ b/include/JSystem/J2DGraph/J2DAnimation.h @@ -3,12 +3,14 @@ #include "JSystem/J3DGraphAnimator/J3DAnimation.h" #include "JSystem/JUtility/JUTNameTab.h" -#include "JSystem/JUtility/JUTTexture.h" -#include "dolphin/gx/GX.h" -#include "dolphin/os/OS.h" #include "dolphin/types.h" +#include "global.h" +typedef struct _GXColor GXColor; +typedef struct _GXColorS10 GXColorS10; class J2DScreen; +class JUTPalette; +struct ResTIMG; enum J2DAnmKind { KIND_TRANSFORM = 0, diff --git a/include/JSystem/J2DGraph/J2DAnmLoader.h b/include/JSystem/J2DGraph/J2DAnmLoader.h index cb4501ce58..19b8642558 100644 --- a/include/JSystem/J2DGraph/J2DAnmLoader.h +++ b/include/JSystem/J2DGraph/J2DAnmLoader.h @@ -2,7 +2,6 @@ #define J2DANMLOADER_H #include "JSystem/J2DGraph/J2DAnimation.h" -#include "JSystem/J3DGraphAnimator/J3DAnimation.h" #include "dolphin/types.h" struct J2DAnmLoaderDataBase { diff --git a/include/JSystem/J2DGraph/J2DManage.h b/include/JSystem/J2DGraph/J2DManage.h index 96a9e5ebc0..07d563571f 100644 --- a/include/JSystem/J2DGraph/J2DManage.h +++ b/include/JSystem/J2DGraph/J2DManage.h @@ -1,9 +1,10 @@ #ifndef J2DMANAGE_H #define J2DMANAGE_H -#include "JSystem/JSupport/JSUInputStream.h" #include "dolphin/types.h" +class JSUInputStream; + struct J2DResReference { /* 0x00 */ u16 mCount; /* 0x02 */ u16 mOffsets[1]; diff --git a/include/JSystem/J2DGraph/J2DMatBlock.h b/include/JSystem/J2DGraph/J2DMatBlock.h index d9ed9f94b8..5b4466de38 100644 --- a/include/JSystem/J2DGraph/J2DMatBlock.h +++ b/include/JSystem/J2DGraph/J2DMatBlock.h @@ -2,11 +2,18 @@ #define J2DMATBLOCK_H #include "JSystem/J2DGraph/J2DTevs.h" -#include "JSystem/JUtility/JUTResFont.h" -#include "JSystem/JUtility/JUTTexture.h" #include "JSystem/JUtility/TColor.h" +#include "dolphin/gx/GXStruct.h" #include "dolphin/types.h" +class JUTFont; +class JUTPalette; +class JUTResFont; +class JUTTexture; +struct ResFONT; +struct ResTIMG; +struct ResTLUT; + struct J2DGXColorS10 : public GXColorS10 { /* 802F1B90 */ J2DGXColorS10(); }; diff --git a/include/JSystem/J2DGraph/J2DMaterial.h b/include/JSystem/J2DGraph/J2DMaterial.h index e30143379f..b83a856cc9 100644 --- a/include/JSystem/J2DGraph/J2DMaterial.h +++ b/include/JSystem/J2DGraph/J2DMaterial.h @@ -3,7 +3,6 @@ #include "JSystem/J2DGraph/J2DAnimation.h" #include "JSystem/J2DGraph/J2DMatBlock.h" -#include "dolphin/gx/GX.h" #include "dolphin/types.h" class J2DMaterial { diff --git a/include/JSystem/J2DGraph/J2DMaterialFactory.h b/include/JSystem/J2DGraph/J2DMaterialFactory.h index e66d8f9bdd..719333b51c 100644 --- a/include/JSystem/J2DGraph/J2DMaterialFactory.h +++ b/include/JSystem/J2DGraph/J2DMaterialFactory.h @@ -2,16 +2,26 @@ #define J2DMATERIALFACTORY_H #include "JSystem/J2DGraph/J2DManage.h" -#include "JSystem/J2DGraph/J2DMaterial.h" -#include "JSystem/JKernel/JKRArchive.h" +#include "dolphin/gx/GXEnum.h" #include "dolphin/types.h" struct J2DMaterialBlock {}; -struct J2DMaterialInitData; +typedef struct _GXColor GXColor; +typedef struct _GXColorS10 GXColorS10; +struct J2DAlphaCompInfo; +struct J2DBlendInfo; +struct J2DColorChanInfo; struct J2DIndInitData; +class J2DMaterial; +struct J2DMaterialInitData; +struct J2DTevStageInfo; struct J2DTevSwapModeTableInfo; -struct J2DAlphaCompInfo; +struct J2DTevSwapModeInfo; +struct J2DTevOrderInfo; +struct J2DTexCoordInfo; +struct J2DTexMtxInfo; +class JKRArchive; class J2DMaterialFactory { public: diff --git a/include/JSystem/J2DGraph/J2DPane.h b/include/JSystem/J2DGraph/J2DPane.h index 7d4832d8eb..a2c4bf1d14 100644 --- a/include/JSystem/J2DGraph/J2DPane.h +++ b/include/JSystem/J2DGraph/J2DPane.h @@ -1,19 +1,26 @@ #ifndef J2DPANE_H #define J2DPANE_H -#include "JSystem/J2DGraph/J2DAnimation.h" -#include "JSystem/J2DGraph/J2DGrafContext.h" #include "JSystem/JGeometry.h" -#include "JSystem/JKernel/JKRArchive.h" #include "JSystem/JSupport/JSUList.h" -#include "JSystem/JSupport/JSURandomInputStream.h" -#include "JSystem/JUtility/JUTFont.h" -#include "JSystem/JUtility/JUTResFont.h" -#include "JSystem/JUtility/JUTTexture.h" +#include "dolphin/gx/GXEnum.h" #include "dolphin/mtx/mtx.h" #include "dolphin/types.h" +class J2DAnmBase; +class J2DAnmColor; +class J2DAnmTransform; +class J2DAnmTevRegKey; +class J2DAnmTextureSRTKey; +class J2DAnmVisibilityFull; +class J2DAnmVtxColor; +class J2DGrafContext; class J2DScreen; +class J2DAnmTexPattern; +class JKRArchive; +class JSURandomInputStream; +struct ResFONT; +struct ResTIMG; enum J2DRotateAxis { /* 0x78 */ ROTATE_X = 'x', diff --git a/include/JSystem/J2DGraph/J2DPicture.h b/include/JSystem/J2DGraph/J2DPicture.h index b28e74fd83..e19ea034ba 100644 --- a/include/JSystem/J2DGraph/J2DPicture.h +++ b/include/JSystem/J2DGraph/J2DPicture.h @@ -2,10 +2,16 @@ #define J2DPICTURE_H #include "JSystem/J2DGraph/J2DPane.h" -#include "JSystem/J2DGraph/J2DScreen.h" -#include "JSystem/JUtility/JUTTexture.h" +#include "JSystem/JUtility/TColor.h" +#include "dolphin/gx/GXEnum.h" #include "dolphin/types.h" +class J2DMaterial; +class JUTPalette; +class JUTTexture; +struct ResTIMG; +struct ResTLUT; + enum J2DMirror { /* 0x0 */ MIRROR0, // temp, figure out later }; diff --git a/include/JSystem/J2DGraph/J2DPictureEx.h b/include/JSystem/J2DGraph/J2DPictureEx.h index 3b83093015..8e3a3139cf 100644 --- a/include/JSystem/J2DGraph/J2DPictureEx.h +++ b/include/JSystem/J2DGraph/J2DPictureEx.h @@ -1,10 +1,13 @@ #ifndef J2DPICTUREEX_H #define J2DPICTUREEX_H -#include "JSystem/J2DGraph/J2DMaterial.h" #include "JSystem/J2DGraph/J2DPicture.h" +#include "JSystem/J2DGraph/J2DTevs.h" +#include "dolphin/gx/GXEnum.h" #include "dolphin/types.h" +class J2DMaterial; + class J2DPictureEx : public J2DPicture { public: enum stage_enum {}; diff --git a/include/JSystem/J2DGraph/J2DPrint.h b/include/JSystem/J2DGraph/J2DPrint.h index fe2b169823..e47e59b646 100644 --- a/include/JSystem/J2DGraph/J2DPrint.h +++ b/include/JSystem/J2DGraph/J2DPrint.h @@ -6,6 +6,8 @@ #include "Runtime.PPCEABI.H/__va_arg.h" #include "dolphin/types.h" +class JUTFont; + class J2DPrint { public: struct TSize { diff --git a/include/JSystem/J2DGraph/J2DScreen.h b/include/JSystem/J2DGraph/J2DScreen.h index a878d07f57..456f8d3ad4 100644 --- a/include/JSystem/J2DGraph/J2DScreen.h +++ b/include/JSystem/J2DGraph/J2DScreen.h @@ -2,11 +2,13 @@ #define J2DSCREEN_H #include "JSystem/J2DGraph/J2DManage.h" -#include "JSystem/J2DGraph/J2DMaterial.h" #include "JSystem/J2DGraph/J2DPane.h" -#include "JSystem/JUtility/JUTNameTab.h" +#include "JSystem/JUtility/TColor.h" #include "dolphin/types.h" +class J2DMaterial; +class JUTNameTab; + struct J2DScrnHeader { /* 0x00 */ u32 mTag; /* 0x04 */ u32 mType; diff --git a/include/JSystem/J2DGraph/J2DTevs.h b/include/JSystem/J2DGraph/J2DTevs.h index 087e9d5396..63e0201b9c 100644 --- a/include/JSystem/J2DGraph/J2DTevs.h +++ b/include/JSystem/J2DGraph/J2DTevs.h @@ -1,7 +1,7 @@ #ifndef J2DTEVS_H #define J2DTEVS_H -#include "dolphin/gx/GX.h" +#include "dolphin/gx/GXEnum.h" #include "dolphin/mtx/mtxvec.h" #include "dolphin/types.h" diff --git a/include/JSystem/J2DGraph/J2DTextBox.h b/include/JSystem/J2DGraph/J2DTextBox.h index 67d1d663d3..b0d99ec5ae 100644 --- a/include/JSystem/J2DGraph/J2DTextBox.h +++ b/include/JSystem/J2DGraph/J2DTextBox.h @@ -5,6 +5,9 @@ #include "JSystem/J2DGraph/J2DPane.h" #include "dolphin/types.h" +class J2DMaterial; +class JUTFont; + enum J2DTextBoxVBinding { /* 0x0 */ VBIND_CENTER, /* 0x1 */ VBIND_BOTTOM, diff --git a/include/JSystem/J2DGraph/J2DTextBoxEx.h b/include/JSystem/J2DGraph/J2DTextBoxEx.h index 98f6c44c10..3a53a48ade 100644 --- a/include/JSystem/J2DGraph/J2DTextBoxEx.h +++ b/include/JSystem/J2DGraph/J2DTextBoxEx.h @@ -1,11 +1,12 @@ #ifndef J2DTEXTBOXEX_H #define J2DTEXTBOXEX_H -#include "JSystem/J2DGraph/J2DMaterial.h" -#include "JSystem/J2DGraph/J2DPrint.h" #include "JSystem/J2DGraph/J2DTextBox.h" +#include "dolphin/gx/GXEnum.h" #include "dolphin/types.h" +class J2DMaterial; + class J2DTextBoxEx : public J2DTextBox { public: enum stage_enum { diff --git a/include/JSystem/J2DGraph/J2DWindow.h b/include/JSystem/J2DGraph/J2DWindow.h index 088ab3315e..fb114165f0 100644 --- a/include/JSystem/J2DGraph/J2DWindow.h +++ b/include/JSystem/J2DGraph/J2DWindow.h @@ -3,9 +3,11 @@ #include "JSystem/J2DGraph/J2DMaterial.h" #include "JSystem/J2DGraph/J2DPane.h" -#include "JSystem/JSupport/JSURandomInputStream.h" #include "dolphin/types.h" +class JSURandomInputStream; +class JUTTexture; + class J2DWindow : public J2DPane { public: struct TMaterial { diff --git a/include/JSystem/J2DGraph/J2DWindowEx.h b/include/JSystem/J2DGraph/J2DWindowEx.h index e5f7e29f8a..a19e3842aa 100644 --- a/include/JSystem/J2DGraph/J2DWindowEx.h +++ b/include/JSystem/J2DGraph/J2DWindowEx.h @@ -3,6 +3,7 @@ #include "JSystem/J2DGraph/J2DMaterial.h" #include "JSystem/J2DGraph/J2DWindow.h" +#include "dolphin/gx/GXEnum.h" #include "dolphin/types.h" class J2DWindowEx : public J2DWindow { |
