i'm a total newbie and i'm trying to display a gif file from a file in my game. And of course i don't understand how to use PF to do this. Can anyone give me a simple example?
- Code:
void MyGame::SplashScreen()
{
Surface *MySplashImage;
MySplashImage = Frog::LoadImage(GetDisplay(), _T("\\splashscreen.gif"));
GetDisplay()->Blit(0, 0, MySplashImage);
GetDisplay()->Update();
delete MySplashImage;
}
That loads the image from a file. I prefer to load them from resources personally.
-John