From e4e4be4fceb93720fd99d604759cf0e362cc2f12 Mon Sep 17 00:00:00 2001 From: robojumper Date: Sun, 27 Jul 2025 16:45:04 +0200 Subject: d_gfx mostly OK --- include/egg/gfx/eggDrawGX.h | 3 +++ include/egg/gfx/eggScreen.h | 3 +++ include/egg/gfx/eggTextureBuffer.h | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'include/egg') diff --git a/include/egg/gfx/eggDrawGX.h b/include/egg/gfx/eggDrawGX.h index 33d5e37a..e7e944af 100644 --- a/include/egg/gfx/eggDrawGX.h +++ b/include/egg/gfx/eggDrawGX.h @@ -156,6 +156,9 @@ public: static void DrawDL16(const nw4r::math::MTX34 &mtx, GXColor clr) { DrawDL(DL_16, mtx, clr); } + static void DrawDL17(const nw4r::math::MTX34 &mtx, GXColor clr) { + DrawDL(DL_17, mtx, clr); + } // TODO MORE static void SetTevColor(GXTevRegID regId, GXColor tevClr, GXTevKColorID colorId, GXColor tevkClr) { diff --git a/include/egg/gfx/eggScreen.h b/include/egg/gfx/eggScreen.h index e78ba7bf..ec0e8007 100644 --- a/include/egg/gfx/eggScreen.h +++ b/include/egg/gfx/eggScreen.h @@ -94,6 +94,9 @@ public: const Screen *GetParent() const { return mParent; } + static Screen *GetRoot() { + return spRoot; + } void SetParent(const Screen *parent); void SetUnkFlag8(); diff --git a/include/egg/gfx/eggTextureBuffer.h b/include/egg/gfx/eggTextureBuffer.h index 3328a4ad..f14ecaf8 100644 --- a/include/egg/gfx/eggTextureBuffer.h +++ b/include/egg/gfx/eggTextureBuffer.h @@ -34,10 +34,10 @@ public: void alloc(u32 size); static TextureBuffer *alloc(u16 w, u16 h, GXTexFmt fmt); void free(); + static void setIncludesHeader(bool); private: static bool includesHeader(); - static void setIncludesHeader(bool); u32 mSize; // at 0x2C EBufferState mState; // at 0x30 -- cgit v1.2.3