Skip to content

Serialization Index

GottaCodeHarder edited this page Nov 19, 2017 · 9 revisions

GTE Files (GT Extension) are serialized in the following way:

  • GameObject -----
    Name Length (as uint)
    Name (as std::string)
    Components Size (as uint)
    Childs Size (as uint)

  • Component Transform -----
    Component Type (as int)
    Local Position (as float3)
    Local Scale (as float3)
    Local Rotation (as Quat)

  • Component Mesh -----
    Component Type (as int)
    Normals Size (as uint)
    Normals (as float3)
    Index Size (as uint)
    Index (as float3)
    Vertex Size (as uint)
    Vertex (as float3)
    UVs (as float2)

  • Component Material -----
    Component Type (as int)
    Texture Buffer (as uint)
    Dimensions (as float2)
    Path Length (as uint)
    Path (as std::string)
    Color (as float3)

  • Component Camera -----
    Component Type (as int)
    Frustum Far Plane (as float)
    Frustum Near Plane (as float)
    Horizontal FOV (as float)
    Vertical FOV (as float)
    Bool Culling (as bool)
    Bool Draw Frustum (as bool)
    Bool Active Camera (asbool)

Clone this wiki locally