1
0
Fork 0
flightgear/Scenery
curt f8e4de2d13 Bernie Bright <bbright@c031.aone.net.au> writes:
I've made some changes to the Scenery handling.  Basically just tidy ups.
The main difference is in tile.[ch]xx where I've changed list<fgFRAGMENT> to
vector<fgFRAGMENT>.  Studying our usage patterns this seems reasonable.
Lists are good if you need to insert/delete elements randomly but we
don't do that.  All access seems to be sequential.  Two additional
benefits are smaller memory usage - each list element requires pointers
to the next and previous elements, and faster access - vector iterators
are smaller and faster than list iterators.  This should also help
Charlie Hotchkiss' problem when compiling with Borland and STLport.

./Lib/Bucket/bucketutils.hxx
  Convenience functions for fgBUCKET.

./Simulator/Scenery/tile.cxx
./Simulator/Scenery/tile.hxx
  Changed fragment list to a vector.
  Added some convenience member functions.

./Simulator/Scenery/tilecache.cxx
./Simulator/Scenery/tilecache.hxx
  use const fgBUCKET& instead of fgBUCKET* where appropriate.

./Simulator/Scenery/tilemgr.cxx
./Simulator/Scenery/tilemgr.hxx
  uses all the new convenience functions.
1998-11-09 23:40:46 +00:00
..
Makefile.am material.cxx material.hxx obj.cxx obj.hxx texload.c texload.h moved to 1998-08-25 16:52:38 +00:00
scenery.cxx Converted to new logstream debugging facility. This allows release 1998-11-06 21:17:31 +00:00
scenery.hxx C++-ifying. 1998-10-16 23:26:44 +00:00
tile.cxx Bernie Bright <bbright@c031.aone.net.au> writes: 1998-11-09 23:40:46 +00:00
tile.hxx Bernie Bright <bbright@c031.aone.net.au> writes: 1998-11-09 23:40:46 +00:00
tilecache.cxx Bernie Bright <bbright@c031.aone.net.au> writes: 1998-11-09 23:40:46 +00:00
tilecache.hxx Bernie Bright <bbright@c031.aone.net.au> writes: 1998-11-09 23:40:46 +00:00
tilemgr.cxx Bernie Bright <bbright@c031.aone.net.au> writes: 1998-11-09 23:40:46 +00:00
tilemgr.hxx Converted to Point3D class. 1998-10-16 00:51:46 +00:00