1 // tile.hxx -- routines to handle a scenery tile
3 // Written by Curtis Olson, started May 1998.
5 // Copyright (C) 1998 Curtis L. Olson - curt@infoplane.com
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 // (Log is kept at end of this file)
30 # error This library requires C++
44 #include <list> // STL list
46 #include <Bucket/bucketutils.h>
47 #include <Include/fg_types.h>
50 // Object fragment data class
54 // culling data for this object fragment (fine grain culling)
55 fgCartesianPoint3d center;
56 double bounding_radius;
58 // variable offset data for this object fragment for this frame
59 fgCartesianPoint3d tile_offset;
61 // material property pointer
64 // OpenGL display list for fragment data
80 // culling data for whole tile (course grain culling)
81 fgCartesianPoint3d center;
82 double bounding_radius;
83 fgCartesianPoint3d offset;
85 // this tile's official location in the world
86 struct fgBUCKET tile_bucket;
88 // the tile cache will mark here if the tile is being used
91 list < fgFRAGMENT > fragment_list;
105 // Revision 1.4 1998/06/06 01:07:18 curt
106 // Increased per material fragment list size from 100 to 400.
108 // Revision 1.3 1998/06/05 22:39:54 curt
109 // Working on sorting by, and rendering by material properties.
111 // Revision 1.2 1998/06/03 00:47:50 curt
112 // No .h for STL includes.
113 // Minor view culling optimizations.
115 // Revision 1.1 1998/05/23 14:09:21 curt
116 // Added tile.cxx and tile.hxx.
117 // Working on rewriting the tile management system so a tile is just a list
118 // fragments, and the fragment record contains the display list for that fragment.