Minor texture tweaks.
This commit is contained in:
parent
92bef73566
commit
02896643d7
3 changed files with 20 additions and 2 deletions
|
@ -53,6 +53,10 @@
|
||||||
# include <unistd.h> // for stat()
|
# include <unistd.h> // for stat()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBX11
|
||||||
|
# include <GL/glext.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <plib/pu.h>
|
#include <plib/pu.h>
|
||||||
#include <plib/ssg.h>
|
#include <plib/ssg.h>
|
||||||
|
|
||||||
|
@ -1450,6 +1454,20 @@ int main( int argc, char **argv ) {
|
||||||
// fonts !!!
|
// fonts !!!
|
||||||
guiInit();
|
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
|
// set current_options lon/lat if an airport id is specified
|
||||||
// cout << "3. airport_id = " << fgGetString("/sim/startup/airport-id") << endl;
|
// cout << "3. airport_id = " << fgGetString("/sim/startup/airport-id") << endl;
|
||||||
if ( fgGetString("/sim/startup/airport-id").length() ) {
|
if ( fgGetString("/sim/startup/airport-id").length() ) {
|
||||||
|
|
|
@ -292,7 +292,7 @@ void FGMaterialLib::load_next_deferred() {
|
||||||
setTexture( (char *)slot.get_texture_name_c_str(), 0, 0 );
|
setTexture( (char *)slot.get_texture_name_c_str(), 0, 0 );
|
||||||
#else
|
#else
|
||||||
slot.get_textured()->
|
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
|
#endif
|
||||||
slot.set_texture_loaded( true );
|
slot.set_texture_loaded( true );
|
||||||
}
|
}
|
||||||
|
|
|
@ -903,7 +903,7 @@ static ssgLeaf *gen_leaf( const string& path,
|
||||||
|
|
||||||
// Load an Binary obj file
|
// Load an Binary obj file
|
||||||
ssgBranch *fgBinObjLoad( const string& path, FGTileEntry *t,
|
ssgBranch *fgBinObjLoad( const string& path, FGTileEntry *t,
|
||||||
ssgVertexArray *lights, const bool is_base)
|
ssgVertexArray *lights, const bool is_base)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue