mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
c13934708a
* 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
21 lines
581 B
C++
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); |