SG_USING_STD(string);
-// global material management class
-SGMaterialLib material_lib;
-
-
// Constructor
SGMaterialLib::SGMaterialLib ( void ) {
}
+#if 0 // debugging infrastructure
static int gen_test_light_map() {
static const int env_tex_res = 32;
int half_res = env_tex_res / 2;
return tex_name;
}
+#endif
// generate standard colored directional light environment texture map
SG_LOG( SG_TERRAIN, SG_INFO, " Loading material "
<< mat_name << " (" << full_path << ")");
- material_lib.matlib[mat_name] = new SGMaterial( full_path );
+ matlib[mat_name] = new SGMaterial( full_path );
return true;
}
SG_LOG( SG_TERRAIN, SG_INFO, " Loading material given a premade "
<< "ssgSimpleState = " << mat_name );
- material_lib.matlib[mat_name] = m;
+ matlib[mat_name] = m;
return true;
}