1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-16 16:20:53 +00:00

Read BSMultiBoundAABB

This commit is contained in:
Alexei Kotov 2023-09-20 03:42:59 +03:00
parent 77c5882622
commit 5f504688ad
4 changed files with 16 additions and 0 deletions

View File

@ -542,6 +542,12 @@ namespace Nif
mData.post(nif);
}
void BSMultiBoundAABB::read(NIFStream* nif)
{
nif->read(mPosition);
nif->read(mExtents);
}
void BSMultiBoundOBB::read(NIFStream* nif)
{
nif->read(mCenter);

View File

@ -375,6 +375,14 @@ namespace Nif
{
};
struct BSMultiBoundAABB : public BSMultiBoundData
{
osg::Vec3f mPosition;
osg::Vec3f mExtents;
void read(NIFStream* nif) override;
};
struct BSMultiBoundOBB : public BSMultiBoundData
{
osg::Vec3f mCenter;

View File

@ -206,6 +206,7 @@ namespace Nif
// Bethesda bounds
{ "BSBound", &construct<BSBound, RC_BSBound> },
{ "BSMultiBound", &construct<BSMultiBound, RC_BSMultiBound> },
{ "BSMultiBoundAABB", &construct<BSMultiBoundAABB, RC_BSMultiBoundAABB> },
{ "BSMultiBoundOBB", &construct<BSMultiBoundOBB, RC_BSMultiBoundOBB> },
{ "BSMultiBoundSphere", &construct<BSMultiBoundSphere, RC_BSMultiBoundSphere> },

View File

@ -78,6 +78,7 @@ namespace Nif
RC_BSMaterialEmittanceMultController,
RC_BSMeshLODTriShape,
RC_BSMultiBound,
RC_BSMultiBoundAABB,
RC_BSMultiBoundOBB,
RC_BSMultiBoundSphere,
RC_BSRefractionFirePeriodController,