OpenSceneGraph/src/osgPlugins/flt/TextureMappingPaletteRecord.cpp

48 lines
988 B
C++
Raw Normal View History

2001-01-11 00:32:10 +08:00
// TextureMappingPaletteRecord.cpp
#include "flt.h"
#include "Registry.h"
#include "TextureMappingPaletteRecord.h"
using namespace flt;
////////////////////////////////////////////////////////////////////
//
// TextureMappingPaletteRecord
//
////////////////////////////////////////////////////////////////////
RegisterRecordProxy<TextureMappingPaletteRecord> g_TextureMappingPaletteProxy;
TextureMappingPaletteRecord::TextureMappingPaletteRecord()
{
}
// virtual
TextureMappingPaletteRecord::~TextureMappingPaletteRecord()
{
}
// virtual
void TextureMappingPaletteRecord::endian()
{
STextureMapping *pSMapping = (STextureMapping*)getData();
2001-01-11 00:32:10 +08:00
if (pSMapping)
{
ENDIAN( pSMapping->diIndex );
ENDIAN( pSMapping->diType );
ENDIAN( pSMapping->diWarpFlag );
for(int i=0;i<4;++i)
{
for(int j=0;j<4;++j)
{
ENDIAN( pSMapping->dfMat[i][j] );
}
}
}
}