Alright, sry for bothering you so much, but how would you do it then. Because now I tried this and the exe still does nothing:
caller.h
...
private:
ThreadClass *threadc;
sf::Thread *th;
caller.cpp
void IntroScreen::Init(sf::RenderWindow* SFMLView1){
...
threadc=new ThreadClass(this);
th=new sf::Thread(&ThreadClass::run,threadc);
...
}
void IntroScreen::TransitionOut(){
if(!transition){
transition=true;
th->launch();
}
}
**EDIT
MY apologies, I forgot to add my fade.png to the release map :s. But is my code correct, or is there a cleaner and better way to do it?