Changeset 8320 in orxonox.OLD for branches/terrain/src
- Timestamp:
- Jun 11, 2006, 8:26:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/lib/graphics/importer/terrain/terrain_page.h
r8319 r8320 44 44 */ 45 45 TerrainPage( Terrain *_owner, int _xOffset, int _zOffset ); 46 46 /** 47 * This is used only internally for communication between the TerrainPage and 48 * the Terrain class itself. 49 */ 47 50 inline bool isActive() { return active; } 51 52 48 53 ~TerrainPage( ) 49 54 { … … 58 63 void mimick( int _level ) {} 59 64 65 /** 66 * Draws a box around the TerrainPage. For debugging purposes. 67 */ 60 68 void drawBox(); 69 70 /** 71 * Calculates the smallest fitting axis aligned bounding box for this TerrainPage. 72 */ 61 73 virtual void calculateBounds(); 74 75 62 76 /** 63 77 * Sets the visibility to _flag. If the visibility changed, the vertex and index … … 67 81 68 82 /** 69 * If83 * Prepares the page for rendering. 70 84 */ 71 85 void show( ); 86 87 /** 88 * 89 */ 72 90 void hide( ); 73 /** 74 * 91 92 /** 93 * Updates the tesselation if necessary. 75 94 */ 76 95 void updateTesselation( ); … … 82 101 83 102 /** 84 * Returns the curren tween factor. This is a numberbetween 0.0f and 1.0f103 * Returns the curren tween factor. This is a floating point value between 0.0f and 1.0f 85 104 */ 86 105 float getTween() { return 0.0f; } … … 94 113 */ 95 114 int chooseLOD(); 115 96 116 /** 97 117 * If the terrain pages tesselation level changed between the last and the … … 99 119 * return value. 100 120 */ 101 bool isDirty() { return true; }121 bool isDirty() { return forceTesselation; } 102 122 103 123 /** … … 111 131 */ 112 132 void calculateError( int _lod ); 133 134 113 135 /** 114 136 * Tests if the terrain page would cull against the viewing frustum. 115 137 */ 116 138 bool cull( ); 117 118 void calculateMinMax();119 139 120 140 /** … … 127 147 left = _left; right = _right; top = _top; bottom = _bottom; 128 148 } 149 150 /** 151 * Sets the position of the TerrainPage. Is this needed? 152 */ 129 153 inline void setPosition( const Triple& _pos ) 130 154 { … … 139 163 void draw( ); 140 164 165 /** 166 * Returns the next active page 167 */ 141 168 inline pTerrainPage getNext() { return next; } 169 170 /** 171 * Returns the previous active page 172 */ 142 173 inline pTerrainPage getPrevious() { return previous; } 174 175 /** 176 * Returns the wanted LOD. Make sure you call this method after a call to 177 * chooseLOD() or you will get screwed values. 178 */ 143 179 inline int getWantedLOD() { return wantedLOD; } 180 181 /** 182 * Removes the page from the active page list. 183 */ 144 184 void deactivate(); 185 186 /** 187 * Inserts the page into the active page list. 188 */ 145 189 void activate(); 146 190 protected: 191 147 192 148 193 inline void addIndex( unsigned short _index );
Note: See TracChangeset
for help on using the changeset viewer.