2023-06-24 00:15:06 +00:00
|
|
|
#ifndef _COBBTREE
|
|
|
|
#define _COBBTREE
|
|
|
|
|
|
|
|
#include "Kyoto/Math/CVector3f.hpp"
|
|
|
|
|
|
|
|
#include "WorldFormat/CCollisionEdge.hpp"
|
|
|
|
|
|
|
|
#include "rstl/vector.hpp"
|
|
|
|
|
|
|
|
class COBBTree {
|
|
|
|
struct SIndexData {
|
2024-10-09 02:35:42 +00:00
|
|
|
rstl::vector< u32 > x0_materials;
|
|
|
|
rstl::vector< u8 > x10_vertMaterials;
|
|
|
|
rstl::vector< u8 > x20_edgeMaterials;
|
|
|
|
rstl::vector< u8 > x30_surfaceMaterials;
|
|
|
|
rstl::vector< CCollisionEdge > x40_edges;
|
|
|
|
rstl::vector< u16 > x50_surfaceIndices;
|
|
|
|
rstl::vector< CVector3f > x60_vertices;
|
2023-06-24 00:15:06 +00:00
|
|
|
SIndexData(CInputStream& in);
|
|
|
|
};
|
2023-10-24 16:24:51 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
COBBTree(CInputStream& in);
|
|
|
|
~COBBTree();
|
2024-10-09 02:35:42 +00:00
|
|
|
|
2023-10-24 16:24:51 +00:00
|
|
|
private:
|
|
|
|
char data[0x8c];
|
2023-06-24 00:15:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _COBBTREE
|