1
#ifndef __PagingLandScapeOcclusionSWTraversal_H
2
#define __PagingLandScapeOcclusionSWTraversal_H
4
#include "OgrePagingLandScapePrerequisites.h"
5
#include "OgrePagingLandScapeOctreeCamera.h"
7
#include "OgrePagingLandScapeOcclusionTraversal.h"
11
//-----------------------------------------------------------------------
12
// TREE TRAVERSAL classes
13
// a OctreeNode with Geometry objects in the leaves
14
// and a TreeNodeData struct at every node
15
//-----------------------------------------------------------------------
16
// Basic Occlusion query use : stop and wait query result Culling
17
class SWTraversal : public Traversal
22
PagingLandScapeOctreeCamera::Visibility mCurrentVisibility;
27
SWTraversal (Occlusion& o);
29
virtual void onTree(PagingLandScapeOctree&, VisibleObjectsBoundsInfo * const visibleBounds );
30
virtual void onLeaf(PagingLandScapeOctreeNode&, VisibleObjectsBoundsInfo * const visibleBounds );
31
bool isVisible(OcclusionElement & n);
32
void traverseChildren(PagingLandScapeOctree & n, VisibleObjectsBoundsInfo * const visibleBounds );
36
#endif //PagingLandScapeOcclusionSWTraversal