+
+ // build the ssgSimpleState
+ FGPath tex_file( current_options.get_fg_root() );
+ tex_file.append( "Textures" );
+ tex_file.append( m.get_texture_name() );
+ tex_file.concat( ".rgb" );
+
+ ssgSimpleState *state = new ssgSimpleState;
+ state->setTexture( tex_file.c_str() );
+ state->enable( GL_TEXTURE_2D );
+ state->enable( GL_LIGHTING );
+ state->setShadeModel( GL_SMOOTH );
+ state->enable ( GL_CULL_FACE ) ;
+ state->setMaterial ( GL_AMBIENT_AND_DIFFUSE, 1, 1, 1, 1 ) ;
+ m_slot.set_state( state );
+