Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
m_Do_graphic.h
Go to the documentation of this file.
1#ifndef M_DO_M_DO_GRAPHIC_H
2#define M_DO_M_DO_GRAPHIC_H
3
5#include "dolphin/mtx.h"
6
7class JUTFader;
8
9int mDoGph_Create();
11
12extern bool data_80450BE7; // AutoForcus
13
14struct ResTIMG;
15class mDoGph_gInf_c {
16public:
17 class bloom_c {
18 public:
20 /* 80009544 */ void create();
21 /* 800095F8 */ void remove();
22 /* 80009650 */ void draw();
23
24 u8 getEnable() { return mEnable; }
33
34 /* 0x00 */ GXColor mBlendColor;
35 /* 0x04 */ GXColor mMonoColor;
36 /* 0x08 */ u8 mEnable;
37 /* 0x09 */ u8 mMode;
38 /* 0x0A */ u8 mPoint;
39 /* 0x0B */ u8 mBlureSize;
40 /* 0x0C */ u8 mBlureRatio;
41 /* 0x10 */ void* m_buffer;
42 };
43
44 /* 80007E44 */ static void create();
45 /* 80007F90 */ static void beginRender();
46 /* 800080D0 */ static void fadeOut(f32);
47 /* 80007FD8 */ static void fadeOut(f32, _GXColor&);
48 /* 807DFAB4 */ static void fadeIn(f32, _GXColor&);
49 /* 80008028 */ static void fadeOut_f(f32, _GXColor&);
50 /* 800080A0 */ static void onBlure(const Mtx);
51 /* 80008078 */ static void onBlure();
52 /* 80008330 */ static void calcFade();
54 static JUTFader* getFader() { return mFader; }
55 static void setFader(JUTFader* fader) {
57 mFader = fader;
58 }
59
66 static void offFade() { mFade = 0; }
67 static u8 isFade() { return mFade; }
68 static void offBlure() { mBlureFlag = false; }
69 static bool isBlure() { return mBlureFlag; }
71 static u8 getBlureRate() { return mBlureRate; }
72 static MtxP getBlureMtx() { return mBlureMtx; }
73 static void offAutoForcus() { data_80450BE7 = 0; }
74 static BOOL isAutoForcus() { return data_80450BE7; }
77 static f32 getWidthF() { return 608.0f; }
78 static f32 getHeightF() { return 448.0f; }
79 static f32 getWidth() { return 608.0f; }
80 static f32 getHeight() { return 448.0f; }
81 static f32 getMinYF() { return 0.0f; }
82 static f32 getMinXF() { return 0.0f; }
83 static f32 getMaxYF() { return 448.0f; }
84 static f32 getMaxXF() { return 608.0f; }
85 static f32 getAspect() { return 1.3571428f; }
86 static int getMinY() { return 0; }
87 static int getMinX() { return 0; }
88 static int getMaxY() { return 448; }
89 static int getMaxX() { return 608; }
91 static ResTIMG* getZbufferTimg() { return mZbufferTimg; }
92 static void* getFrameBufferTex() { return mFrameBufferTex; }
93 static void* getZbufferTex() { return mZbufferTex; }
94 static void setFadeRate(f32 rate) { mFadeRate = rate; }
95 static f32 getFadeRate() { return mFadeRate; }
96 static bloom_c* getBloom() { return &m_bloom; }
97 static GXColor& getFadeColor() { return mFadeColor; }
98 static GXColor& getBackColor() { return mBackColor; }
102 static f32 getInvScale() { return 1.0f; }
103 static f32 getScale() { return 1.0f; }
106
111 static GXColor mBackColor;
112 static GXColor mFadeColor;
115 static void* mFrameBufferTex;
117 static void* mZbufferTex;
120 static bool mBlureFlag;
122 static u8 mFade;
123};
124
125#endif /* M_DO_M_DO_GRAPHIC_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
int startFadeIn(int param_0)
Definition JFWDisplay.h:82
virtual void endFrame()
Definition JFWDisplay.cpp:337
void setFader(JUTFader *fader)
Definition JFWDisplay.h:100
void setFrameRate(u16 rate)
Definition JFWDisplay.h:94
void setClearColor(JUtility::TColor color)
Definition JFWDisplay.h:103
void waitBlanking(int)
Definition JFWDisplay.cpp:373
static JFWDisplay * getManager()
Definition JFWDisplay.h:73
virtual void endRender()
Definition JFWDisplay.cpp:309
bool startFadeOut(int param_0)
Definition JFWDisplay.h:75
void setTickRate(u32 rate)
Definition JFWDisplay.h:89
Definition JUTFader.h:11
JUtility::TColor mColor
Definition JUTFader.h:33
Definition m_Do_graphic.h:17
void setMonoColor(GXColor i_color)
Definition m_Do_graphic.h:31
u8 mBlureRatio
Definition m_Do_graphic.h:40
void draw()
Definition m_Do_graphic.cpp:619
GXColor * getMonoColor()
Definition m_Do_graphic.h:26
u8 mPoint
Definition m_Do_graphic.h:38
void setBlendColor(GXColor i_color)
Definition m_Do_graphic.h:30
void remove()
Definition m_Do_graphic.cpp:609
void * m_buffer
Definition m_Do_graphic.h:41
u8 mMode
Definition m_Do_graphic.h:37
void create()
Definition m_Do_graphic.cpp:594
void setMode(u8 i_mode)
Definition m_Do_graphic.h:32
GXColor mBlendColor
Definition m_Do_graphic.h:34
u8 mBlureSize
Definition m_Do_graphic.h:39
u8 getEnable()
Definition m_Do_graphic.h:24
u8 mEnable
Definition m_Do_graphic.h:36
void setBlureRatio(u8 i_ratio)
Definition m_Do_graphic.h:29
void setPoint(u8 i_point)
Definition m_Do_graphic.h:27
GXColor mMonoColor
Definition m_Do_graphic.h:35
void setEnable(u8 i_enable)
Definition m_Do_graphic.h:25
void setBlureSize(u8 i_size)
Definition m_Do_graphic.h:28
bloom_c()
Definition m_Do_graphic.h:19
static void wait(b_gos_class *i_this)
Definition d_a_b_gos.cpp:59
static SECTION_DATA u8 color[4]
Definition d_a_obj_crope.cpp:225
int m
Definition e_atan2.c:62
int mDoGph_Create()
Definition m_Do_graphic.cpp:1140
void mDoGph_drawFilterQuad(s8 param_0, s8 param_1)
Definition m_Do_graphic.cpp:579
bool data_80450BE7
Definition m_Do_graphic.cpp:88
f32(* MtxP)[4]
Definition mtx.h:18
f32 Mtx[3][4]
Definition mtx.h:15
Definition TColor.h:12
void set(u8 cR, u8 cG, u8 cB, u8 cA)
Definition TColor.h:23
Image data header.
Definition d_menu_dmap_map.cpp:109
Definition d_a_ep.cpp:68
Definition d_a_ep.cpp:147
Definition d_menu_dmap_map.cpp:92
static bloom_c * getBloom()
Definition m_Do_graphic.h:96
static f32 getInvScale()
Definition m_Do_graphic.h:102
static void setFadeRate(f32 rate)
Definition m_Do_graphic.h:94
static void onBlure()
Definition m_Do_graphic.cpp:159
static ResTIMG * getZbufferTimg()
Definition m_Do_graphic.h:91
static ResTIMG * mFrameBufferTimg
Definition m_Do_graphic.h:114
static f32 getMinYF()
Definition m_Do_graphic.h:81
static void * mZbufferTex
Definition m_Do_graphic.h:117
static MtxP getBlureMtx()
Definition m_Do_graphic.h:72
static int startFadeIn(int param_0)
Definition m_Do_graphic.h:61
static u8 mBlureRate
Definition m_Do_graphic.h:121
static void setFrameRate(u16 i_rate)
Definition m_Do_graphic.h:105
static GXTexObj * getFrameBufferTexObj()
Definition m_Do_graphic.h:101
static int getMaxY()
Definition m_Do_graphic.h:88
static int getMaxX()
Definition m_Do_graphic.h:89
static GXTexObj mZbufferTexObj
Definition m_Do_graphic.h:108
static u8 isFade()
Definition m_Do_graphic.h:67
static GXColor mBackColor
Definition m_Do_graphic.h:50
static bool mBlureFlag
Definition m_Do_graphic.h:120
static int startFadeOut(int param_0)
Definition m_Do_graphic.h:60
static void fadeIn(f32, _GXColor &)
Definition d_a_e_wb.cpp:2495
static void setWideZoomLightProjection(Mtx m)
Definition m_Do_graphic.h:104
static bool isBlure()
Definition m_Do_graphic.h:69
static void endRender()
Definition m_Do_graphic.h:99
static void waitBlanking(int wait)
Definition m_Do_graphic.h:76
static f32 getWidthF()
Definition m_Do_graphic.h:77
static void setBackColor(GXColor &color)
Definition m_Do_graphic.h:64
static u8 getBlureRate()
Definition m_Do_graphic.h:71
static void setFadeColor(JUtility::TColor color)
Definition m_Do_graphic.h:62
static GXTexObj * getZbufferTexObj()
Definition m_Do_graphic.h:100
static f32 getFadeRate()
Definition m_Do_graphic.h:95
static void setFader(JUTFader *fader)
Definition m_Do_graphic.h:55
static JUTFader * mFader
Definition m_Do_graphic.h:113
static void fadeOut(f32, _GXColor &)
static void setBlureRate(u8 i_rate)
Definition m_Do_graphic.h:70
static void beginRender()
Definition m_Do_graphic.cpp:124
static GXColor & getBackColor()
Definition m_Do_graphic.h:98
static void setTickRate(u32 rate)
Definition m_Do_graphic.h:75
static ResTIMG * mZbufferTimg
Definition m_Do_graphic.h:116
static f32 getAspect()
Definition m_Do_graphic.h:85
static void endFrame()
Definition m_Do_graphic.h:65
static f32 mFadeRate
Definition m_Do_graphic.h:118
static f32 getScale()
Definition m_Do_graphic.h:103
static void offBlure()
Definition m_Do_graphic.h:68
static f32 getHeight()
Definition m_Do_graphic.h:80
static void * getFrameBufferTex()
Definition m_Do_graphic.h:92
static void setClearColor(JUtility::TColor color)
Definition m_Do_graphic.h:63
static void offFade()
Definition m_Do_graphic.h:66
static GXTexObj mFrameBufferTexObj
Definition m_Do_graphic.h:107
static GXColor & getFadeColor()
Definition m_Do_graphic.h:97
static bloom_c m_bloom
Definition m_Do_graphic.h:109
static void * getZbufferTex()
Definition m_Do_graphic.h:93
static void * mFrameBufferTex
Definition m_Do_graphic.h:115
static f32 mFadeSpeed
Definition m_Do_graphic.h:119
static f32 getHeightF()
Definition m_Do_graphic.h:78
static ResTIMG * getFrameBufferTimg()
Definition m_Do_graphic.h:90
static GXColor mFadeColor
Definition m_Do_graphic.h:53
void fadeOut(f32, _GXColor &)
Definition m_Do_graphic.cpp:133
static void create()
Definition m_Do_graphic.cpp:91
static Mtx mBlureMtx
Definition m_Do_graphic.h:110
static void fadeOut_f(f32, _GXColor &)
Definition m_Do_graphic.cpp:146
static int getMinX()
Definition m_Do_graphic.h:87
static JUTFader * getFader()
Definition m_Do_graphic.h:54
static f32 getMinXF()
Definition m_Do_graphic.h:82
static int getMinY()
Definition m_Do_graphic.h:86
static f32 getWidth()
Definition m_Do_graphic.h:79
static f32 getMaxYF()
Definition m_Do_graphic.h:83
static u8 mFade
Definition m_Do_graphic.h:122
static BOOL isAutoForcus()
Definition m_Do_graphic.h:74
static f32 getMaxXF()
Definition m_Do_graphic.h:84
static void offAutoForcus()
Definition m_Do_graphic.h:73
static void calcFade()
Definition m_Do_graphic.cpp:227
int BOOL
Definition types.h:27
signed char s8
Definition types.h:4
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8