No .h for STL includes.
Minor view culling optimizations.
This commit is contained in:
parent
476d5e73b2
commit
eda1cfe31c
3 changed files with 17 additions and 12 deletions
|
@ -41,15 +41,8 @@
|
|||
#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"
|
||||
|
||||
|
@ -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.
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#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>
|
||||
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue