I am trying to create a simple loadingscreen function. I do it with the sceKernelCreateThread function which create the loading sequence rendering code while the main thread remains loading up models/pictures/variable/files etc....
anyway... that was the idea :) As in the past I have some problem regarding function pointers and the like.
The second parameter of the function sceKernelCreateThread is pointer to a function. I try to do it like this:
Code: Select all
LoadingScreen::LoadingScreen() {
// the loadingscreen is loaded
thid_ = sceKernelCreateThread("LoadingThread", this->RunLoadingScreen(), 0x18, 0x10000, 0, NULL);
}
void LoadingScreen::KillLoadingScreen() {
// shut down the loading screen again.
sceKernelDeleteThread(thid_);
}
void LoadingScreen::RunLoadingScreen() {
while(1) {
// render loading screen
}
}
Code: Select all
oadingScreen.cpp: In constructor 'LoadingScreen::LoadingScreen()':
LoadingScreen.cpp:6: error: invalid use of void expression
Hope you guys can shed some light on it !
greets Ghoti