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()
|
|
|
|
{
|
2001-09-20 05:08:56 +08:00
|
|
|
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] );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|