I want to use SDL_CreateThread in C++
function prototype something like this.
SDL_Thread *SDL_CreateThread(int (*fn)(void *), void *data);
But I don't know how to throw argument of SDL_CreateThread func.
I want to create thread of run func.
Example.
Class AAA{
public:
int run();
void create();
};
int AAA::run()
{
while(1)
{
Do something
}
}
void AAA::create()
{
SDL_Thread* thread = SDL_CreateThread(??????, NULL);
}
|