Logo Search packages:      
Sourcecode: earth3d version File versions  Download package

void MapTileTreeNode::checkThisInterpolates (  ) 

Checks the interpolation state of its cores. Needs to be called at every frame to see if there was a completed download between these frames

Definition at line 501 of file mapTileTreeNode.cpp.

References getThisInterpolates(), interpolationcounter, and thisInterpolates.

                                            {
  bool core0i = false;
  bool core1i = false;
  if (cores[0]) if (cores[0]->getThisInterpolates()) core0i = true;
  if (cores[1]) if (cores[1]->getThisInterpolates()) core1i = true;

  /* Start interpolation of this node if texture and heightfield have the new data completed */
  if (core0i && core1i) {
    if (thisInterpolates==false) {
      thisInterpolates = true;
//       interpolationcounter = INTERPOLATIONFRAMES;
    }
    else { // see if we have to finish interpolation now
      if (interpolationcounter<=0) {
//    cores[0]->finishInterpolation();
//    cores[1]->finishInterpolation();
//    thisInterpolates = false;
      }
    }
  }
  else {
    thisInterpolates = false;
  }
}


Generated by  Doxygen 1.6.0   Back to index