EvilEngine/WIRE: Difference between revisions

no edit summary
m (Seil moved page WIRE to EvilEngine/WIRE)
No edit summary
 
Line 13:
 
==Format==
'''===zWireframeAsset'''===
<source lang=cpp>
class zWireframeAsset
{
public:
unsigned int size;
unsigned int vertexCount;
unsigned int lineCount;
zWireframeVertex* vertices;
''' zWireframeLine'''* lines;
};
</source>
 
{| class="wikitable"
|-
! Offset !! Type !! Variable !! Description
|-
| 0x00 || uintu32 || '''size''' || Total file size.
|-
| 0x04 || uintu32 || '''vertexCount''' ||
|-
| 0x08 || uintu32 || '''lineCount''' ||
|-
| 0x0C || uintu32 || '''hashID''' ||
|-
| 0x10 || uintu32 || '''hashID2''' ||
|-
| 0x14 || [[Vector3]]zWireframeVertex*[vertexCount] || '''vertices''' ||
|-
| || zWireframeLine*[lineCount] || '''lines''' ||
|}
 
===zWireframeVertex===
'''zWireframeLine'''
<source lang=cpp>
class zWireframeVertex
{
public:
float x;
float y;
float z;
};
</source>
 
{| class="wikitable"
|-
! Offset !! Type !! Variable !! Description
|-
| 0x00 || [[Vector3]] || '''xyz''' || Position
|}
 
===zWireframeLine===
<source lang=cpp>
class zWireframeLine
{
public:
unsigned short start;
unsigned short end;
};
</source>
 
{| class="wikitable"
|-
! Offset !! Type !! Variable !! Description
|-
| 0x00 || shortu16 || '''start''' ||
|-
| 0x02 || shortu16 || '''end''' ||
|}