nuclear@3: #include nuclear@3: #include nuclear@3: #include "scene.h" nuclear@3: nuclear@3: #ifdef __GNUC__ nuclear@3: #define PACKED __attribute__((packed)) nuclear@3: #endif nuclear@3: nuclear@3: nuclear@3: struct header { nuclear@3: char magic[10]; nuclear@3: int fmt_ver; nuclear@3: } PACKED; nuclear@3: nuclear@3: struct vertex { nuclear@3: char flags; nuclear@3: float pos[3]; nuclear@3: char bone_id; /* -1 means no bone */ nuclear@3: char ref_count; nuclear@3: } PACKED; nuclear@3: nuclear@3: struct triangle { nuclear@3: uint16_t flags; nuclear@3: uint16_t v[3]; nuclear@3: float vnorm[3][3]; nuclear@3: float s[3]; nuclear@3: float t[3]; nuclear@3: unsigned char smoothing_group; nuclear@3: unsigned char group_idx; nuclear@3: } PACKED; nuclear@3: nuclear@3: