#include "../Math/polar.h"
#include "../Scenery/mesh.h"
#include "../Scenery/scenery.h"
+#include "../Scenery/tilemgr.h"
#include "../Time/event.h"
#include "../Time/fg_time.h"
#include "../Time/fg_timer.h"
/* pointer to scenery structure */
/* static GLint scenery, runway; */
-double Simtime;
+/* double Simtime; */
/* Another hack */
int use_signals = 0;
* fgInitVisuals() -- Initialize various GL/view parameters
**************************************************************************/
-static void fgInitVisuals() {
+static void fgInitVisuals( void ) {
struct fgLIGHT *l;
struct fgTIME *t;
struct fgWEATHER *w;
xglFogf (GL_FOG_END, w->visibility);
/* xglFogf (GL_FOG_DENSITY, w->visibility); */
xglHint (GL_FOG_HINT, GL_NICEST /* GL_FASTEST */ );
+
+ /* draw wire frame */
+ /* xglPolygonMode(GL_FRONT_AND_BACK,GL_LINE); */
}
* Update the view volume, position, and orientation
**************************************************************************/
-static void fgUpdateViewParams() {
+static void fgUpdateViewParams( void ) {
struct fgFLIGHT *f;
struct fgLIGHT *l;
struct fgTIME *t;
/*************************************************************************
* Draw a basic instrument panel
************************************************************************/
-static void fgUpdateInstrViewParams() {
+static void fgUpdateInstrViewParams( void ) {
xglViewport(0, 0 , (GLint)winWidth, (GLint)winHeight / 2);
xglMatrixMode(GL_PROJECTION);
/* set lighting parameters */
xglLightfv(GL_LIGHT0, GL_AMBIENT, l->scene_ambient );
xglLightfv(GL_LIGHT0, GL_DIFFUSE, l->scene_diffuse );
- fgSceneryRender();
+ fgTileMgrRender();
+ /* fgSceneryRender(); */
/* display HUD */
if( show_hud ) {
}
-void fgInitTimeDepCalcs() {
+void fgInitTimeDepCalcs( void ) {
/* initialize timer */
#ifdef USE_ITIMER
FG_Altitude * FEET_TO_METER);
}
- /* fgAircraftOutputCurrent(a); */
+ fgAircraftOutputCurrent(a);
+
+ /* see if we need to load any new scenery tiles */
+ /* fgTileMgrUpdate(); */
/* Process/manage pending events */
fgEventProcess();
/* $Log$
-/* Revision 1.45 1998/01/07 03:18:55 curt
-/* Moved astronomical stuff from .../Src/Scenery to .../Src/Astro/
+/* Revision 1.49 1998/01/19 18:40:31 curt
+/* Tons of little changes to clean up the code and to remove fatal errors
+/* when building with the c++ compiler.
/*
+ * Revision 1.48 1998/01/19 18:35:46 curt
+ * Minor tweaks and fixes for cygwin32.
+ *
+ * Revision 1.47 1998/01/13 00:23:08 curt
+ * Initial changes to support loading and management of scenery tiles. Note,
+ * there's still a fair amount of work left to be done.
+ *
+ * Revision 1.46 1998/01/08 02:22:06 curt
+ * Beginning to integrate Tile management subsystem.
+ *
+ * Revision 1.45 1998/01/07 03:18:55 curt
+ * Moved astronomical stuff from .../Src/Scenery to .../Src/Astro/
+ *
* Revision 1.44 1997/12/30 22:22:31 curt
* Further integration of event manager.
*