#include <GL/glut.h>
-#include "../constants.h"
-#include "../types.h"
+#include "../Include/constants.h"
+#include "../Include/types.h"
#include "../Math/fg_geodesy.h"
#include "../Math/fg_random.h"
#include "../Math/mat3.h"
/* return a pointer to a new mesh structure (no data array allocated yet) */
-struct MESH *(new_mesh)() {
+struct MESH *(new_mesh)( void ) {
struct MESH *mesh_ptr;
mesh_ptr = (struct MESH *)malloc(sizeof(struct MESH));
/* printf(" zA = %.2f zB = %.2f\n", zA, zB); */
- if ( dx > EPSILON ) {
+ if ( dx > FG_EPSILON ) {
elev = dy * (zB - zA) / dx + zA;
} else {
elev = zA;
/* printf(" zA = %.2f zB = %.2f\n", zA, zB );
printf(" xB - xA = %.2f\n", eg.col_step * dy / eg.row_step); */
- if ( dy > EPSILON ) {
+ if ( dy > FG_EPSILON ) {
elev = dx * (zB - zA) / dy + zA;
} else {
elev = zA;
/* $Log$
-/* Revision 1.23 1997/10/30 12:38:44 curt
-/* Working on new scenery subsystem.
+/* Revision 1.26 1998/01/19 18:40:36 curt
+/* Tons of little changes to clean up the code and to remove fatal errors
+/* when building with the c++ compiler.
/*
+ * Revision 1.25 1998/01/07 03:31:27 curt
+ * Miscellaneous tweaks.
+ *
+ * Revision 1.24 1997/12/15 23:54:59 curt
+ * Add xgl wrappers for debugging.
+ * Generate terrain normals on the fly.
+ *
+ * Revision 1.23 1997/10/30 12:38:44 curt
+ * Working on new scenery subsystem.
+ *
* Revision 1.22 1997/10/28 21:00:21 curt
* Changing to new terrain format.
*