refactor: moves isInFrustum from RenderBBox to CoreBBox

This commit is contained in:
Wellinator
2022-07-18 16:11:46 -03:00
parent f651ec76ac
commit 85f4f2e666
4 changed files with 36 additions and 36 deletions
@@ -36,6 +36,9 @@ class CoreBBox {
void print(const std::string& name) const { print(name.c_str()); }
std::string getPrint(const char* name = nullptr) const;
CoreBBoxFrustum isInFrustum(const Plane* frustumPlanes, const M4x4& model,
const float* margins = nullptr) const;
protected:
Vec4 _vertices[8];
};
@@ -25,9 +25,6 @@ class RenderBBox : public CoreBBox {
explicit RenderBBox(const std::vector<CoreBBox>& t_bboxes,
const u32& startIndex, const u32& stopIndex);
CoreBBoxFrustum isInFrustum(const Plane* frustumPlanes, const M4x4& model,
const float* margins = nullptr) const;
CoreBBoxFrustum clipIsInFrustum(const Plane* frustumPlanes,
const M4x4& model) const;
};