74 lines
1.4 KiB
C++
74 lines
1.4 KiB
C++
// LodRecord.cpp
|
|
|
|
#include "flt.h"
|
|
#include "Registry.h"
|
|
#include "LodRecord.h"
|
|
|
|
using namespace flt;
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// LodRecord
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
RegisterRecordProxy<LodRecord> g_LodProxy;
|
|
|
|
LodRecord::LodRecord()
|
|
{
|
|
}
|
|
|
|
|
|
// virtual
|
|
LodRecord::~LodRecord()
|
|
{
|
|
}
|
|
|
|
|
|
void LodRecord::endian()
|
|
{
|
|
SLevelOfDetail *pSLod = (SLevelOfDetail*)getData();
|
|
|
|
ENDIAN( pSLod->dfSwitchInDist );
|
|
ENDIAN( pSLod->dfSwitchOutDist );
|
|
ENDIAN( pSLod->iSpecialId_1 );
|
|
ENDIAN( pSLod->iSpecialId_2 );
|
|
ENDIAN( pSLod->diFlags );
|
|
pSLod->Center.endian();
|
|
ENDIAN( pSLod->dfTransitionRange );
|
|
}
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// OldLodRecord
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
RegisterRecordProxy<OldLodRecord> g_OldLodProxy;
|
|
|
|
OldLodRecord::OldLodRecord()
|
|
{
|
|
}
|
|
|
|
|
|
// virtual
|
|
OldLodRecord::~OldLodRecord()
|
|
{
|
|
}
|
|
|
|
|
|
void OldLodRecord::endian()
|
|
{
|
|
SOldLOD *pSLod = (SOldLOD*)getData();
|
|
|
|
ENDIAN( pSLod->dwSwitchInDist );
|
|
ENDIAN( pSLod->dwSwitchOutDist );
|
|
ENDIAN( pSLod->iSpecialId_1 );
|
|
ENDIAN( pSLod->iSpecialId_2 );
|
|
ENDIAN( pSLod->diFlags );
|
|
ENDIAN( pSLod->Center[0] );
|
|
ENDIAN( pSLod->Center[1] );
|
|
ENDIAN( pSLod->Center[2] );
|
|
}
|