#include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_random.h>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Objects/texload.h>
void fgSplashInit ( void ) {
int width, height;
- FG_LOG( FG_GENERAL, FG_INFO, "Initializing splash screen" );
+ SG_LOG( SG_GENERAL, SG_INFO, "Initializing splash screen" );
#ifdef GL_VERSION_1_1
xglGenTextures(1, &splash_texid);
xglBindTexture(GL_TEXTURE_2D, splash_texid);
char num_str[256];
sprintf(num_str, "%d", num);
- FGPath tpath( globals->get_fg_root() );
+ SGPath tpath( globals->get_fg_root() );
tpath.append( "Textures/Splash" );
tpath.concat( num_str );
tpath.concat( ".rgb" );
read_rgb_texture(tpath.c_str(), &width, &height)) == NULL )
{
// Try compressed
- FGPath fg_tpath = tpath;
+ SGPath fg_tpath = tpath;
fg_tpath.concat( ".gz" );
if ( (splash_texbuf =
read_rgb_texture(fg_tpath.c_str(), &width, &height)) == NULL )
{
- FG_LOG( FG_GENERAL, FG_ALERT,
+ SG_LOG( SG_GENERAL, SG_ALERT,
"Error in loading splash screen texture " << tpath.str() );
exit(-1);
}