mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 18:15:26 +02:00
cleanup for code review
This commit is contained in:
parent
778820edb4
commit
db9a4d6b8f
5 changed files with 2 additions and 11 deletions
|
@ -271,10 +271,7 @@ void OctreeQueryNode::dumpOutOfView() {
|
||||||
int outOfView = 0;
|
int outOfView = 0;
|
||||||
OctreeElementBag tempBag;
|
OctreeElementBag tempBag;
|
||||||
ViewFrustum viewCopy;
|
ViewFrustum viewCopy;
|
||||||
{
|
copyCurrentViewFrustum(viewCopy);
|
||||||
QMutexLocker viewLocker(&_viewMutex);
|
|
||||||
viewCopy = _currentViewFrustum;
|
|
||||||
}
|
|
||||||
while (OctreeElementPointer elementToCheck = elementBag.extract()) {
|
while (OctreeElementPointer elementToCheck = elementBag.extract()) {
|
||||||
if (elementToCheck->isInView(viewCopy)) {
|
if (elementToCheck->isInView(viewCopy)) {
|
||||||
tempBag.insert(elementToCheck);
|
tempBag.insert(elementToCheck);
|
||||||
|
|
|
@ -109,8 +109,6 @@ public:
|
||||||
OctreeSceneStats* stats = IGNORE_SCENE_STATS,
|
OctreeSceneStats* stats = IGNORE_SCENE_STATS,
|
||||||
JurisdictionMap* jurisdictionMap = IGNORE_JURISDICTION_MAP,
|
JurisdictionMap* jurisdictionMap = IGNORE_JURISDICTION_MAP,
|
||||||
OctreeElementExtraEncodeData* extraEncodeData = NULL) :
|
OctreeElementExtraEncodeData* extraEncodeData = NULL) :
|
||||||
viewFrustum(),
|
|
||||||
lastViewFrustum(),
|
|
||||||
lastViewFrustumSent(lastViewFrustumSent),
|
lastViewFrustumSent(lastViewFrustumSent),
|
||||||
maxEncodeLevel(maxEncodeLevel),
|
maxEncodeLevel(maxEncodeLevel),
|
||||||
maxLevelReached(0),
|
maxLevelReached(0),
|
||||||
|
|
|
@ -22,8 +22,7 @@
|
||||||
|
|
||||||
OctreeRenderer::OctreeRenderer() :
|
OctreeRenderer::OctreeRenderer() :
|
||||||
_tree(NULL),
|
_tree(NULL),
|
||||||
_managedTree(false),
|
_managedTree(false)
|
||||||
_viewFrustum()
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,6 @@ public:
|
||||||
gpu::Batch* batch = nullptr) :
|
gpu::Batch* batch = nullptr) :
|
||||||
_context(context),
|
_context(context),
|
||||||
_renderer(renderer),
|
_renderer(renderer),
|
||||||
_viewFrustums(),
|
|
||||||
_sizeScale(sizeScale),
|
_sizeScale(sizeScale),
|
||||||
_boundaryLevelAdjust(boundaryLevelAdjust),
|
_boundaryLevelAdjust(boundaryLevelAdjust),
|
||||||
_renderMode(renderMode),
|
_renderMode(renderMode),
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <glm/gtc/quaternion.hpp>
|
#include <glm/gtc/quaternion.hpp>
|
||||||
|
|
||||||
//#include <GLMHelpers.h>
|
|
||||||
|
|
||||||
#include "AABox.h"
|
#include "AABox.h"
|
||||||
#include "AACube.h"
|
#include "AACube.h"
|
||||||
#include "CubeProjectedPolygon.h"
|
#include "CubeProjectedPolygon.h"
|
||||||
|
|
Loading…
Reference in a new issue