**************************************************************************/
-#ifdef WIN32
+#include <config.h>
+
+#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif
#include <XGL/xgl.h>
#include <stdio.h>
-#ifdef __sun
+#ifdef HAVE_STDLIB_H
# include <stdlib.h>
-#else
+#endif
+#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
#include <Main/views.h>
#include <Include/cmdargs.h> // Line to command line arguments
-#include <Include/fg_constants.h>
+#include <Include/fg_constants.h> // for VERSION
#include <Include/general.h>
#include <Aircraft/aircraft.h>
/* This is a record containing global housekeeping information */
-struct fgGENERAL general;
+fgGENERAL general;
/* view parameters */
static GLfloat win_ratio = 1.0;
/* Tell GL we are about to modify the projection parameters */
xglMatrixMode(GL_PROJECTION);
xglLoadIdentity();
- gluPerspective(55.0, 2.0/win_ratio, 1.0, 100000.0);
+ gluPerspective(45.0, 2.0/win_ratio, 1.0, 100000.0);
}
else
{
/* Tell GL we are about to modify the projection parameters */
xglMatrixMode(GL_PROJECTION);
xglLoadIdentity();
- gluPerspective(55.0, 1.0/win_ratio, 10.0, 100000.0);
+ gluPerspective(45.0, 1.0/win_ratio, 10.0, 100000.0);
}
xglMatrixMode(GL_MODELVIEW);
/* set lighting parameters */
xglLightfv(GL_LIGHT0, GL_AMBIENT, l->scene_ambient );
xglLightfv(GL_LIGHT0, GL_DIFFUSE, l->scene_diffuse );
+ /* texture parameters */
+ xglEnable( GL_TEXTURE_2D ); /* xglDisable( GL_TEXTURE_2D ); */
+ xglTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT ) ;
+ xglTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT ) ;
+ xglTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ) ;
+ xglTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
+ GL_LINEAR /* GL_LINEAR_MIPMAP_LINEAR */ ) ;
+ xglTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE ) ;
+ xglHint( GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST ) ;
+
fgTileMgrRender();
- /* fgSceneryRender(); */
+
+ xglDisable( GL_TEXTURE_2D );
/* display HUD */
if( show_hud ) {
void fgInitTimeDepCalcs( void ) {
/* initialize timer */
-#ifdef USE_ITIMER
+#ifdef HAVE_SETITIMER
fgTimerInit( 1.0 / DEFAULT_TIMER_HZ, fgUpdateTimeDepCalcs );
-#endif USE_ITIMER
+#endif HAVE_SETITIMER
}
f = current_aircraft.flight;
// First things first... We must have startup options dealt with.
- #ifndef VERSION
- #define VERSION "src-32A"
- #endif
printf("Flight Gear: Version %s\n\n", VERSION);
/*********************************************************************
#endif
/* $Log$
-/* Revision 1.65 1998/03/09 22:45:57 curt
-/* Minor tweaks for building on sparc platform.
+/* Revision 1.69 1998/04/08 23:35:34 curt
+/* Tweaks to Gnu automake/autoconf system.
/*
+ * Revision 1.68 1998/04/03 22:09:03 curt
+ * Converting to Gnu autoconf system.
+ *
+ * Revision 1.67 1998/03/23 21:24:37 curt
+ * Source code formating tweaks.
+ *
+ * Revision 1.66 1998/03/14 00:31:20 curt
+ * Beginning initial terrain texturing experiments.
+ *
+ * Revision 1.65 1998/03/09 22:45:57 curt
+ * Minor tweaks for building on sparc platform.
+ *
* Revision 1.64 1998/02/20 00:16:23 curt
* Thursday's tweaks.
*