summaryrefslogtreecommitdiff
path: root/include/egg/gfx/eggPostEffectMaskDOF.h
blob: 297843ecc02958af35482e83df9009f442d61477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef EGG_POST_EFFECT_MASK_DOF_H
#define EGG_POST_EFFECT_MASK_DOF_H

#include "egg/gfx/eggCpuTexture.h"
#include "egg/gfx/eggPostEffectBase.h"
#include "egg/math/eggVector.h"
#include "rvl/GX/GXTypes.h"
namespace EGG {

class PostEffectMaskDOF : public PostEffectBase {
public:
    PostEffectMaskDOF();

    void setUpGradation();
    virtual void draw(f32 width, f32 height) override;
    virtual void setMaterialInternal() override;
    virtual ~PostEffectMaskDOF() {}

    static const GXColor &getNearColor();
    static const GXColor &getFarColor();
    static const GXColor &getCenterColor();

    void setParam0x44(f32 f) {
        field_0x44 = f;
    }

    void setParam0x48(f32 f) {
        field_0x48 = f;
    }

    void setParam0x4C(f32 f) {
        field_0x4C = f;
    }

    void setCpuTexArrIdx(int i){
        mCpuTexArrIdx = i;
    }

private:
    /* 0x2C */ u8 field_0x2C;
    /* 0x30 */ CpuTexture *mpCpuTexArr[3];
    /* 0x3C */ CpuTexture *mpCpuTex;
    /* 0x40 */ u8 _40[4];
    /* 0x44 */ f32 field_0x44;
    /* 0x48 */ f32 field_0x48;
    /* 0x4C */ f32 field_0x4C;
    /* 0x50 */ Vector2f field_0x50;
    /* 0x58 */ u8 _58[4];
    /* 0x5C */ int mCpuTexArrIdx;
    /* 0x60 */ int field_0x60;
};

} // namespace EGG

#endif