bbox fixes
This commit is contained in:
@@ -21,10 +21,10 @@ class BBox : public CoreBBox {
|
||||
public:
|
||||
BBox(const BBox& t_bbox);
|
||||
explicit BBox(CoreBBox** t_bboxes, const u32& count);
|
||||
explicit BBox(Vec4* t_vertices, u32* faces, u32 t_count);
|
||||
explicit BBox(Vec4* t_vertices, u32 t_count);
|
||||
explicit BBox(const Vec4* t_vertices, const u32* faces, const u32& t_count);
|
||||
explicit BBox(const Vec4* t_vertices, const u32& t_count);
|
||||
explicit BBox(const BBox& t_bbox, const M4x4& t_matrix);
|
||||
explicit BBox(Vec4* t_vertices);
|
||||
explicit BBox(const Vec4* t_vertices);
|
||||
|
||||
static BBox create(const Vec4& center, const float& size);
|
||||
|
||||
|
||||
@@ -32,11 +32,11 @@ class StaPipBagPackage {
|
||||
CoreBBoxFrustum isInFrustum;
|
||||
|
||||
/**
|
||||
* We are creating StaPipBagPackagesBBox which checks CoreBBoxBBox for every
|
||||
* We are creating StaPipBagPackagesBBox which checks CoreBBox for every
|
||||
* maxVertCount / 3. So this variable is index of starting
|
||||
* StaPipBagPackagesBBox's CoreBBoxBBox. If package have <= maxVertCount / 3
|
||||
* StaPipBagPackagesBBox's CoreBBox. If package have <= maxVertCount / 3
|
||||
* verts, we will need only single (starting) bbox. if package have
|
||||
* maxVertCount verts, we will calculate CoreBBoxBBox from 3
|
||||
* maxVertCount verts, we will calculate CoreBBox from 3
|
||||
* StaPipBagPackagesBBox's bboxes.
|
||||
*/
|
||||
u32 indexOf1By3BBox;
|
||||
|
||||
@@ -24,9 +24,10 @@ class CoreBBox {
|
||||
public:
|
||||
CoreBBox();
|
||||
CoreBBox(const CoreBBox& t_bbox);
|
||||
explicit CoreBBox(Vec4* t_vertices, u32* faces, u32 t_count);
|
||||
explicit CoreBBox(Vec4* t_vertices, u32 t_count);
|
||||
explicit CoreBBox(Vec4* t_vertices);
|
||||
explicit CoreBBox(const Vec4* t_vertices, const u32* faces,
|
||||
const u32& t_count);
|
||||
explicit CoreBBox(const Vec4* t_vertices, const u32& t_count);
|
||||
explicit CoreBBox(const Vec4* t_vertices);
|
||||
explicit CoreBBox(CoreBBox** t_bboxes, const u32& count);
|
||||
explicit CoreBBox(const std::vector<CoreBBox>& t_bboxes,
|
||||
const u32& startIndex, const u32& stopIndex);
|
||||
|
||||
@@ -18,9 +18,10 @@ namespace Tyra {
|
||||
/** Bounding box */
|
||||
class RenderBBox : public CoreBBox {
|
||||
public:
|
||||
explicit RenderBBox(Vec4* t_vertices, u32* faces, u32 t_count);
|
||||
explicit RenderBBox(Vec4* t_vertices, u32 t_count);
|
||||
explicit RenderBBox(Vec4* t_vertices);
|
||||
explicit RenderBBox(const Vec4* t_vertices, const u32* faces,
|
||||
const u32& t_count);
|
||||
explicit RenderBBox(const Vec4* t_vertices, const u32& t_count);
|
||||
explicit RenderBBox(const Vec4* t_vertices);
|
||||
explicit RenderBBox(CoreBBox** t_bboxes, const u32& count);
|
||||
explicit RenderBBox(const std::vector<CoreBBox>& t_bboxes,
|
||||
const u32& startIndex, const u32& stopIndex);
|
||||
|
||||
Reference in New Issue
Block a user