]> git.mxchange.org Git - flightgear.git/commitdiff
Updates to BalloonSim init by Christian Mayer.
authorcurt <curt>
Wed, 20 Oct 1999 22:18:54 +0000 (22:18 +0000)
committercurt <curt>
Wed, 20 Oct 1999 22:18:54 +0000 (22:18 +0000)
Removed old plib include line from the days when plib was rolled in with
  flight gear.
Texture handling tweaks contributed by David Megginson.

src/Main/Makefile.am
src/Main/fg_init.cxx
src/Main/main.cxx

index 5fac9633a0f37d1cd0fbb151cd90c59daab91f43..4dd37291f9a7629aababd086777074fc2ebb43e0 100644 (file)
@@ -64,5 +64,4 @@ fgfs_LDADD = \
 INCLUDES += \
        -I$(top_builddir) \
        -I$(top_builddir)/Lib \
-       -I$(top_builddir)/Lib/plib/include \
        -I$(top_builddir)/Simulator
index 84a7d693b1ee160baa636f7c29104e5887a02167..8d24d47d9a5ca41277eeee6d1fa2f381542f2c99 100644 (file)
@@ -434,10 +434,10 @@ bool fgInitSubsystems( void ) {
     FG_LOG(FG_GENERAL, FG_INFO, "Creating LocalWeatherDatabase");
     FGLocalWeatherDatabase::theFGLocalWeatherDatabase = 
        new FGLocalWeatherDatabase(
-             Point3D( current_aircraft.fdm_state->get_Latitude(),
+                      current_aircraft.fdm_state->get_Latitude(),
                       current_aircraft.fdm_state->get_Longitude(),
                       current_aircraft.fdm_state->get_Altitude() 
-                         * FEET_TO_METER) );
+                         * FEET_TO_METER );
 
     WeatherDatabase = FGLocalWeatherDatabase::theFGLocalWeatherDatabase;
 
index 18aa9120f62163e93e6bcac0fcf8d6f0ee8dda23..93964355d284e1e46d08a32939faa74946794922 100644 (file)
@@ -343,7 +343,18 @@ void fgRenderFrame( void ) {
        xglLightfv( GL_LIGHT0, GL_AMBIENT, l->scene_ambient );
        xglLightfv( GL_LIGHT0, GL_DIFFUSE, l->scene_diffuse );
        // xglLightfv(GL_LIGHT0, GL_SPECULAR, white );
-       
+
+       // texture parameters
+       xglEnable( GL_TEXTURE_2D );
+       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);
+       //  (GL_FRONT, GL_DIFFUSE, white);
+       // xglMaterialfv (GL_FRONT, GL_SPECULAR, white);
+       // xglMaterialfv (GL_FRONT, GL_SHININESS, mat_shininess);
+
+#if 0  
        if ( current_options.get_textures() ) {
            // texture parameters
            xglEnable( GL_TEXTURE_2D );
@@ -361,6 +372,7 @@ void fgRenderFrame( void ) {
            // xglMaterialfv (GL_FRONT, GL_AMBIENT, white);
            // xglMaterialfv (GL_FRONT, GL_DIFFUSE, white);
        }
+#endif
 
        sgVec3 sunpos;
        sgSetVec3( sunpos, l->sun_vec[0], l->sun_vec[1], l->sun_vec[2] );