LandVisibilityPatch.cpp File Reference

#include <land/LandVisibilityPatch.h>
#include <land/VisibilityPatchGrid.h>
#include <landscapemap/LandscapeMaps.h>
#include <landscapemap/GraphicalHeightMap.h>
#include <landscape/GraphicalLandscapeMap.h>
#include <graph/OptionsDisplay.h>
#include <graph/MainCamera.h>
#include <client/ScorchedClient.h>
#include <common/Logger.h>
#include <GLEXT/GLStateExtension.h>
#include <GLEXT/GLInfo.h>
#include <GLW/GLWFont.h>

Go to the source code of this file.

Functions

static float getHeight (int x, int y)
static float calculateError (int x1, int x2, int y1, int y2, float x1y1, float x2y2, float x1y2, float x2y1)


Function Documentation

static float calculateError ( int  x1,
int  x2,
int  y1,
int  y2,
float  x1y1,
float  x2y2,
float  x1y2,
float  x2y1 
) [static]

Definition at line 58 of file LandVisibilityPatch.cpp.

References getHeight(), and MAX.

Referenced by calculateError(), LandVisibilityPatch::calculateErrors(), and Water2::generate().

static float getHeight ( int  x,
int  y 
) [static]

Definition at line 47 of file LandVisibilityPatch.cpp.

References GraphicalLandscapeMap::getHeightData(), ScorchedContext::getLandscapeMaps(), and ScorchedClient::instance().

Referenced by ImageModifier::addHeightToBitmap(), calculateError(), LandVisibilityPatch::calculateErrors(), WaterWaves::constructLines(), DeformTextures::deformLandscape(), MissileActionRenderer::draw(), TargetRendererImplTank::drawArrow(), TargetRendererImplTank::drawInfo(), TargetRendererImplTank::drawLife(), LandSurround::generateList(), MovementMap::limitTexture(), TankAICurrentMove::makeMoveShot(), MovementMap::movementTexture(), PlacementTankPosition::placeTank(), ComsSyncCheckMessage::readMessage(), InfoMap::showGrid(), and InfoMap::showHeightBands().


Generated on Mon Feb 16 15:14:56 2009 for Scorched3D by  doxygen 1.5.3