NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
anm_obj.hpp
1
#pragma once
2
3
#include <lib/nw4r/g3d/g3d_obj.hpp>
4
#include <lib/nw4r/g3d/res_anm.hpp>
5
#include <lib/nw4r/g3d/res_mdl.hpp>
6
#include <lib/rvl/mem/MEMHeapCommon.h>
7
8
namespace
nw4r {
9
namespace
g3d
{
10
11
class
ClrAnmResult;
12
13
class
AnmObj
:
public
G3dObj
{
14
public
:
15
virtual
~AnmObj
();
16
virtual
void
G3dProc(ulong proc, ulong param,
void
*info);
17
virtual
void
SetFrame(
float
frame);
18
virtual
float
GetFrame()
const
;
19
virtual
void
UpdateFrame();
20
virtual
void
SetUpdateRate(
float
rate);
21
virtual
float
GetUpdateRate()
const
;
22
virtual
bool
Bind(
nw4r::g3d::ResMdl
resMdl);
23
virtual
void
Release();
24
virtual
int
GetResult(nw4r::g3d::ClrAnmResult *,
unsigned
long
);
25
virtual
void
Attach(
int
,
nw4r::g3d::AnmObj
*);
26
virtual
void
Detach(
int
);
27
28
enum
AnmFlag {
29
IS_BOUND = 4
30
};
31
32
bool
TestAnmFlag(AnmFlag)
const
;
33
34
AnmObj
*getNode()
const
{
return
node; }
35
36
AnmObj
*node;
37
};
38
39
class
AnmObjVisRes
:
public
AnmObj
{
40
public
:
41
static
AnmObjVisRes
*Construct(
MEMAllocator
*,
size_t
*,
nw4r::g3d::ResAnmVis
,
nw4r::g3d::ResMdl
);
42
43
NW4R_G3D_TYPE_OBJ_DECL(
AnmObjVisRes
);
44
};
45
46
class
AnmObjMatClrRes
:
public
AnmObj
{
47
public
:
48
static
AnmObjMatClrRes
*Construct(
MEMAllocator
*,
size_t
*,
nw4r::g3d::ResAnmClr
,
nw4r::g3d::ResMdl
,
bool
);
49
50
NW4R_G3D_TYPE_OBJ_DECL(
AnmObjMatClrRes
);
51
};
52
53
class
AnmObjTexPatRes
:
public
AnmObj
{
54
public
:
55
static
AnmObjTexPatRes
*Construct(
MEMAllocator
*,
size_t
*,
nw4r::g3d::ResAnmTexPat
,
nw4r::g3d::ResMdl
,
bool
);
56
57
NW4R_G3D_TYPE_OBJ_DECL(
AnmObjTexPatRes
);
58
};
59
60
class
AnmObjTexSrtRes
:
public
AnmObj
{
61
public
:
62
static
AnmObjTexSrtRes
*Construct(
MEMAllocator
*,
size_t
*,
nw4r::g3d::ResAnmTexSrt
,
nw4r::g3d::ResMdl
,
bool
);
63
64
NW4R_G3D_TYPE_OBJ_DECL(
AnmObjTexSrtRes
);
65
};
66
67
class
AnmObjTexSrtOverride
:
public
AnmObj
{
68
public
:
69
static
AnmObjTexSrtOverride
*Construct(
MEMAllocator
*,
size_t
*,
nw4r::g3d::ResMdl
,
int
);
70
71
int
getCount()
const
{
return
count; }
72
73
NW4R_G3D_TYPE_OBJ_DECL(
AnmObjTexSrtOverride
);
74
75
char
pad[0x10];
76
int
count;
77
AnmObj
**arr;
78
};
79
80
class
AnmObjTexPatOverride
:
public
AnmObj
{
81
public
:
82
static
AnmObjTexPatOverride
*Construct(
MEMAllocator
*,
size_t
*,
nw4r::g3d::ResMdl
,
int
);
83
84
int
getCount()
const
{
return
count; }
85
86
NW4R_G3D_TYPE_OBJ_DECL(
AnmObjTexPatOverride
);
87
88
char
pad[0x10];
89
int
count;
90
AnmObj
**arr;
91
};
92
93
class
AnmObjMatClrOverride
:
public
AnmObj
{
94
public
:
95
static
AnmObjMatClrOverride
*Construct(
MEMAllocator
*,
size_t
*,
nw4r::g3d::ResMdl
,
int
);
96
97
int
getCount()
const
{
return
count; }
98
99
NW4R_G3D_TYPE_OBJ_DECL(
AnmObjMatClrOverride
);
100
101
char
pad[0x10];
102
int
count;
103
AnmObj
**arr;
104
};
105
106
}
// namespace g3d
107
}
// namespace nw4r
nw4r::g3d::AnmObjMatClrOverride
Definition
anm_obj.hpp:93
nw4r::g3d::AnmObjMatClrRes
Definition
anm_obj.hpp:46
nw4r::g3d::AnmObjTexPatOverride
Definition
anm_obj.hpp:80
nw4r::g3d::AnmObjTexPatRes
Definition
anm_obj.hpp:53
nw4r::g3d::AnmObjTexSrtOverride
Definition
anm_obj.hpp:67
nw4r::g3d::AnmObjTexSrtRes
Definition
anm_obj.hpp:60
nw4r::g3d::AnmObjVisRes
Definition
anm_obj.hpp:39
nw4r::g3d::AnmObj
Definition
anm_obj.hpp:13
nw4r::g3d::G3dObj
Definition
g3d_obj.hpp:16
nw4r::g3d::ResAnmClr
Definition
res_anm.hpp:37
nw4r::g3d::ResAnmTexPat
Definition
res_anm.hpp:49
nw4r::g3d::ResAnmTexSrt
Definition
res_anm.hpp:62
nw4r::g3d::ResAnmVis
Definition
res_anm.hpp:13
nw4r::g3d::ResMdl
Definition
res_mdl.hpp:38
nw4r::g3d
3D graphics drawing library.
Definition
docgroup.h:10
MEMAllocator
Definition
MEMHeapCommon.h:21
include
lib
nw4r
g3d
anm_obj.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2