void__ Scene2::LoadImage(const ILstring path)
{
ILenum ext;
ILstring str="";
int__ l=strlen(path);
while(--l>0&&path[l]!='.')
str+=path[l];
if(strstr(str,"gnp"))
{
ext=IL_PNG;
}
if(strstr(str,"gpj") || strstr(str,"gepj"))
{
ext=IL_JPG;
}
if(strstr(str,"pmb"))
{
ext=IL_BMP;
}
}
void__ Scene2::LoadImage(const ILstring path)
{
ILenum ext;
if(strstr(path,"png"))
{
ext=IL_PNG;
}
if(strstr(path,"jpg") || strstr(path,"jpeg"))
{
ext=IL_JPG;
}
if(strstr(path,"bmp"))
{
ext=IL_BMP;
}
}