SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
BloomArea.cpp
1#include "Game/AreaObj/BloomArea.hpp"
2#include "Game/Util/ScreenUtil.hpp"
3
4BloomArea::BloomArea(int type, const char *pName) :
5 ImageEffectArea(IMAGE_EFFECT_TYPE_BLOOM, type, pName) {
6 _40 = 128;
7 _41 = 255;
8 _44 = -1;
9 _48 = -1;
10}
11
12BloomArea::~BloomArea() {
13
14}
15
16void BloomArea::init(const JMapInfoIter &rIter) {
17 AreaObj::init(rIter);
18 MR::createNormalBloom();
19
20 if (mObjArg0 >= 0) {
21 _41 = static_cast<u8>(mObjArg0);
22 }
23
24 if (mObjArg1 >= 0) {
25 _40 = static_cast<u8>(mObjArg1);
26 }
27
28 if (mObjArg2 >= 0) {
29 _44 = mObjArg2;
30 }
31
32 if (mObjArg3 >= 0) {
33 _48 = mObjArg3;
34 }
35}
36
37const char *BloomArea::getManagerName() const {
38 return "ImageEffectArea";
39}
40
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition AreaObj.cpp:41
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition BloomArea.cpp:16