Ejemplo n.º 1
0
void RendererBase::OnClear()
{
	int size = GB_SCREEN_W*GB_SCREEN_H*3;
    memset(backBuffer, 0, size);
    memset(frontBuffer, 0, size);
	PageFlip();
}
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
//Cuando se actualiza la pantalla de la gameboy
void RendererBase::OnRefreshGBScreen()
{
	PageFlip();
}