OpenSceneGraph/src/osgPlugins/flt/InstanceRecords.cpp

61 lines
1.2 KiB
C++
Raw Normal View History

2001-01-11 00:32:10 +08:00
// InstanceRecords.cpp
#include "flt.h"
#include "Registry.h"
#include "InstanceRecords.h"
using namespace flt;
////////////////////////////////////////////////////////////////////
//
// InstanceDefinitionRecord
//
////////////////////////////////////////////////////////////////////
RegisterRecordProxy<InstanceDefinitionRecord> g_InstanceDefinitionProxy;
InstanceDefinitionRecord::InstanceDefinitionRecord()
{
}
// virtual
InstanceDefinitionRecord::~InstanceDefinitionRecord()
{
}
void InstanceDefinitionRecord::endian()
{
SInstanceDefinition *pSInstDef = (SInstanceDefinition*)getData();
ENDIAN( pSInstDef->iInstDefNumber );
2001-01-11 00:32:10 +08:00
}
////////////////////////////////////////////////////////////////////
//
// InstanceReferenceRecord
//
////////////////////////////////////////////////////////////////////
RegisterRecordProxy<InstanceReferenceRecord> g_InstanceReferenceProxy;
InstanceReferenceRecord::InstanceReferenceRecord()
{
}
// virtual
InstanceReferenceRecord::~InstanceReferenceRecord()
{
}
void InstanceReferenceRecord::endian()
{
SInstanceReference *pSInstRef = (SInstanceReference*)getData();
ENDIAN( pSInstRef->iInstDefNumber );
2001-01-11 00:32:10 +08:00
}