NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
scn_mdl_simple.hpp
1#pragma once
2
3#include <lib/nw4r/g3d/anm_obj.hpp>
4#include <lib/nw4r/g3d/res_mdl.hpp>
5#include <lib/nw4r/g3d/scn_leaf.hpp>
6
7namespace nw4r {
8namespace g3d {
9
10class ScnMdlSimple : public ScnLeaf {
11public:
12 enum AnmObjType {
13 ANMOBJTYPE_CHR,
14 ANMOBJTYPE_VIS,
15 ANMOBJTYPE_MATCLR,
16 ANMOBJTYPE_TEXPAT,
17 ANMOBJTYPE_TEXSRT,
18 ANMOBJTYPE_SHP,
19 ANMOBJTYPE_NOT_SPECIFIED,
20
21 ANMOBJTYPE_VTX = ANMOBJTYPE_SHP
22 };
23
24 virtual void SetAnmObj(nw4r::g3d::AnmObj *, nw4r::g3d::ScnMdlSimple::AnmObjType);
25 virtual void RemoveAnmObj(nw4r::g3d::AnmObj *);
26 virtual void RemoveAnmObj(nw4r::g3d::ScnMdlSimple::AnmObjType);
27 virtual nw4r::g3d::AnmObj *GetAnmObj(nw4r::g3d::ScnMdlSimple::AnmObjType) const;
28 virtual nw4r::g3d::AnmObj *GetAnmObj(nw4r::g3d::ScnMdlSimple::AnmObjType);
29
30 static ScnMdlSimple *Construct(MEMAllocator *, size_t *, ResMdl, int);
31
32 void EnableScnMdlCallbackTiming(ScnObj::Timing);
33
34 bool GetScnMtxPos(nw4r::math::MTX34 *, nw4r::g3d::ScnObj::ScnObjMtxType, unsigned long) const;
35
36 ResMdl mpResMdl;
37 char pad2[0x30]; // not sure how much of the pad is in here vs in ObjMdl
38 void *mpCallback;
39
40 NW4R_G3D_TYPE_OBJ_DECL(ScnMdlSimple);
41};
42
43} // namespace g3d
44} // namespace nw4r
3D graphics drawing library.
Definition docgroup.h:10
A 3x4 matrix.
Definition mtx.hpp:15