2017-08-01 14:30:58 +02:00
|
|
|
|
|
|
|
#ifndef B3_BVH_SUBTREE_INFO_DATA_H
|
|
|
|
#define B3_BVH_SUBTREE_INFO_DATA_H
|
|
|
|
|
|
|
|
typedef struct b3BvhSubtreeInfoData b3BvhSubtreeInfoData_t;
|
|
|
|
|
|
|
|
struct b3BvhSubtreeInfoData
|
|
|
|
{
|
|
|
|
//12 bytes
|
2019-01-03 14:26:51 +01:00
|
|
|
unsigned short int m_quantizedAabbMin[3];
|
|
|
|
unsigned short int m_quantizedAabbMax[3];
|
2017-08-01 14:30:58 +02:00
|
|
|
//4 bytes, points to the root of the subtree
|
2019-01-03 14:26:51 +01:00
|
|
|
int m_rootNodeIndex;
|
2017-08-01 14:30:58 +02:00
|
|
|
//4 bytes
|
2019-01-03 14:26:51 +01:00
|
|
|
int m_subtreeSize;
|
|
|
|
int m_padding[3];
|
2017-08-01 14:30:58 +02:00
|
|
|
};
|
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
#endif //B3_BVH_SUBTREE_INFO_DATA_H
|