From 78e29455c5cb4acce769498a5a32be6a3c6085b4 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 16:00:07 +0000 Subject: Fixing up faulty references to class "Point" to "IcePoint" --- Opcode/OPC_OptimizedTree.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Opcode/OPC_OptimizedTree.cpp') diff --git a/Opcode/OPC_OptimizedTree.cpp b/Opcode/OPC_OptimizedTree.cpp index aed4f64..e2abe60 100644 --- a/Opcode/OPC_OptimizedTree.cpp +++ b/Opcode/OPC_OptimizedTree.cpp @@ -348,7 +348,7 @@ bool AABBNoLeafTree::Build(AABBTree* tree) return true; } -inline_ void ComputeMinMax(Point& min, Point& max, const VertexPointers& vp) +inline_ void ComputeMinMax(IcePoint& min, IcePoint& max, const VertexPointers& vp) { // Compute triangle's AABB = a leaf box #ifdef OPC_USE_FCOMI // a 15% speedup on my machine, not much @@ -384,8 +384,8 @@ bool AABBNoLeafTree::Refit(const MeshInterface* mesh_interface) // Bottom-up update VertexPointers VP; - Point Min,Max; - Point Min_,Max_; + IcePoint Min,Max; + IcePoint Min_,Max_; udword Index = mNbNodes; while(Index--) { @@ -476,8 +476,8 @@ bool AABBNoLeafTree::Walk(GenericWalkingCallback callback, void* user_data) cons // a single extents. While extents would be the biggest, the center wouldn't. #define FIND_MAX_VALUES \ /* Get max values */ \ - Point CMax(MIN_FLOAT, MIN_FLOAT, MIN_FLOAT); \ - Point EMax(MIN_FLOAT, MIN_FLOAT, MIN_FLOAT); \ + IcePoint CMax(MIN_FLOAT, MIN_FLOAT, MIN_FLOAT); \ + IcePoint EMax(MIN_FLOAT, MIN_FLOAT, MIN_FLOAT); \ for(udword i=0;iCMax.x) CMax.x = fabsf(Nodes[i].mAABB.mCenter.x); \ @@ -494,7 +494,7 @@ bool AABBNoLeafTree::Walk(GenericWalkingCallback callback, void* user_data) cons if(!gFixQuantized) nbe++; \ \ /* Compute quantization coeffs */ \ - Point CQuantCoeff, EQuantCoeff; \ + IcePoint CQuantCoeff, EQuantCoeff; \ CQuantCoeff.x = CMax.x!=0.0f ? float((1<