jak-project/goalc/build_level/collide_pack.h
water111 c13934708a
Initial implementation of custom level tool (#1482)
* wip

* learning about colors

* gltf node stuff working

* cleanup

* support textures

* bvh generation seems reasonable

* tree layout

* frag packer, untested and doesnt do real stripping yet

* temp

* working collide frags

* handle bad inputs better

* clean up

* format

* include

* another include

* reorganize for release build use
2022-06-19 20:44:07 -04:00

21 lines
581 B
C++

#pragma once
#include "goalc/build_level/collide_bvh.h"
struct CollideFragMeshData {
math::Vector4f bsphere; // not part of the collide frag, but is part of the drawable wrapping it
std::vector<u8> packed_data;
u32 strip_data_len;
u32 poly_count;
math::Vector<s32, 3> base_trans_xyz_s32;
u8 vertex_count;
u8 vertex_data_qwc;
u8 total_qwc;
};
struct CollideFragMeshDataArray {
std::vector<CollideFragMeshData> packed_frag_data;
std::vector<PatSurface> pats;
};
CollideFragMeshDataArray pack_collide_frags(const std::vector<collide::CollideFrag>& frag_data);