OpenSceneGraph/src/osgPlugins/flt/TextureMappingPaletteRecord.cpp
2001-09-19 21:08:56 +00:00

48 lines
988 B
C++

// 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();
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] );
}
}
}
}