void RendererBase::OnClear() { int size = GB_SCREEN_W*GB_SCREEN_H*3; memset(backBuffer, 0, size); memset(frontBuffer, 0, size); PageFlip(); }
void CGameRenderer::ProcessFrame(){ //process a frame of animation if(g_bImagesLoaded){ //wait for the image loading thread to finish //check for lost graphics device if(DeviceLost())RestoreDevice(); //if device lost, restore it //process a frame of animation ComposeFrame(); //compose a frame of animation PageFlip(); //flip to front } } //ProcessFrame
//Cuando se actualiza la pantalla de la gameboy void RendererBase::OnRefreshGBScreen() { PageFlip(); }