[Structs] Fix some vertex structs

This commit is contained in:
momo5502 2017-01-04 00:03:03 +01:00
parent 4c9d394958
commit 25b610d3dd

View File

@ -1554,14 +1554,31 @@ namespace Game
XSurfaceCollisionTree *collisionTree;
};
union PackedTexCoords
{
unsigned int packed;
};
union GfxColor
{
unsigned int packed;
char array[4];
unsigned char uArray[4];
};
union PackedUnitVec
{
unsigned int packed;
};
struct GfxPackedVertex
{
float x;
float y;
float z;
DWORD color;
WORD texCoords[2];
float normal[3];
float xyz[3];
float binormalSign;
GfxColor color;
PackedTexCoords texCoord;
PackedUnitVec normal;
PackedUnitVec tangent;
};
struct XSurfaceVertexInfo
@ -2830,18 +2847,6 @@ namespace Game
int *leafRefs;
};
union GfxColor
{
unsigned int packed;
char array[4];
unsigned char uArray[4];
};
union PackedUnitVec
{
unsigned int packed;
};
struct GfxWorldVertex
{
float xyz[3];