]> git.mxchange.org Git - flightgear.git/commit
Mathias Fröhlich:
authorehofman <ehofman>
Sun, 14 Aug 2005 12:57:12 +0000 (12:57 +0000)
committerehofman <ehofman>
Sun, 14 Aug 2005 12:57:12 +0000 (12:57 +0000)
commit7b824755ee96b8db4240ca9999570f3c7bacdad7
tree14e406fa8ca318e0764ee980681bd6a2b4e5f4bb
parent397a15c829beb90aecda57b56884570519e6c3e8
Mathias Fröhlich:

I have prepared a patch that:
- Introduces a FGTileMgr::scenery_available method which asks the tilemanager
  if scenery for a given range around a lat/lon pair is already loaded and make
  use of that method at some -9999 meter checks.
- Introduces a FGScenery::get_elevation_m method which queries the altitude at
  a given position. In constrast to the groundcache functions this is the best
  choice if you ask for one *single* altitude value. Make use of that thing in
  AI/ATC classes and for the current views ground level. At the current views
  part the groundcache is reused if possible.
- The computation of the 'current groundlevel' is no longer done on the
  tilemanagers update since the required functions are now better seperated.

Alltogether it eliminates somehow redundant terrain level computations which
are now superseeded by that more finegrained functions and the existence of
the groundcache. Additionally it introduces an api to commonly required
functions which was very complex to do prevously.
17 files changed:
src/AIModel/AIAircraft.cxx
src/ATC/AILocalTraffic.cxx
src/Cockpit/cockpit.cxx
src/FDM/ExternalNet/ExternalNet.cxx
src/FDM/ExternalPipe/ExternalPipe.cxx
src/FDM/SP/ADA.cxx
src/FDM/flight.cxx
src/Main/fg_init.cxx
src/Main/main.cxx
src/Main/renderer.cxx
src/Network/native_fdm.cxx
src/Network/native_gui.cxx
src/Scenery/scenery.cxx
src/Scenery/scenery.hxx
src/Scenery/tileentry.cxx
src/Scenery/tilemgr.cxx
src/Scenery/tilemgr.hxx