mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-17 10:21:11 +00:00
Read BSMultiBoundAABB
This commit is contained in:
parent
77c5882622
commit
5f504688ad
@ -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);
|
||||||
|
@ -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;
|
||||||
|
@ -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> },
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user