Files
ss/include/nw4r/g3d/g3d_basic.h
T
robojumper 1180e1f486 m3d (#13)
* 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>
2024-09-12 16:36:34 -04:00

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