Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Andreasit

Pages: [1]
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).

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?

Pages: [1]
anything