# include <config.h>
#endif
-#include <Include/compiler.h>
+#include <simgear/compiler.h>
#ifdef FG_MATH_EXCEPTION_CLASH
# include <math.h>
#endif
#include <GL/glut.h>
-#include <XGL/xgl.h>
+#include <simgear/xgl/xgl.h>
#include STL_STRING
-#include <Debug/logstream.hxx>
-#include <Misc/fgpath.hxx>
-#include <Misc/fgstream.hxx>
+#include <simgear/debug/logstream.hxx>
+#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/fgstream.hxx>
#include "material.hxx"
#include "texload.h"
ambient[0] = ambient[1] = ambient[2] = ambient[3] = 0.0;
diffuse[0] = diffuse[1] = diffuse[2] = diffuse[3] = 0.0;
specular[0] = specular[1] = specular[2] = specular[3] = 0.0;
- emissive[0] = emissive[1] = emissive[2] = emissive[3] = 0.0;
+ emission[0] = emission[1] = emission[2] = emission[3] = 0.0;
}
} else if ( token == "specular" ) {
in >> token >> m.specular[0] >> m.specular[1]
>> m.specular[2] >> m.specular[3];
- } else if ( token == "emissive" ) {
- in >> token >> m.emissive[0] >> m.emissive[1]
- >> m.emissive[2] >> m.emissive[3];
+ } else if ( token == "emission" ) {
+ in >> token >> m.emission[0] >> m.emission[1]
+ >> m.emission[2] >> m.emission[3];
} else if ( token == "alpha" ) {
in >> token >> token;
if ( token == "yes" ) {
return in;
}
+
void
FGMaterial::load_texture( const string& root )
{
}
+// Destructor
+void FGMaterial::dump_info () {
+ FG_LOG( FG_TERRAIN, FG_INFO, "{" << endl << " texture = "
+ << texture_name );
+ FG_LOG( FG_TERRAIN, FG_INFO, " xsize = " << xsize );
+ FG_LOG( FG_TERRAIN, FG_INFO, " ysize = " << ysize );
+ FG_LOG( FG_TERRAIN, FG_INFO, " ambient = " << ambient[0] << " "
+ << ambient[1] <<" "<< ambient[2] <<" "<< ambient[3] );
+ FG_LOG( FG_TERRAIN, FG_INFO, " diffuse = " << diffuse[0] << " "
+ << diffuse[1] << " " << diffuse[2] << " " << diffuse[3] );
+ FG_LOG( FG_TERRAIN, FG_INFO, " specular = " << specular[0] << " "
+ << specular[1] << " " << specular[2] << " " << specular[3]);
+ FG_LOG( FG_TERRAIN, FG_INFO, " emission = " << emission[0] << " "
+ << emission[1] << " " << emission[2] << " " << emission[3]);
+ FG_LOG( FG_TERRAIN, FG_INFO, " alpha = " << alpha << endl <<"}" );
+
+}
+
+
// Destructor
FGMaterial::~FGMaterial ( void ) {
}