Exemple #1
0
/* Draw the changes to the screen.
Remove the changing objects, redraw the strings and draw the changing objects again.
 */
void BaseEngine::DrawChanges()
{
	// Remove objects from their old positions
	UndrawChangingObjects();
	// Draw the text for the user
	DrawStrings();
	// Draw objects at their new positions
	DrawChangingObjects();
}
Exemple #2
0
/* Draw the screen - copy the background buffer, then draw the text and objects. */
void BaseEngine::DrawScreen()
{
	// First draw the background
	//this->CopyBackgroundPixels( 100, 100, 100, 100 );
	CopyAllBackgroundBuffer();
	// And finally, draw the text
	DrawStrings();
	// Then draw the changing objects
	DrawChangingObjects();
}
Exemple #3
0
/* Draw the changes to the screen.
Remove the changing objects, redraw the strings and draw the changing objects again.
 */
void Demo4Main::DrawChanges()
{
	// NEW IF
	if ( m_state == stateInit )
		return; // Do not draw objects if initialising

	// Remove objects from their old positions
	UndrawChangingObjects();
	// Draw the text for the user
	DrawStrings();
	// Draw objects at their new positions
	DrawChangingObjects();
}
Exemple #4
0
/* Draw the screen - copy the background buffer, then draw the text and objects. */
void Demo4Main::DrawScreen()
{
	// First draw the background
	//this->CopyBackgroundPixels( 100, 100, 100, 100 );
	CopyAllBackgroundBuffer();
	// And finally, draw the text
	DrawStrings();

	// NEW IF
	if ( m_state == stateInit )
		return; // Do not draw objects if initialising

	// Then draw the changing objects
	DrawChangingObjects();
}