#include <Astro/stars.hxx>
#include <Astro/sun.hxx>
-#ifdef HAVE_OSS_AUDIO
-# include <Audio/sl.h>
-# include <Audio/sm.h>
+#ifdef HAVE_AUDIO_SUPPORT
+# include <Audio/src/sl.h>
+# include <Audio/src/sm.h>
#endif
#include <Cockpit/cockpit.hxx>
int displayInstruments;
// Global structures for the Audio library
-#ifdef HAVE_OSS_AUDIO
+#ifdef HAVE_AUDIO_SUPPORT
slScheduler audio_sched ( 8000 ) ;
smMixer audio_mixer ;
slSample *s1;
if ( o->textures ) {
// texture parameters
xglEnable( 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 ) ;
// set base color (I don't think this is doing anything here)
xglMaterialfv (GL_FRONT, GL_AMBIENT, white);
xglMaterialfv (GL_FRONT, GL_DIFFUSE, white);
global_events.Process();
// Run audio scheduler
-#ifdef HAVE_OSS_AUDIO
+#ifdef HAVE_AUDIO_SUPPORT
audio_sched.update();
#endif
guiInit();
// Initialize audio support
-#ifdef HAVE_OSS_AUDIO
+#ifdef HAVE_AUDIO_SUPPORT
audio_mixer . setMasterVolume ( 30 ) ; /* 50% of max volume. */
audio_sched . setSafetyMargin ( 1.0 ) ;
strcpy(path, o->fg_root);
// $Log$
+// Revision 1.27 1998/06/17 21:35:10 curt
+// Refined conditional audio support compilation.
+// Moved texture parameter setup calls to ../Scenery/materials.cxx
+// #include <string.h> before various STL includes.
+// Make HUD default state be enabled.
+//
// Revision 1.26 1998/06/13 00:40:32 curt
// Tweaked fog command line options.
//
#endif
-#include <map> // STL associative "array"
#include <string> // Standard C++ string library
+#include <map> // STL associative "array"
typedef struct {
// $Log$
+// Revision 1.5 1998/06/17 21:35:11 curt
+// Refined conditional audio support compilation.
+// Moved texture parameter setup calls to ../Scenery/materials.cxx
+// #include <string.h> before various STL includes.
+// Make HUD default state be enabled.
+//
// Revision 1.4 1998/06/03 00:47:14 curt
// Updated to compile in audio support if OSS available.
// Updated for new version of Steve's audio library.
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <Include/fg_constants.h>
#include <Include/general.h>
// $Log$
+// Revision 1.20 1998/06/17 21:35:12 curt
+// Refined conditional audio support compilation.
+// Moved texture parameter setup calls to ../Scenery/materials.cxx
+// #include <string.h> before various STL includes.
+// Make HUD default state be enabled.
+//
// Revision 1.19 1998/06/08 17:57:05 curt
// Minor sound/startup position tweaks.
//
strcpy(airport_id, "");
// Features
- hud_status = 0;
+ hud_status = 1;
// Rendering options
fog = 2; // nicest
// $Log$
+// Revision 1.12 1998/06/17 21:35:13 curt
+// Refined conditional audio support compilation.
+// Moved texture parameter setup calls to ../Scenery/materials.cxx
+// #include <string.h> before various STL includes.
+// Make HUD default state be enabled.
+//
// Revision 1.11 1998/06/13 00:40:33 curt
// Tweaked fog command line options.
//