Now iterating through the octree rather than the scene graph structure during render, in preparation for occlusion culling

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4084
This commit is contained in:
kearwood
2012-08-30 19:31:38 +00:00
parent 99b6d6771d
commit cee504408a
7 changed files with 59 additions and 7 deletions

View File

@@ -6,11 +6,12 @@
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#ifndef KRAABBTREE_H
#define KRAABBTREE_H
#ifndef KROCTREE_H
#define KROCTREE_H
#import "KREngine-common.h"
#include "KROctreeNode.h"
#include "KRMat4.h"
class KRNode;
@@ -23,11 +24,15 @@ public:
void remove(KRNode *pNode);
void update(KRNode *pNode);
KROctreeNode *getRootNode();
std::set<KRNode *> &getOuterSceneNodes();
private:
KROctreeNode *m_pRootNode;
std::set<KRNode *>m_outerSceneNodes;
//std::set<KRMat4> visibleMVPs;
void shrink();
};
#endif /* defined(KRAABBTREE_H) */
#endif /* defined(KROCTREE_H) */