Minor view culling optimizations.
#include <GL/glut.h>
#include <XGL/xgl.h>
-#include <map.h> // STL associative "array"
-
-#if defined(__CYGWIN32__)
-# include <string> // Standard C++ string library
-#elif defined(WIN32)
-# include <string.h> // Standard C++ string library
-#else
-# include <std/string.h> // Standard C++ string library
-#endif
+#include <map> // STL associative "array"
+#include <string> // Standard C++ string library
#include "tile.hxx"
// $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.
#include <GL/glut.h>
#include <XGL/xgl.h>
-#include <list.h> // STL list
+#include <list> // STL list
#include <Bucket/bucketutils.h>
#include <Include/fg_types.h>
// $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
// 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);
// 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);
// $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.