Hi!!
I´m creating a thread class and I passed the backbuffer from the processNextFrame to the thread class to draw something. However I couldn´t see the text I want to print on the screen. Here is my code:
//////// FUNCTION IN THE THREAD CLASS ////
void ThreadClass::SetGapiSurface(CGapiSurface* backbuff){
//backbuff from the ProcessNextFrame
pbackbuff = backbuff;
}
DWORD WINAPI ThreadClass::ThreadFunction(){
while(m_threadstarted)
{
TCHAR* msg= _T("CANT PRINT THIS OUT");
pbackbuff(->DrawText(120, 280, msg,psystemfont, GDDRAWTEXT_CENTER, NULL, 0, NULL);
}
}
/////////// END ////////////
Does this whileloop affect the processNextFrame??
anyway to clue this out?? thxz
I´m creating a thread class and I passed the backbuffer from the processNextFrame to the thread class to draw something. However I couldn´t see the text I want to print on the screen. Here is my code:
//////// FUNCTION IN THE THREAD CLASS ////
void ThreadClass::SetGapiSurface(CGapiSurface* backbuff){
//backbuff from the ProcessNextFrame
pbackbuff = backbuff;
}
DWORD WINAPI ThreadClass::ThreadFunction(){
while(m_threadstarted)
{
TCHAR* msg= _T("CANT PRINT THIS OUT");
pbackbuff(->DrawText(120, 280, msg,psystemfont, GDDRAWTEXT_CENTER, NULL, 0, NULL);
}
}
/////////// END ////////////
Does this whileloop affect the processNextFrame??
anyway to clue this out?? thxz