NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
scn_leaf.hpp
1#pragma once
2#include <nw4r/g3d.h>
3#include <nw4r/math.h>
4
5namespace m3d {
6 class scnLeaf_c {
7 public:
8 /// @unofficial
9 enum leafType_e {
10 TYPE_BMDL,
11 TYPE_UNUSED,
12 TYPE_PROC
13 };
14
15 scnLeaf_c();
16 virtual ~scnLeaf_c();
17
18 virtual leafType_e getType() const = 0;
19 virtual void remove();
20 virtual void entry();
21
22 void setOption(ulong option, ulong value);
23 bool getOption(ulong option, ulong *value) const;
24 void setScale(float x, float y, float z);
25 void setScale(const nw4r::math::VEC3 &scale);
26 void setLocalMtx(const nw4r::math::MTX34 *mtx);
27 void getLocalMtx(nw4r::math::MTX34 *mtx) const;
28 void getViewMtx(nw4r::math::MTX34 *mtx) const;
29 void calc(bool keepEnabledAfter);
30 void calcVtx(bool keepEnabledAfter);
31 void setPriorityDraw(int prioOpa, int prioXlu);
32
33 nw4r::g3d::ScnObj *getScn() const { return mpScn; }
34
35 protected:
36 nw4r::g3d::ScnLeaf *mpScn;
37 };
38}
mLib 3D library
Definition anm_chr.hpp:5