metaforce/Runtime/Graphics/CMetroidModelInstance.cpp

25 lines
594 B
C++
Raw Normal View History

2016-07-26 22:05:59 +00:00
#include "CMetroidModelInstance.hpp"
#include "CModel.hpp"
namespace urde
{
2016-08-03 21:53:03 +00:00
CMetroidModelInstance::CMetroidModelInstance(CBooModel* inst)
: x0_visorFlags(0), m_instance(inst)
{
x34_aabb = inst->x20_aabb;
}
2016-07-26 22:05:59 +00:00
CMetroidModelInstance::CMetroidModelInstance
2016-07-31 02:06:47 +00:00
(const void* modelHeader, CBooModel* inst)
: x0_visorFlags(hecl::SBig(*static_cast<const u32*>(modelHeader))), m_instance(inst)
2016-07-26 22:05:59 +00:00
{
athena::io::MemoryReader r(static_cast<const u8*>(modelHeader) + 4, INT32_MAX);
x4_xf.read34RowMajor(r);
x34_aabb.readBoundingBoxBig(r);
}
CMetroidModelInstance::~CMetroidModelInstance() {}
}