1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-17 10:21:11 +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); mData.post(nif);
} }
void BSMultiBoundAABB::read(NIFStream* nif)
{
nif->read(mPosition);
nif->read(mExtents);
}
void BSMultiBoundOBB::read(NIFStream* nif) void BSMultiBoundOBB::read(NIFStream* nif)
{ {
nif->read(mCenter); 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 struct BSMultiBoundOBB : public BSMultiBoundData
{ {
osg::Vec3f mCenter; osg::Vec3f mCenter;

View File

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

View File

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