mirror of
https://github.com/zeldaret/ss
synced 2026-06-02 10:10:13 -04:00
1180e1f486
* Initial M3d Pass * `m_bmdl` and `m_bline` left --------- Co-authored-by: elijah-thomas774 <elijahthomas774@gmail.com> Co-authored-by: Elijah Thomas <42302100+elijah-thomas774@users.noreply.github.com>
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
#ifndef NW4R_G3D_BASIC_H
|
|
#define NW4R_G3D_BASIC_H
|
|
#include "nw4r/math/math_types.h"
|
|
#include "nw4r/g3d/g3d_anmchr.h"
|
|
|
|
namespace nw4r
|
|
{
|
|
namespace g3d
|
|
{
|
|
namespace detail
|
|
{
|
|
namespace WorldMtxAttr
|
|
{
|
|
inline bool IsScaleOne(u32 flags)
|
|
{
|
|
return (flags & 0x40000000);
|
|
}
|
|
|
|
inline u32 AnmScaleOne(u32 flags)
|
|
{
|
|
return (flags | 0x40000000);
|
|
}
|
|
|
|
inline u32 AnmNotScaleOne(u32 flags)
|
|
{
|
|
return (flags & 0x3fffffff);
|
|
}
|
|
|
|
inline u32 AnmScaleUniform(u32 flags)
|
|
{
|
|
return (flags | 0x10000000);
|
|
}
|
|
|
|
inline u32 AnmNotScaleUniform(u32 flags)
|
|
{
|
|
return (flags & 0x0fffffff);
|
|
}
|
|
}
|
|
|
|
namespace dcc
|
|
{
|
|
u32 CalcWorldMtx_Basic(math::MTX34 *, math::VEC3 *, const math::MTX34 *, const math::VEC3 *, u32, const ChrAnmResult *);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|