CMake autodetecting boost.
Added KRDataBlock to CMakeLists
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#define KROCTREENODE_H
|
||||
|
||||
#include "KREngine-common.h"
|
||||
#include "KRHitInfo.h"
|
||||
#include "public/hitinfo.h"
|
||||
|
||||
class KRNode;
|
||||
|
||||
@@ -19,45 +19,45 @@ public:
|
||||
KROctreeNode(KROctreeNode *parent, const AABB &bounds);
|
||||
KROctreeNode(KROctreeNode *parent, const AABB &bounds, int iChild, KROctreeNode *pChild);
|
||||
~KROctreeNode();
|
||||
|
||||
|
||||
KROctreeNode **getChildren();
|
||||
std::set<KRNode *> &getSceneNodes();
|
||||
|
||||
|
||||
void add(KRNode *pNode);
|
||||
void remove(KRNode *pNode);
|
||||
void update(KRNode *pNode);
|
||||
|
||||
|
||||
AABB getBounds();
|
||||
|
||||
|
||||
KROctreeNode *getParent();
|
||||
void setChildNode(int iChild, KROctreeNode *pChild);
|
||||
int getChildIndex(KRNode *pNode);
|
||||
AABB getChildBounds(int iChild);
|
||||
void trim();
|
||||
bool isEmpty() const;
|
||||
|
||||
|
||||
bool canShrinkRoot() const;
|
||||
KROctreeNode *stripChild();
|
||||
|
||||
|
||||
void beginOcclusionQuery();
|
||||
void endOcclusionQuery();
|
||||
|
||||
|
||||
|
||||
|
||||
GLuint m_occlusionQuery;
|
||||
bool m_occlusionTested;
|
||||
bool m_activeQuery;
|
||||
|
||||
bool lineCast(const Vector3 &v0, const Vector3 &v1, KRHitInfo &hitinfo, unsigned int layer_mask);
|
||||
bool rayCast(const Vector3 &v0, const Vector3 &dir, KRHitInfo &hitinfo, unsigned int layer_mask);
|
||||
bool sphereCast(const Vector3 &v0, const Vector3 &v1, float radius, KRHitInfo &hitinfo, unsigned int layer_mask);
|
||||
|
||||
bool lineCast(const Vector3 &v0, const Vector3 &v1, HitInfo &hitinfo, unsigned int layer_mask);
|
||||
bool rayCast(const Vector3 &v0, const Vector3 &dir, HitInfo &hitinfo, unsigned int layer_mask);
|
||||
bool sphereCast(const Vector3 &v0, const Vector3 &v1, float radius, HitInfo &hitinfo, unsigned int layer_mask);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
AABB m_bounds;
|
||||
|
||||
|
||||
KROctreeNode *m_parent;
|
||||
KROctreeNode *m_children[8];
|
||||
|
||||
|
||||
std::set<KRNode *>m_sceneNodes;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user