current = t->fragment_list.begin();
last = t->fragment_list.end();
- while ( current != last ) {
+ for ( ; current != last; ++current ) {
frag_ptr = &(*current);
- current++;
/* printf("distance squared = %.2f, bounding radius = %.2f\n",
point_line_dist_squared( &(frag_ptr->center),
&abs_view_pos), local_up),
current = t->fragment_list.begin();
last = t->fragment_list.end();
- while ( current != last ) {
+ for ( ; current != last; ++current ) {
frag_ptr = &(*current);
- current++;
if ( frag_ptr->display_list >= 0 ) {
// Fine (fragment based) culling
xglPushMatrix();
- while ( mapcurrent != maplast ) {
+ for ( ; mapcurrent != maplast; ++mapcurrent ) {
// (char *)key = (*mapcurrent).first;
// (fgMATERIAL)value = (*mapcurrent).second;
mtl_ptr = &(*mapcurrent).second;
last_tile_ptr = frag_ptr->tile_ptr;
}
}
-
- *mapcurrent++;
}
xglPopMatrix();
// $Log$
+// Revision 1.34 1998/09/09 20:58:09 curt
+// Tweaks to loop constructs with STL usage.
+//
// Revision 1.33 1998/09/08 15:05:10 curt
// Optimization by Norman Vine.
//
// $Log$
-// Revision 1.3 1998/08/22 14:49:59 curt
+// Revision 1.4 1998/09/09 20:58:11 curt
+// Tweaks to loop constructs with STL usage.
+//
+// Revision 1.3 1998/08/22 14:49:59 curt
// Attempting to iron out seg faults and crashes.
// Did some shuffling to fix a initialization order problem between view
// position, scenery elevation.