1
System / [SFML 2.0] Thread confusion!
« on: April 03, 2012, 10:17:12 pm »
Hi! i started to use sfml 2.0 today and i noticed that you no longer could Inheritance the thread class? i have an class that looks like this (very short version).
Is it posible to still do it like this? do i need to have an instance of Thread in the class and then call it instead?
Code: [Select]
"Draw.h"-------------------------------------
class Draw: public sf::Thread{
private:
virtual void run();
};
"main.cpp"-----------------------------------
Draw d;
d.launch();
-------------------------------------------------
Is it posible to still do it like this? do i need to have an instance of Thread in the class and then call it instead?