2001-01-11 00:32:10 +08:00
|
|
|
// FltRecords.h
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __FLT_RECORDS_H
|
|
|
|
#define __FLT_RECORDS_H
|
|
|
|
|
|
|
|
#include "flt.h"
|
|
|
|
|
|
|
|
namespace flt {
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-09-20 05:08:56 +08:00
|
|
|
typedef struct MorphingVertexListTag
|
2001-01-11 00:32:10 +08:00
|
|
|
{
|
2001-09-20 05:08:56 +08:00
|
|
|
SRecHeader RecHeader;
|
|
|
|
int32 diAOffset; // Byte offset to the actual vertex record in the vertex table.
|
|
|
|
int32 diMOffset; // Byte offset to the morph vertex record in the vertex table.
|
|
|
|
} SMorphingVertexList; // see OF doc
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct ReplicateTag
|
|
|
|
{
|
2001-09-20 05:08:56 +08:00
|
|
|
SRecHeader RecHeader;
|
|
|
|
int16 iNumber; // Number of replications
|
|
|
|
int16 iSpare; // Spare for fullword alignment
|
2001-01-11 00:32:10 +08:00
|
|
|
} SReplicate;
|
|
|
|
|
|
|
|
/*
|
2001-09-20 05:08:56 +08:00
|
|
|
typedef struct ReferenceTag // OBSOLETE
|
2001-01-11 00:32:10 +08:00
|
|
|
{
|
2001-09-20 05:08:56 +08:00
|
|
|
SRecHeader RecHeader;
|
|
|
|
int16 iSpare; // Spare
|
|
|
|
int16 iNumber; // Instance definition number
|
2001-01-11 00:32:10 +08:00
|
|
|
} SReference;
|
|
|
|
|
|
|
|
|
2001-09-20 05:08:56 +08:00
|
|
|
typedef struct DefinitionTag // OBSOLETE
|
2001-01-11 00:32:10 +08:00
|
|
|
{
|
2001-09-20 05:08:56 +08:00
|
|
|
SRecHeader RecHeader;
|
|
|
|
int16 iSpare; // Spare
|
|
|
|
int16 iNumber; // Instance definition number
|
2001-01-11 00:32:10 +08:00
|
|
|
} SDefinition;
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
typedef struct ColorTableTag
|
|
|
|
{
|
2001-09-20 05:08:56 +08:00
|
|
|
SRecHeader RecHeader;
|
|
|
|
char szReserved[128];// Reserved
|
|
|
|
color32 Colors[1024]; // Array of brightest RGB of color 0 - 1024
|
2001-01-11 00:32:10 +08:00
|
|
|
} SColorTable;
|
|
|
|
|
|
|
|
// this record is sometimes immediately followed by a: int32 numberOfColorNames
|
|
|
|
// and then the specified number of ColorNames as described in the structure below
|
|
|
|
// to check if such a list exist: compare RecHeaderBuff.wLength with sizeof(SColorTable)
|
|
|
|
|
|
|
|
typedef struct ColorNameListTag
|
|
|
|
{
|
2001-09-20 05:08:56 +08:00
|
|
|
uint16 wEntryLength;
|
|
|
|
int16 iReserved_1;
|
|
|
|
int16 iEntryIndex;
|
|
|
|
int16 iReserved_2;
|
|
|
|
char *szName; // calc length of string from wEntryLength
|
2001-01-11 00:32:10 +08:00
|
|
|
} SColorNameList;
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
typedef struct ComponentTag
|
|
|
|
{
|
2001-09-20 05:08:56 +08:00
|
|
|
float32 sfRed; // red component of material
|
|
|
|
float32 sfGreen; // green component of material
|
|
|
|
float32 sfBlue; // blue component of material
|
2001-01-11 00:32:10 +08:00
|
|
|
} SComponent;
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; // end namespace flt
|
|
|
|
|
|
|
|
#endif // __FLT_RECORDS_H
|
|
|
|
|