mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-16 16:20:53 +00:00
Read BSMultiBoundAABB
This commit is contained in:
parent
77c5882622
commit
5f504688ad
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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> },
|
||||
|
||||
|
@ -78,6 +78,7 @@ namespace Nif
|
||||
RC_BSMaterialEmittanceMultController,
|
||||
RC_BSMeshLODTriShape,
|
||||
RC_BSMultiBound,
|
||||
RC_BSMultiBoundAABB,
|
||||
RC_BSMultiBoundOBB,
|
||||
RC_BSMultiBoundSphere,
|
||||
RC_BSRefractionFirePeriodController,
|
||||
|
Loading…
x
Reference in New Issue
Block a user