summaryrefslogtreecommitdiff
path: root/include/egg
diff options
context:
space:
mode:
authorelijah-thomas774 <elijahthomas774@gmail.com>2025-03-23 21:01:17 -0400
committerelijah-thomas774 <elijahthomas774@gmail.com>2025-03-23 21:01:17 -0400
commit31728178d9d83de43cb1dfd9a1ff1f8cf568edd6 (patch)
tree8a8c4afe12bffc167434a88388fb8bf88b462d2c /include/egg
parent3ef9b0df8b956bdb3f371ee118ef6dc881ea61e6 (diff)
More PostEffect Progress
Diffstat (limited to 'include/egg')
-rw-r--r--include/egg/gfx/eggPostEffectBase.h21
-rw-r--r--include/egg/gfx/eggPostEffectMaskDOF.h6
2 files changed, 16 insertions, 11 deletions
diff --git a/include/egg/gfx/eggPostEffectBase.h b/include/egg/gfx/eggPostEffectBase.h
index 0e940200..7a2cfc0d 100644
--- a/include/egg/gfx/eggPostEffectBase.h
+++ b/include/egg/gfx/eggPostEffectBase.h
@@ -5,6 +5,7 @@
#include "egg/gfx/eggCapTexture.h"
#include "egg/gfx/eggScreen.h"
#include "egg/math/eggMath.h"
+#include "egg/math/eggRotation.h"
#include "nw4r/math/math_types.h"
#include "rvl/GX/GXTypes.h"
@@ -22,15 +23,19 @@ public:
static void setProjection(const EGG::Screen &screen);
+ f32 getRot() const {
+ return mRotation;
+ }
+
protected:
- u32 field_0x00; // at 0x0
- CapTextureWrapper mTex1; // at 0x4
- CapTextureWrapper mTex2; // at 0xC
- f32 mOffsetX; // at 0x14
- f32 mOffsetY; // at 0x18
- f32 mScaleX; // at 0x1C
- f32 mScaleY; // at 0x20
- f32 mRotation; // at 0x24
+ u32 field_0x00; // at 0x0
+ CapTextureWrapper mTex1; // at 0x4
+ CapTextureWrapper mTex2; // at 0xC
+ f32 mOffsetX; // at 0x14
+ f32 mOffsetY; // at 0x18
+ f32 mScaleX; // at 0x1C
+ f32 mScaleY; // at 0x20
+ EGG::Rotation<f32> mRotation; // at 0x24
PostEffectBase();
virtual ~PostEffectBase() {} // at 0x8
diff --git a/include/egg/gfx/eggPostEffectMaskDOF.h b/include/egg/gfx/eggPostEffectMaskDOF.h
index 5faca35a..56ca76d1 100644
--- a/include/egg/gfx/eggPostEffectMaskDOF.h
+++ b/include/egg/gfx/eggPostEffectMaskDOF.h
@@ -16,9 +16,9 @@ public:
virtual void setMaterialInternal() override;
virtual ~PostEffectMaskDOF() {}
- const GXColor &getNearColor();
- const GXColor &getFarColor();
- const GXColor &getCenterColor();
+ static const GXColor &getNearColor();
+ static const GXColor &getFarColor();
+ static const GXColor &getCenterColor();
private:
/* 0x2C */ u8 field_0x2C;