NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
anm_mat_clr.hpp
1#pragma once
2#include <game/mLib/m_3d/bmdl.hpp>
3#include <game/mLib/m_3d/banm.hpp>
4#include <game/mLib/m_3d/fanm.hpp>
5
6namespace m3d {
7 class anmMatClr_c : public banm_c {
8 public:
9 anmMatClr_c() : mpChildren(nullptr) {}
10 virtual ~anmMatClr_c();
11 virtual void remove();
12 virtual void play();
13 virtual banm_c::anmType_e getType() const { return banm_c::TYPE_ANM_MAT_CLR; };
14
15 static size_t heapCost(nw4r::g3d::ResMdl mdl, nw4r::g3d::ResAnmClr anmClr, long count, bool calcAligned);
16 bool create(nw4r::g3d::ResMdl mdl, nw4r::g3d::ResAnmClr anmClr, mAllocator_c *allocator, size_t *objSize, long count);
17 void setAnm(m3d::bmdl_c &mdl, nw4r::g3d::ResAnmClr anmClr, long idx, m3d::playMode_e playMode);
18 void releaseAnm(long idx);
19 void play(long idx);
20 float getFrame(long idx) const;
21 void setFrame(float frame, long idx);
22 float getRate(long idx) const;
23 void setRate(float rate, long idx);
24 bool isStop(long idx) const;
25 bool checkFrame(float frame, long idx) const;
26 void setPlayMode(m3d::playMode_e playMode, long idx);
27 float getFrameMax(long idx) const;
28 float getFrameStart(long idx) const;
29
30 class child_c : public fanm_c {
31 public:
32 virtual banm_c::anmType_e getType() const { return banm_c::TYPE_ANM_MAT_CLR; };
33 virtual ~child_c() {}
34
35 static size_t heapCost(nw4r::g3d::ResMdl mdl, nw4r::g3d::ResAnmClr anmClr, bool calcAligned);
36 bool create(nw4r::g3d::ResMdl mdl, nw4r::g3d::ResAnmClr anmClr, mAllocator_c *allocator, size_t *objSize);
37 void setAnm(m3d::bmdl_c &mdl, nw4r::g3d::ResAnmClr anmClr, m3d::playMode_e playMode);
38 void releaseAnm();
39 void setFrmCtrlDefault(nw4r::g3d::ResAnmClr &anmClr, m3d::playMode_e playMode);
40 };
41
42 child_c *mpChildren;
43 };
44}
fanm_c()
Constructs an animation object.
Definition fanm.cpp:3
An allocator class that wraps an EGG:Allocator .
mLib 3D library
Definition anm_chr.hpp:5
playMode_e
Definition banm.hpp:7