Here are other some 010 Templates that may be required:
Color RGBA:
//--------------------------------------
//--- 010 Editor v2.1.3 Binary Template
//
// Purpose: Contains RGB + A colors
//--------------------------------------
struct color
{
ubyte B;
ubyte G;
ubyte R;
ubyte A;
};
Compressed U16
//--------------------------------------
//--- 010 Editor v2.1.3 Binary Template
//
// File: U16, U8 Float
// Author: Glen Rickey
// Revision: 0.01
// Purpose: displays float values of Compressed U16s, U8s
//--------------------------------------
typedef uint16 U16F <read=U16FRead>;
string U16FRead( U16F f )
{
string s;
SPrintf( s, "%f", ConvertU16(f) );
return s;
}
typedef ubyte U8F <read=U8FRead>;
string U8FRead( U8F f )
{
string s;
SPrintf( s, "%f", ConvertU8(f) );
return s;
}
//custom function Converts U16 to Float
float ConvertU16 ( uint16 v)
{
return (v/32767.0f)-1;
//return (((v-0.5f)/32768)-1)* PI
};
//Converts U8 to Float
float ConvertU8 (ubyte v)
{
return (((v-0.5f)/128.0f)-1);// PI;
};
Vector/Matrix
//--------------------------------------
//--- 010 Editor v2.1.3 Binary Template
//
// File: VecMatrix.bt
// Author: Glen Rickey
// Revision: 0.01
// Purpose: Holds vector and matrix definitions
//--------------------------------------
struct V3
{
float x;
float y;
float z;
};
struct V2
{
float x;
float y;
};
struct Matrix34
{
V3 m[4];
};
struct Pos2D
{
V3 Trans;
float Zangle;
};
There are no comments on this page. [Add comment]