ClearScreen to Clear
This commit is contained in:
parent
61fc874d70
commit
8c475bd065
@ -69,7 +69,7 @@ void Test()
|
||||
//draw the images//
|
||||
for(int i=0; i <= 4; i++)
|
||||
text[i].Draw(10.0f*i,50.0f*i);
|
||||
engine->UpdateScreen(); //update the screen
|
||||
engine->Update(); //update the screen
|
||||
|
||||
} while(!engine->QuitRequested()); //quit only when engine has encountered a quit request
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ void Test()
|
||||
|
||||
image3.Draw(200,0);
|
||||
textImage.Draw(0,100);
|
||||
engine->UpdateScreen(); //update the screen
|
||||
engine->Update(); //update the screen
|
||||
|
||||
} while(!engine->QuitRequested()); //quit only when engine has encountered a quit request
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ void Test()
|
||||
text[2].Draw(0,0);
|
||||
cursor.Draw(engine->MouseX()-8.0f,engine->MouseY()-8.0f);
|
||||
|
||||
engine->UpdateScreen(); //update the screen
|
||||
engine->Update(); //update the screen
|
||||
|
||||
} while(!engine->QuitRequested()); //quit only when engine has encountered a quit request
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ void Test()
|
||||
engine->CreateDisplay("ZMusic Test");
|
||||
font.DrawText("Music.ogg does not exist, please read music.txt.",text[0]);
|
||||
text[0].Draw(0,0);
|
||||
engine->UpdateScreen();
|
||||
engine->Update();
|
||||
do
|
||||
{
|
||||
engine->CheckEvents();
|
||||
@ -93,7 +93,7 @@ void Test()
|
||||
engine->Clear(); //clear screen
|
||||
for(int i=0; i < 4; i++)
|
||||
text[i].Draw(0,i*50.0f);
|
||||
engine->UpdateScreen(); //update the screen
|
||||
engine->Update(); //update the screen
|
||||
} while(!engine->QuitRequested()); //quit only when engine has encountered a quit request
|
||||
}
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ void Test()
|
||||
moveRect.Draw(255,0,0,128);
|
||||
stillRect.Draw(0,0,255,128);
|
||||
moveRect.Intersection(stillRect).Draw(0,255,0);
|
||||
engine->UpdateScreen();
|
||||
engine->Update();
|
||||
|
||||
} while(!engine->QuitRequested());
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ void Test()
|
||||
engine->Clear(); //clear screen
|
||||
for(int i=0; i < 6; i++)
|
||||
text[i].Draw(0,i*50.0f);
|
||||
engine->UpdateScreen(); //update the screen
|
||||
engine->Update(); //update the screen
|
||||
|
||||
} while(!engine->QuitRequested()); //quit only when engine has encountered a quit request
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ void Test()
|
||||
for(int i=0; i <= 4; i++)
|
||||
text[i].Draw(0,i*50.0f);
|
||||
|
||||
engine->UpdateScreen(); //update the screen
|
||||
engine->Update(); //update the screen
|
||||
|
||||
} while(!engine->QuitRequested()); //quit only when engine has encountered a quit request
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user