1
0
Fork 0

Minor texture tweaks.

This commit is contained in:
curt 2001-05-23 20:54:51 +00:00
parent 92bef73566
commit 02896643d7
3 changed files with 20 additions and 2 deletions

View file

@ -53,6 +53,10 @@
# include <unistd.h> // for stat()
#endif
#ifdef HAVE_LIBX11
# include <GL/glext.h>
#endif
#include <plib/pu.h>
#include <plib/ssg.h>
@ -1450,6 +1454,20 @@ int main( int argc, char **argv ) {
// fonts !!!
guiInit();
#ifdef GL_EXT_texture_lod_bias
glTexEnvf( GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, -0.5 ) ;
#endif
#if 0
#ifdef GL_EXT_texture_filter_anisotropic
float max_anisotropy;
glGetFloatv( GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &max_anisotropy );
glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT,
max_anisotropy );
cout << "Max anisotropy = " << max_anisotropy << endl;
#endif
#endif
// set current_options lon/lat if an airport id is specified
// cout << "3. airport_id = " << fgGetString("/sim/startup/airport-id") << endl;
if ( fgGetString("/sim/startup/airport-id").length() ) {

View file

@ -292,7 +292,7 @@ void FGMaterialLib::load_next_deferred() {
setTexture( (char *)slot.get_texture_name_c_str(), 0, 0 );
#else
slot.get_textured()->
setTexture( (char *)slot.get_texture_name_c_str(), 0, 0, 0 );
setTexture( (char *)slot.get_texture_name_c_str(), 0, 0, 1 );
#endif
slot.set_texture_loaded( true );
}

View file

@ -903,7 +903,7 @@ static ssgLeaf *gen_leaf( const string& path,
// Load an Binary obj file
ssgBranch *fgBinObjLoad( const string& path, FGTileEntry *t,
ssgVertexArray *lights, const bool is_base)
ssgVertexArray *lights, const bool is_base)
{
int i;