NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
global.hpp
1#pragma once
2
3#include <game/mLib/m_allocator.hpp>
4#include <lib/egg/gx/eggLightManager.hpp>
5#include <lib/egg/gx/eggFogManager.hpp>
6#include <lib/egg/gx/eggScreen.hpp>
7#include <lib/nw4r/g3d/res_mdl.hpp>
8
9#include <_dummy_classes.hpp>
10
11/// @addtogroup mlib
12/// @{
13
14/// @brief mLib 3D library
15namespace m3d {
16 class bmdl_c;
17
18 void initHio(const char *name);
19
20 bool create(EGG::Heap *heap, ulong maxChildren, ulong maxScnObj, ulong numLightObj, ulong numLightSet);
21 bool create(EGG::Heap *heap, GXPixelFmt fmt, GXColor col, ulong maxChildren, ulong maxScnObj, ulong numLightObj,
22 ulong numLightSet, ulong numLightMgr, ulong numFogMgr);
23
24 bool createLightMgr(EGG::Heap *heap, u16 lmArg1, u16 lmArg2, u8 lmArg3, bool createFogMgr, int idx);
25 void removeLightMgr(int idx);
26
27 bool createFogMgr(EGG::Heap *heap, int fmArg, int idx);
28 void removeFogMgr(int idx);
29
30 nw4r::g3d::ScnRoot *getScnRoot();
31 nw4r::g3d::Camera getCamera(int idx);
32 nw4r::g3d::Camera getCurrentCamera();
33 int getCurrentCameraID();
34 void setCurrentCamera(int idx);
35
36 nw4r::g3d::LightSetting *getLightSettingP();
37 EGG::LightManager *getLightMgr(int idx);
38 EGG::FogManager *getFogMgr(int idx);
39
40 void drawDone(int idx);
41
42 void drawLightMapTexture(int idx);
43 bool replaceLightMapTexture(char const *name, m3d::bmdl_c &mdl, int idx);
44
45 void calcWorld(int idx);
46 void calcMaterial();
47 void calcView(int idx);
48
49 void drawOpa();
50 void drawXlu();
51
52 void pushBack(nw4r::g3d::ScnObj *obj);
53
54 void clear();
55 void reset();
56
57 int getNodeID(nw4r::g3d::ResMdl mdl, char const *name);
58
59 void resetMaterial(); ///< Turns off all indirect texture processing.
60
61 void screenEffectReset(int cameraID, EGG::Screen &screen);
62}
63/// @}
struct _GXColor GXColor
A 32-bit RGBA color.
mLib 3D library
Definition anm_chr.hpp:5
void resetMaterial()
Turns off all indirect texture processing.
Definition m_3d.cpp:310