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