From eda1cfe31c61320c9d2fc9ad525179b8ff4d4b0a Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 3 Jun 1998 00:47:50 +0000 Subject: [PATCH] No .h for STL includes. Minor view culling optimizations. --- Scenery/material.hxx | 15 ++++++--------- Scenery/tile.hxx | 6 +++++- Scenery/tilemgr.cxx | 8 ++++++-- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Scenery/material.hxx b/Scenery/material.hxx index e02a8d026..40a5fdf68 100644 --- a/Scenery/material.hxx +++ b/Scenery/material.hxx @@ -41,15 +41,8 @@ #include #include -#include // STL associative "array" - -#if defined(__CYGWIN32__) -# include // Standard C++ string library -#elif defined(WIN32) -# include // Standard C++ string library -#else -# include // Standard C++ string library -#endif +#include // STL associative "array" +#include // Standard C++ string library #include "tile.hxx" @@ -106,6 +99,10 @@ public: // $Log$ +// Revision 1.3 1998/06/03 00:47:50 curt +// No .h for STL includes. +// Minor view culling optimizations. +// // Revision 1.2 1998/06/01 17:56:20 curt // Incremental additions to material.cxx (not fully functional) // Tweaked vfc_ratio math to avoid divide by zero. diff --git a/Scenery/tile.hxx b/Scenery/tile.hxx index f86c43306..b5743989a 100644 --- a/Scenery/tile.hxx +++ b/Scenery/tile.hxx @@ -41,7 +41,7 @@ #include #include -#include // STL list +#include // STL list #include #include @@ -99,6 +99,10 @@ public: // $Log$ +// Revision 1.2 1998/06/03 00:47:50 curt +// No .h for STL includes. +// Minor view culling optimizations. +// // Revision 1.1 1998/05/23 14:09:21 curt // Added tile.cxx and tile.hxx. // Working on rewriting the tile management system so a tile is just a list diff --git a/Scenery/tilemgr.cxx b/Scenery/tilemgr.cxx index ca0695957..f4ad7c7b4 100644 --- a/Scenery/tilemgr.cxx +++ b/Scenery/tilemgr.cxx @@ -228,7 +228,7 @@ static int viewable( fgCartesianPoint3d *cp, double radius ) { // y = m * (x - x0) = equation of a line intercepting X axis at x0 x1 = v->cos_fov_x * radius; y1 = v->sin_fov_x * radius; - slope = -1.0 / v->slope_x; + slope = v->slope_x; x0 = x1 - y1 / slope; // printf("(r) x1 = %.2f y1 = %.2f\n", x1, y1); @@ -257,7 +257,7 @@ static int viewable( fgCartesianPoint3d *cp, double radius ) { // check bottom clip plane (from eye perspective) x1 = -(v->cos_fov_y) * radius; y1 = v->sin_fov_y * radius; - slope = 1.0 / v->slope_y; + slope = v->slope_y; x0 = x1 - y1 / slope; // printf("(r) x1 = %.2f y1 = %.2f\n", x1, y1); @@ -378,6 +378,10 @@ void fgTileMgrRender( void ) { // $Log$ +// Revision 1.15 1998/06/03 00:47:51 curt +// No .h for STL includes. +// Minor view culling optimizations. +// // Revision 1.14 1998/06/01 17:56:20 curt // Incremental additions to material.cxx (not fully functional) // Tweaked vfc_ratio math to avoid divide by zero.